Merge pull request #1820 from brooksytech/dev
Build Flycast-SA w/ OpenGL where available.
This commit is contained in:
commit
58e9a19dda
1 changed files with 4 additions and 9 deletions
|
@ -13,18 +13,13 @@ PKG_LONGDESC="Flycast is a multiplatform Sega Dreamcast, Naomi and Atomiswave em
|
|||
PKG_TOOLCHAIN="cmake"
|
||||
PKG_PATCH_DIRS+="${DEVICE}"
|
||||
|
||||
if [ ! "${OPENGL}" = "no" ]; then
|
||||
if [[ "${OPENGL_SUPPORT}" = "yes" ]] && [[ ! "${DEVICE}" = "S922X" ]]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
||||
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=ON"
|
||||
else
|
||||
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=OFF"
|
||||
fi
|
||||
PKG_CMAKE_OPTS_TARGET+=" -USE_OPENGL=ON -DUSE_GLES=OFF"
|
||||
|
||||
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
||||
elif [ "${OPENGLES_SUPPORT}" = yes ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON"
|
||||
else
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=OFF"
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON -DUSE_OPENGL=OFF"
|
||||
fi
|
||||
|
||||
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
||||
|
|
Loading…
Reference in a new issue