projects/aports·blob master · refs

21 lines · 744 B

1--- a/meson.build
2+++ b/meson.build
3@@ -12,18 +12,6 @@ project(
4 )
5
6 version = '"@0@"'.format(meson.project_version())
7-git = find_program('git', native: true, required: false)
8-if git.found()
9- git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check:true)
10- git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check:true)
11- if git_commit.returncode() == 0 and git_branch.returncode() == 0
12- version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format(
13- meson.project_version(),
14- git_commit.stdout().strip(),
15- git_branch.stdout().strip(),
16- )
17- endif
18-endif
19 add_project_arguments('-DSWAPPY_VERSION=@0@'.format(version), language: 'c')
20
21 add_project_arguments('-Wno-unused-parameter', language: 'c')