mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Remove date macro on version for reproducible builds
cf https://reproducible-builds.org/
This commit is contained in:
parent
fa6bf597cf
commit
5e044e5bba
@ -36,7 +36,7 @@ else
|
|||||||
if meson.source_root() == git_path
|
if meson.source_root() == git_path
|
||||||
git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']).stdout().strip()
|
git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']).stdout().strip()
|
||||||
git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']).stdout().strip()
|
git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']).stdout().strip()
|
||||||
version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash, git_branch)
|
version = '"@0@ (branch \'@1@\')"'.format(git_commit_hash, git_branch)
|
||||||
add_project_arguments('-DVERSION=@0@'.format(version), language: 'cpp')
|
add_project_arguments('-DVERSION=@0@'.format(version), language: 'cpp')
|
||||||
else
|
else
|
||||||
add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')
|
add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')
|
||||||
|
Loading…
Reference in New Issue
Block a user