diff options
| author | 2019-02-06 21:55:14 -0300 | |
|---|---|---|
| committer | 2019-02-06 22:23:41 -0300 | |
| commit | dfd14618f7cde84caf15f3b56ee14800f2509ebc (patch) | |
| tree | dddd4ab0851516f67c11d1121e8f233c9f0bafd3 | |
| parent | gl_shader_disk_cache: Check LZ4 size limit (diff) | |
| download | yuzu-dfd14618f7cde84caf15f3b56ee14800f2509ebc.tar.gz yuzu-dfd14618f7cde84caf15f3b56ee14800f2509ebc.tar.xz yuzu-dfd14618f7cde84caf15f3b56ee14800f2509ebc.zip | |
cmake: Fix title bar issue
| -rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 9 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 15 |
2 files changed, 15 insertions, 9 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 743b14407..78728e08b 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake | |||
| @@ -16,14 +16,7 @@ get_timestamp(BUILD_DATE) | |||
| 16 | # Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well | 16 | # Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well |
| 17 | set(REPO_NAME "") | 17 | set(REPO_NAME "") |
| 18 | set(BUILD_VERSION "0") | 18 | set(BUILD_VERSION "0") |
| 19 | if ($ENV{CI}) | 19 | if (BUILD_REPOSITORY) |
| 20 | if ($ENV{TRAVIS}) | ||
| 21 | set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG}) | ||
| 22 | set(BUILD_TAG $ENV{TRAVIS_TAG}) | ||
| 23 | elseif($ENV{APPVEYOR}) | ||
| 24 | set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME}) | ||
| 25 | set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME}) | ||
| 26 | endif() | ||
| 27 | # regex capture the string nightly or canary into CMAKE_MATCH_1 | 20 | # regex capture the string nightly or canary into CMAKE_MATCH_1 |
| 28 | string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) | 21 | string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) |
| 29 | if (${CMAKE_MATCH_COUNT} GREATER 0) | 22 | if (${CMAKE_MATCH_COUNT} GREATER 0) |
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 4b6ddf894..bdd885273 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -3,8 +3,21 @@ | |||
| 3 | # could affect the result, but much more unlikely than the following files. Keeping a list of files | 3 | # could affect the result, but much more unlikely than the following files. Keeping a list of files |
| 4 | # like this allows for much better caching since it doesn't force the user to recompile binary shaders every update | 4 | # like this allows for much better caching since it doesn't force the user to recompile binary shaders every update |
| 5 | set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core") | 5 | set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core") |
| 6 | if (DEFINED ENV{CI}) | ||
| 7 | if (DEFINED ENV{TRAVIS}) | ||
| 8 | set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG}) | ||
| 9 | set(BUILD_TAG $ENV{TRAVIS_TAG}) | ||
| 10 | elseif(DEFINED ENV{APPVEYOR}) | ||
| 11 | set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME}) | ||
| 12 | set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME}) | ||
| 13 | endif() | ||
| 14 | endif() | ||
| 6 | add_custom_command(OUTPUT scm_rev.cpp | 15 | add_custom_command(OUTPUT scm_rev.cpp |
| 7 | COMMAND ${CMAKE_COMMAND} -DSRC_DIR="${CMAKE_SOURCE_DIR}" -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" | 16 | COMMAND ${CMAKE_COMMAND} |
| 17 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" | ||
| 18 | -DBUILD_REPOSITORY="${BUILD_REPOSITORY}" | ||
| 19 | -DBUILD_TAG="${BUILD_TAG}" | ||
| 20 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" | ||
| 8 | DEPENDS | 21 | DEPENDS |
| 9 | # WARNING! It was too much work to try and make a common location for this list, | 22 | # WARNING! It was too much work to try and make a common location for this list, |
| 10 | # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well | 23 | # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well |