blob: a589d51f8c5583fd28ca863692506a2fa8055c88 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001Description: set a static version string rather than discern it from git
2--- a/meson.build
3+++ b/meson.build
4@@ -20,6 +20,7 @@ add_project_arguments(
5
6 conf = configuration_data()
7 conf.set_quoted('PACKAGE_NAME', meson.project_name())
8+conf.set('VCS_TAG', meson.project_version())
9
10 build_arping = get_option('BUILD_ARPING')
11 build_clockdiff = get_option('BUILD_CLOCKDIFF')
12@@ -149,10 +150,10 @@ foreach h : [
13 endif
14 endforeach
15
16-git_version_h = vcs_tag(
17+git_version_h = configure_file(
18 input : 'git-version.h.meson',
19 output : 'git-version.h',
20- fallback : meson.project_version()
21+ configuration: conf
22 )
23
24 config_h = configure_file(