mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Added a RetroDECK CMake build option.
This commit is contained in:
parent
65999e5a09
commit
16c858bdc2
|
@ -36,8 +36,9 @@ option(GL "Set to ON if targeting Desktop OpenGL" ${GL})
|
||||||
option(GLES "Set to ON if targeting OpenGL ES" ${GLES})
|
option(GLES "Set to ON if targeting OpenGL ES" ${GLES})
|
||||||
option(APPIMAGE_BUILD "Set to ON when building as an AppImage" ${APPIMAGE_BUILD})
|
option(APPIMAGE_BUILD "Set to ON when building as an AppImage" ${APPIMAGE_BUILD})
|
||||||
option(FLATPAK_BUILD "Set to ON when building as a Flatpak" ${FLATPAK_BUILD})
|
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 a Valve Steam Deck specific build" ${STEAM_DECK})
|
||||||
option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI})
|
option(RETRODECK "Set to ON to enable a RetroDECK specific build" ${RETRODECK})
|
||||||
|
option(RPI "Set to ON to enable a 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})
|
||||||
option(CEC "Set to ON to enable CEC" ${CEC})
|
option(CEC "Set to ON to enable CEC" ${CEC})
|
||||||
option(VIDEO_HW_DECODING "Set to ON to enable FFmpeg HW decoding" ${VIDEO_HW_DECODING})
|
option(VIDEO_HW_DECODING "Set to ON to enable FFmpeg HW decoding" ${VIDEO_HW_DECODING})
|
||||||
|
@ -306,11 +307,20 @@ if(FLATPAK_BUILD)
|
||||||
message("-- Building as a Flatpak")
|
message("-- Building as a Flatpak")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(STEAM_DECK AND RETRODECK)
|
||||||
|
message(FATAL_ERROR "-- STEAM_DECK and RETRODECK can't be combined")
|
||||||
|
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")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(RETRODECK)
|
||||||
|
add_compile_definitions(RETRODECK)
|
||||||
|
message("-- Building for RetroDECK")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(RPI)
|
if(RPI)
|
||||||
add_compile_definitions(RASPBERRY_PI)
|
add_compile_definitions(RASPBERRY_PI)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue