meson: tools: depend on keycode generated sources

Tools depend on keycode generated sources, so declare that as an
explicit dependency, otherwise it might fail with:

../tools/virsh-completer-domain.c:35:10: fatal error: 'virkeynametable_linux.h' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: b0f4cf25a6
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Roman Bogorodskiy 2021-03-03 06:40:01 +04:00
parent 0a3d0c610a
commit d5b2644815
2 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,10 @@ foreach name : keyname_list
)
endforeach
keycode_dep = declare_dependency(
sources: keycode_gen_sources,
)
io_helper_sources = [
'iohelper.c',
]

View File

@ -186,6 +186,7 @@ executable(
tools_dep,
readline_dep,
thread_dep,
keycode_dep,
],
link_args: [
coverage_flags,