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,10 +240,10 @@ pkgconfig.generate(
libraries : lib_libinput libraries : lib_libinput
) )
vcs_tag(['git', 'describe'], git_version_h = vcs_tag(['git', 'describe'],
'unknown', 'unknown',
input : 'src/libinput-git-version.h.in', input : 'src/libinput-git-version.h.in',
output :'libinput-git-version.h') output :'libinput-git-version.h')
# Restore the SELinux context for the libinput.so.a.b.c on install # Restore the SELinux context for the libinput.so.a.b.c on install
# meson bug https://github.com/mesonbuild/meson/issues/1967 # 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') 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', executable('libinput-record',
libinput_record_sources, libinput_record_sources,
dependencies : deps_tools, dependencies : deps_tools,