Skip to content

Commit

Permalink
cmake: Further tweaks for Android libretro core
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 7, 2020
1 parent 83b409c commit fe867ed
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ if(LINUX OR ANDROID)
endif()

# 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)
message(WARNING "Building libretro core, disabling SDL frontend")
message(WARNING "Building for Android or libretro core, disabling SDL frontend")
set(BUILD_SDL_FRONTEND OFF)
endif()
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)
endif()
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)
endif()
if(USE_SDL2)
message("Building libretro core, disabling SDL2 support")
message("Building for Android or libretro core, disabling SDL2 support")
set(USE_SDL2 OFF)
endif()
if(USE_X11)
Expand All @@ -55,7 +55,9 @@ if(BUILD_LIBRETRO_CORE)
endif()

# 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()


Expand Down

0 comments on commit fe867ed

Please sign in to comment.