summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorLouis Taylor <louis@kragniz.eu>2019-01-21 22:45:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-22 14:39:38 +0100
commitd1084aa2f803cdce6b3809dc9b7ec899251fd5dc (patch)
treeba74d5797b087e0f346c565a4ba1f2420ec7152d /meson.build
parentMerge pull request #11501 from yuwata/fix-9426 (diff)
downloadsystemd-d1084aa2f803cdce6b3809dc9b7ec899251fd5dc.tar.xz
systemd-d1084aa2f803cdce6b3809dc9b7ec899251fd5dc.zip
meson: make version a dependency and use it in libbasic
This should hopefully ensure it gets generated before basic build happens. Fixes #11483.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 011e449806..5cf2fc2664 100644
--- a/meson.build
+++ b/meson.build
@@ -580,6 +580,13 @@ vcs_tagger = [meson.source_root() + '/tools/meson-vcs-tag.sh',
get_option('version-tag'),
meson.project_version()]
+version_h = vcs_tag(
+ input : 'src/version/version.h.in',
+ output : 'version.h',
+ command: vcs_tagger)
+
+versiondep = declare_dependency(sources: version_h)
+
sed = find_program('sed')
awk = find_program('awk')
m4 = find_program('m4')