summaryrefslogtreecommitdiffstats
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-06 01:29:35 +0200
committerGitHub <noreply@github.com>2019-10-06 01:29:35 +0200
commit6f511c8006f73206519731db8bd7117fb629b56f (patch)
tree19d08b8008c7171da99e28ba1882032d2e9371b6 /src/common/CMakeLists.txt
parentMerge pull request #2944 from lioncash/ast (diff)
parentqt: Change titlebar formatting (diff)
downloadyuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar.gz
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar.bz2
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar.lz
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar.xz
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.tar.zst
yuzu-6f511c8006f73206519731db8bd7117fb629b56f.zip
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 0ed96c0d4..906c486fd 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -15,11 +15,23 @@ if (DEFINED ENV{CI})
set(BUILD_TAG $ENV{AZURE_REPO_TAG})
endif()
endif()
+if (DEFINED ENV{TITLEBARFORMATIDLE})
+ set(TITLE_BAR_FORMAT_IDLE $ENV{TITLEBARFORMATIDLE})
+endif ()
+if (DEFINED ENV{TITLEBARFORMATRUNNING})
+ set(TITLE_BAR_FORMAT_RUNNING $ENV{TITLEBARFORMATRUNNING})
+endif ()
+if (DEFINED ENV{DISPLAYVERSION})
+ set(DISPLAY_VERSION $ENV{DISPLAYVERSION})
+endif ()
add_custom_command(OUTPUT scm_rev.cpp
COMMAND ${CMAKE_COMMAND}
-DSRC_DIR="${CMAKE_SOURCE_DIR}"
-DBUILD_REPOSITORY="${BUILD_REPOSITORY}"
+ -DTITLE_BAR_FORMAT_IDLE="${TITLE_BAR_FORMAT_IDLE}"
+ -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}"
-DBUILD_TAG="${BUILD_TAG}"
+ -DBUILD_ID="${DISPLAY_VERSION}"
-P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
DEPENDS
# WARNING! It was too much work to try and make a common location for this list,