From 613cb5e2d7c3f1469f4f91b86fa982eda472465b Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 1 Aug 2024 15:33:56 +0200 Subject: Meson: Adjust version generation to match CMake and be compatible with vala-language-server --- libdino/meson.build | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'libdino/meson.build') diff --git a/libdino/meson.build b/libdino/meson.build index 85487d48..f88cbb06 100644 --- a/libdino/meson.build +++ b/libdino/meson.build @@ -1,18 +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, '@OUTPUT@', '--git-repo', meson.current_source_dir()] +command = [prog_python, files('version.py'), version_file, '--git-repo', meson.current_source_dir()] if prog_git.found() command += ['--git', prog_git] endif -depend_files = [] -if fs.exists(dot_git) - depend_files += [dot_git] -endif -if fs.exists(version_file) - depend_files += [version_file] -endif -version_vala = custom_target('libdino_version_vala', command: command, output: 'version.vala', depend_files: depend_files) +version_vala = vcs_tag(command: command, input: 'src/version.vala.in', output: 'version.vala', replace_string: '%VERSION%') # libdino dependencies = [ -- cgit v1.2.3-70-g09d2