aboutsummaryrefslogtreecommitdiff
path: root/libdino/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/meson.build')
-rw-r--r--libdino/meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdino/meson.build b/libdino/meson.build
index 42910463..aa88e979 100644
--- a/libdino/meson.build
+++ b/libdino/meson.build
@@ -1,10 +1,11 @@
# version_vala
-dot_git = meson.current_source_dir() / '../.git'
-version_file = meson.current_source_dir() / '../VERSION'
-command = [prog_python, files('version.py'), version_file, '--git-repo', meson.current_source_dir()]
+version_py = files('version.py')[0]
+command = [prog_python, version_py.full_path(), version_file_path, '--git-repo', meson.current_source_dir()]
if prog_git.found()
command += ['--git', prog_git]
endif
+# We add those dummy args to ensure meson sees the dependency
+command += ['--', version_py, version_file]
version_vala = vcs_tag(command: command, input: 'src/version.vala.in', output: 'version.vala', replace_string: '%VERSION%')
# libdino