From 03c2d2658f1fb3103db8fe4b76aa78dfd45aec31 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 3 Apr 2022 13:34:56 +0200 Subject: [PATCH] Added a Steam Deck build option to the CMake configuration. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8827c367e..fd4990bc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake/Utils # Define the options. 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(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(BUNDLED_CERTS "Set to ON to use bundled TLS/SSL certificates" ${BUNDLED_CERTS}) option(CEC "Set to ON to enable CEC" ${CEC}) @@ -279,6 +280,11 @@ if(GLES) add_definitions(-DUSE_OPENGLES) endif() +if(STEAM_DECK) + add_definitions(-DSTEAM_DECK) + message("-- Building for the Valve Steam Deck") +endif() + if(RPI) add_definitions(-D_RPI_) endif()