mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
cmake: Further tweaks for Android libretro core
This commit is contained in:
parent
83b409c32a
commit
fe867edefb
|
@ -30,21 +30,21 @@ if(LINUX OR ANDROID)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# When we're building for libretro, everything else is invalid because of PIC.
|
# When we're building for libretro, everything else is invalid because of PIC.
|
||||||
if(BUILD_LIBRETRO_CORE)
|
if(ANDROID OR BUILD_LIBRETRO_CORE)
|
||||||
if(BUILD_SDL_FRONTEND)
|
if(BUILD_SDL_FRONTEND)
|
||||||
message(WARNING "Building libretro core, disabling SDL frontend")
|
message(WARNING "Building for Android or libretro core, disabling SDL frontend")
|
||||||
set(BUILD_SDL_FRONTEND OFF)
|
set(BUILD_SDL_FRONTEND OFF)
|
||||||
endif()
|
endif()
|
||||||
if(BUILD_QT_FRONTEND)
|
if(BUILD_QT_FRONTEND)
|
||||||
message(WARNING "Building libretro core, disabling Qt frontend")
|
message(WARNING "Building for Android or libretro core, disabling Qt frontend")
|
||||||
set(BUILD_QT_FRONTEND OFF)
|
set(BUILD_QT_FRONTEND OFF)
|
||||||
endif()
|
endif()
|
||||||
if(ENABLE_DISCORD_PRESENCE)
|
if(ENABLE_DISCORD_PRESENCE)
|
||||||
message("Building libretro core, disabling Discord Presence support")
|
message("Building for Android or libretro core, disabling Discord Presence support")
|
||||||
set(ENABLE_DISCORD_PRESENCE OFF)
|
set(ENABLE_DISCORD_PRESENCE OFF)
|
||||||
endif()
|
endif()
|
||||||
if(USE_SDL2)
|
if(USE_SDL2)
|
||||||
message("Building libretro core, disabling SDL2 support")
|
message("Building for Android or libretro core, disabling SDL2 support")
|
||||||
set(USE_SDL2 OFF)
|
set(USE_SDL2 OFF)
|
||||||
endif()
|
endif()
|
||||||
if(USE_X11)
|
if(USE_X11)
|
||||||
|
@ -55,7 +55,9 @@ if(BUILD_LIBRETRO_CORE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Force PIC when compiling a libretro core.
|
# Force PIC when compiling a libretro core.
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
if(BUILD_LIBRETRO_CORE)
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue