diff options
Diffstat (limited to 'graphics/swappy/skip-git.patch')
-rw-r--r-- | graphics/swappy/skip-git.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/swappy/skip-git.patch b/graphics/swappy/skip-git.patch new file mode 100644 index 0000000000..ccd6efa161 --- /dev/null +++ b/graphics/swappy/skip-git.patch @@ -0,0 +1,21 @@ +--- a/meson.build ++++ b/meson.build +@@ -13,17 +13,6 @@ + + version = '"@0@"'.format(meson.project_version()) + git = find_program('git', native: true, required: false) +-if git.found() +- git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check:true) +- git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check:true) +- if git_commit.returncode() == 0 and git_branch.returncode() == 0 +- version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format( +- meson.project_version(), +- git_commit.stdout().strip(), +- git_branch.stdout().strip(), +- ) +- endif +-endif + add_project_arguments('-DSWAPPY_VERSION=@0@'.format(version), language: 'c') + + add_project_arguments('-Wno-unused-parameter', language: 'c') + |