diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-10-05 06:09:49 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-10-05 06:09:49 +0200 |
commit | 3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81 (patch) | |
tree | d0583c88eb831ff045ed9ff264ddcb80a259c675 /src/common/CMakeLists.txt | |
parent | ci: Add version counter variable (diff) | |
download | yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.gz yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.bz2 yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.lz yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.xz yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.zst yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index dfed8b51d..5c996fcdb 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, |