From f734e973be202141ac7352439fd2c1812c89d108 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 7 Mar 2018 08:48:01 +1000 Subject: [PATCH] meson: make libinput-git-version.h a source of libinput-record Fixes the dependency chain, otherwise a race condition between building libinput-record and building the git version header causes random build failures. Signed-off-by: Peter Hutterer --- meson.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index ba24a6fc..8591162c 100644 --- a/meson.build +++ b/meson.build @@ -240,10 +240,10 @@ pkgconfig.generate( libraries : lib_libinput ) -vcs_tag(['git', 'describe'], - 'unknown', - input : 'src/libinput-git-version.h.in', - output :'libinput-git-version.h') +git_version_h = vcs_tag(['git', 'describe'], + 'unknown', + input : 'src/libinput-git-version.h.in', + output :'libinput-git-version.h') # Restore the SELinux context for the libinput.so.a.b.c on install # meson bug https://github.com/mesonbuild/meson/issues/1967 @@ -469,7 +469,7 @@ configure_file(input : 'tools/libinput-measure-trackpoint-range.man', install_dir : join_paths(get_option('mandir'), 'man1') ) -libinput_record_sources = [ 'tools/libinput-record.c' ] +libinput_record_sources = [ 'tools/libinput-record.c', git_version_h ] executable('libinput-record', libinput_record_sources, dependencies : deps_tools,