diff options
| author | 2019-10-05 00:09:49 -0400 | |
|---|---|---|
| committer | 2019-10-05 00:09:49 -0400 | |
| commit | 3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81 (patch) | |
| tree | d0583c88eb831ff045ed9ff264ddcb80a259c675 /src/common/CMakeLists.txt | |
| parent | ci: Add version counter variable (diff) | |
| download | yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.gz yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.tar.xz yuzu-3d4a0b94e368ddab44cbfe0180ccfa76dfb6ac81.zip | |
common: Add additional SCM revision fields
Diffstat (limited to 'src/common/CMakeLists.txt')
| -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}) | |||
| 15 | set(BUILD_TAG $ENV{AZURE_REPO_TAG}) | 15 | set(BUILD_TAG $ENV{AZURE_REPO_TAG}) |
| 16 | endif() | 16 | endif() |
| 17 | endif() | 17 | endif() |
| 18 | if (DEFINED ENV{TITLEBARFORMATIDLE}) | ||
| 19 | set(TITLE_BAR_FORMAT_IDLE $ENV{TITLEBARFORMATIDLE}) | ||
| 20 | endif () | ||
| 21 | if (DEFINED ENV{TITLEBARFORMATRUNNING}) | ||
| 22 | set(TITLE_BAR_FORMAT_RUNNING $ENV{TITLEBARFORMATRUNNING}) | ||
| 23 | endif () | ||
| 24 | if (DEFINED ENV{DISPLAYVERSION}) | ||
| 25 | set(DISPLAY_VERSION $ENV{DISPLAYVERSION}) | ||
| 26 | endif () | ||
| 18 | add_custom_command(OUTPUT scm_rev.cpp | 27 | add_custom_command(OUTPUT scm_rev.cpp |
| 19 | COMMAND ${CMAKE_COMMAND} | 28 | COMMAND ${CMAKE_COMMAND} |
| 20 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" | 29 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" |
| 21 | -DBUILD_REPOSITORY="${BUILD_REPOSITORY}" | 30 | -DBUILD_REPOSITORY="${BUILD_REPOSITORY}" |
| 31 | -DTITLE_BAR_FORMAT_IDLE="${TITLE_BAR_FORMAT_IDLE}" | ||
| 32 | -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" | ||
| 22 | -DBUILD_TAG="${BUILD_TAG}" | 33 | -DBUILD_TAG="${BUILD_TAG}" |
| 34 | -DBUILD_ID="${DISPLAY_VERSION}" | ||
| 23 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" | 35 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" |
| 24 | DEPENDS | 36 | DEPENDS |
| 25 | # WARNING! It was too much work to try and make a common location for this list, | 37 | # WARNING! It was too much work to try and make a common location for this list, |