aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/66 vcstag/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/66 vcstag/meson.build')
-rw-r--r--test cases/common/66 vcstag/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/test cases/common/66 vcstag/meson.build b/test cases/common/66 vcstag/meson.build
new file mode 100644
index 0000000..7e5983a
--- /dev/null
+++ b/test cases/common/66 vcstag/meson.build
@@ -0,0 +1,18 @@
+project('vcstag', 'c')
+
+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')
+
+version_src_fallback = vcs_tag(input : 'vcstag.c.in',
+output : 'vcstag-fallback.c')
+
+executable('tagprog', 'tagprog.c', version_src)
+executable('tagprog-custom', 'tagprog.c', version_src_custom)
+executable('tagprog-fallback', 'tagprog.c', version_src_fallback)
+