summaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorjpakkane <jpakkane@gmail.com>2015-02-15 15:42:50 +0200
committerjpakkane <jpakkane@gmail.com>2015-02-15 15:42:50 +0200
commit7c074fd9535e8dbe2f32a5b322ce8e25b27cce8a (patch)
tree65cf0854e180d1b836fdac668d480006e244df2b /test cases/common
parent57e74de3aea47a361cfb358bfbb78dbda5866109 (diff)
parent0a95e4b4a929f848b81bd723124d3c9a774cbce0 (diff)
downloadmeson-7c074fd9535e8dbe2f32a5b322ce8e25b27cce8a.tar.gz
Merge pull request #34 from axxel/master
Add support for optional custom command and replace_string parameter of vcs_tag.
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/73 vcstag/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/common/73 vcstag/meson.build b/test cases/common/73 vcstag/meson.build
index 23ff487f2..001b42da0 100644
--- a/test cases/common/73 vcstag/meson.build
+++ b/test cases/common/73 vcstag/meson.build
@@ -4,5 +4,11 @@ version_src = vcs_tag(input : 'vcstag.c.in',
output : 'vcstag.c',
fallback : '1.0.0')
+version_src_custom = vcs_tag(input : 'vcstag.c.in',
+output : 'vcstag-custom.c',
+command : ['git', 'show-ref', '-s', 'refs/heads/master'],
+fallback : '1.0.0')
+
executable('tagprog', 'tagprog.c', version_src)
+executable('tagprog-custom', 'tagprog.c', version_src_custom)