mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added a CMake flag for building as Flatpak.
This commit is contained in:
parent
8319dd50b8
commit
aa8b5f1f2e
|
@ -34,6 +34,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake/Utils
|
||||||
# Define the options.
|
# Define the options.
|
||||||
option(GL "Set to ON if targeting Desktop OpenGL 3.3" ${GL})
|
option(GL "Set to ON if targeting Desktop OpenGL 3.3" ${GL})
|
||||||
option(GLES "Set to ON if targeting OpenGL ES 3.0" ${GLES})
|
option(GLES "Set to ON if targeting OpenGL ES 3.0" ${GLES})
|
||||||
|
option(FLATPAK_BUILD "Set to ON when building as a Flatpak" ${FLATPAK_BUILD})
|
||||||
option(STEAM_DECK "Set to ON to enable Valve Steam Deck specific build" ${STEAM_DECK})
|
option(STEAM_DECK "Set to ON to enable Valve Steam Deck specific build" ${STEAM_DECK})
|
||||||
option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI})
|
option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI})
|
||||||
option(BUNDLED_CERTS "Set to ON to use bundled TLS/SSL certificates" ${BUNDLED_CERTS})
|
option(BUNDLED_CERTS "Set to ON to use bundled TLS/SSL certificates" ${BUNDLED_CERTS})
|
||||||
|
@ -283,6 +284,12 @@ if(GLES)
|
||||||
add_compile_definitions(USE_OPENGLES)
|
add_compile_definitions(USE_OPENGLES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# When building as a Flatpak, all launch commands will be prefixed by "flatpak-spawn --host".
|
||||||
|
if(FLATPAK_BUILD)
|
||||||
|
add_compile_definitions(FLATPAK_BUILD)
|
||||||
|
message("-- Building as a Flatpak")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(STEAM_DECK)
|
if(STEAM_DECK)
|
||||||
add_compile_definitions(STEAM_DECK)
|
add_compile_definitions(STEAM_DECK)
|
||||||
message("-- Building for the Valve Steam Deck")
|
message("-- Building for the Valve Steam Deck")
|
||||||
|
|
Loading…
Reference in a new issue