mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 15:47:57 -05:00
common: Add build timestamp to scm_rev.
This commit is contained in:
@ -295,11 +295,18 @@ function(create_directory_groups)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
# generate git revision information
|
||||
# Gets a UTC timstamp and sets the provided variable to it
|
||||
function(get_timestamp _var)
|
||||
string(TIMESTAMP timestamp UTC)
|
||||
set(${_var} "${timestamp}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
# generate git/build information
|
||||
include(GetGitRevisionDescription)
|
||||
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||
git_describe(GIT_DESC --always --long --dirty)
|
||||
git_branch_name(GIT_BRANCH)
|
||||
get_timestamp(BUILD_DATE)
|
||||
|
||||
enable_testing()
|
||||
add_subdirectory(externals)
|
||||
|
Reference in New Issue
Block a user