mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Make sway-version overrideable again
This commit is contained in:
parent
98b40d31c1
commit
e099f7870d
2 changed files with 5 additions and 1 deletions
|
|
@ -128,7 +128,10 @@ endif
|
|||
|
||||
add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c')
|
||||
|
||||
version = '"@0@"'.format(meson.project_version())
|
||||
version = get_option('sway-version')
|
||||
if version == ''
|
||||
version = '"@0@"'.format(meson.project_version())
|
||||
endif
|
||||
if git.found()
|
||||
git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags'])
|
||||
git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue