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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-03-07 08:48:01 +10:00
parent cd63ba2cc0
commit f734e973be

View file

@ -240,7 +240,7 @@ pkgconfig.generate(
libraries : lib_libinput
)
vcs_tag(['git', 'describe'],
git_version_h = vcs_tag(['git', 'describe'],
'unknown',
input : 'src/libinput-git-version.h.in',
output :'libinput-git-version.h')
@ -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,