cmake: Fix title bar issue
This commit is contained in:
parent
d0ac624403
commit
dfd14618f7
|
@ -16,14 +16,7 @@ get_timestamp(BUILD_DATE)
|
||||||
# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well
|
# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well
|
||||||
set(REPO_NAME "")
|
set(REPO_NAME "")
|
||||||
set(BUILD_VERSION "0")
|
set(BUILD_VERSION "0")
|
||||||
if ($ENV{CI})
|
if (BUILD_REPOSITORY)
|
||||||
if ($ENV{TRAVIS})
|
|
||||||
set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG})
|
|
||||||
set(BUILD_TAG $ENV{TRAVIS_TAG})
|
|
||||||
elseif($ENV{APPVEYOR})
|
|
||||||
set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
|
|
||||||
set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
|
|
||||||
endif()
|
|
||||||
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
||||||
string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
||||||
if (${CMAKE_MATCH_COUNT} GREATER 0)
|
if (${CMAKE_MATCH_COUNT} GREATER 0)
|
||||||
|
|
|
@ -3,8 +3,21 @@
|
||||||
# could affect the result, but much more unlikely than the following files. Keeping a list of files
|
# could affect the result, but much more unlikely than the following files. Keeping a list of files
|
||||||
# like this allows for much better caching since it doesn't force the user to recompile binary shaders every update
|
# like this allows for much better caching since it doesn't force the user to recompile binary shaders every update
|
||||||
set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core")
|
set(VIDEO_CORE "${CMAKE_SOURCE_DIR}/src/video_core")
|
||||||
|
if (DEFINED ENV{CI})
|
||||||
|
if (DEFINED ENV{TRAVIS})
|
||||||
|
set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG})
|
||||||
|
set(BUILD_TAG $ENV{TRAVIS_TAG})
|
||||||
|
elseif(DEFINED ENV{APPVEYOR})
|
||||||
|
set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
|
||||||
|
set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
add_custom_command(OUTPUT scm_rev.cpp
|
add_custom_command(OUTPUT scm_rev.cpp
|
||||||
COMMAND ${CMAKE_COMMAND} -DSRC_DIR="${CMAKE_SOURCE_DIR}" -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
-DSRC_DIR="${CMAKE_SOURCE_DIR}"
|
||||||
|
-DBUILD_REPOSITORY="${BUILD_REPOSITORY}"
|
||||||
|
-DBUILD_TAG="${BUILD_TAG}"
|
||||||
|
-P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
# WARNING! It was too much work to try and make a common location for this list,
|
# WARNING! It was too much work to try and make a common location for this list,
|
||||||
# so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well
|
# so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well
|
||||||
|
|
Loading…
Reference in New Issue