summaryrefslogtreecommitdiff
path: root/CMakeModules/GenerateSCMRev.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeModules/GenerateSCMRev.cmake')
-rw-r--r--CMakeModules/GenerateSCMRev.cmake21
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
21set(REPO_NAME "") 21set(REPO_NAME "")
22set(BUILD_VERSION "0") 22set(BUILD_VERSION "0")
23set(TITLE_BAR_FORMAT_IDLE "yuzu {5} ")
24set(BUILD_ID "420")
23if (BUILD_REPOSITORY) 25if (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()
49endif() 51endif()
50 52
51# "Hack": Generate BUILD_FULLNAME from the Git desc
52if (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()
68endif()
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)
71set(VIDEO_CORE "${SRC_DIR}/src/video_core") 54set(VIDEO_CORE "${SRC_DIR}/src/video_core")
72set(HASH_FILES 55set(HASH_FILES