diff options
Diffstat (limited to 'CMakeModules/GenerateSCMRev.cmake')
| -rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 787e30df1..5d4eccb00 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake | |||
| @@ -20,6 +20,8 @@ get_timestamp(BUILD_DATE) | |||
| 20 | # Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well | 20 | # Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well |
| 21 | set(REPO_NAME "") | 21 | set(REPO_NAME "") |
| 22 | set(BUILD_VERSION "0") | 22 | set(BUILD_VERSION "0") |
| 23 | set(TITLE_BAR_FORMAT_IDLE "yuzu {5} ") | ||
| 24 | set(BUILD_ID "420") | ||
| 23 | if (BUILD_REPOSITORY) | 25 | if (BUILD_REPOSITORY) |
| 24 | # regex capture the string nightly or canary into CMAKE_MATCH_1 | 26 | # regex capture the string nightly or canary into CMAKE_MATCH_1 |
| 25 | string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) | 27 | string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) |
| @@ -48,25 +50,6 @@ if (BUILD_REPOSITORY) | |||
| 48 | endif() | 50 | endif() |
| 49 | endif() | 51 | endif() |
| 50 | 52 | ||
| 51 | # "Hack": Generate BUILD_FULLNAME from the Git desc | ||
| 52 | if (GIT_DESC) | ||
| 53 | # regex capture the characters before the first "-" into CMAKE_MATCH_1 | ||
| 54 | string(REGEX MATCH "^([a-z]*)-.*" OUTVAR ${GIT_DESC}) | ||
| 55 | if ("${CMAKE_MATCH_COUNT}" GREATER 0) | ||
| 56 | # capitalize the first letter of the repo name. | ||
| 57 | string(SUBSTRING ${CMAKE_MATCH_1} 0 1 FIRST_LETTER) | ||
| 58 | string(SUBSTRING ${CMAKE_MATCH_1} 1 -1 REMAINDER) | ||
| 59 | string(TOUPPER ${FIRST_LETTER} FIRST_LETTER) | ||
| 60 | set(REPO_NAME "${FIRST_LETTER}${REMAINDER}") | ||
| 61 | |||
| 62 | # If GIT_DESC has been parsed correctly, build the BUILD_FULLNAME from the repo name and the | ||
| 63 | # build version | ||
| 64 | if(REPO_NAME) | ||
| 65 | set(BUILD_FULLNAME "${REPO_NAME} ${BUILD_ID} ") | ||
| 66 | endif() | ||
| 67 | endif() | ||
| 68 | endif() | ||
| 69 | |||
| 70 | # The variable SRC_DIR must be passed into the script (since it uses the current build directory for all values of CMAKE_*_DIR) | 53 | # The variable SRC_DIR must be passed into the script (since it uses the current build directory for all values of CMAKE_*_DIR) |
| 71 | set(VIDEO_CORE "${SRC_DIR}/src/video_core") | 54 | set(VIDEO_CORE "${SRC_DIR}/src/video_core") |
| 72 | set(HASH_FILES | 55 | set(HASH_FILES |