Merge pull request #1820 from brooksytech/dev

Build Flycast-SA w/ OpenGL where available.
This commit is contained in:
Brooksytech 2023-07-25 15:06:24 -07:00 committed by GitHub
commit 58e9a19dda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]