diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-08-28 15:07:19 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-08 07:17:09 +0200 |
commit | 37e2777670dcf25f65929a871f246c6c012d8b03 (patch) | |
tree | 63cf35cd4ead7cfea67e81de1a6cff71512b54ca /tests/include | |
parent | c138156ba55cd7e1b8b45a0e49f62f97d92a9e64 (diff) | |
download | qemu-37e2777670dcf25f65929a871f246c6c012d8b03.zip qemu-37e2777670dcf25f65929a871f246c6c012d8b03.tar.gz qemu-37e2777670dcf25f65929a871f246c6c012d8b03.tar.bz2 |
meson: build qapi tests library
- builds QAPI builtins types/visitor to fix a linking issue with
unresolved symbols in the static library.
- work around a meson limitation on generated file output directories.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200828110734.1638685-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/include')
-rw-r--r-- | tests/include/meson.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/include/meson.build b/tests/include/meson.build new file mode 100644 index 0000000..fea3a63 --- /dev/null +++ b/tests/include/meson.build @@ -0,0 +1,16 @@ +# an extra target to workaround meson limitation on output files location +test_qapi_outputs_extra = [ + 'test-qapi-commands-sub-module.c', + 'test-qapi-commands-sub-module.h', + 'test-qapi-events-sub-module.c', + 'test-qapi-events-sub-module.h', + 'test-qapi-types-sub-module.c', + 'test-qapi-types-sub-module.h', + 'test-qapi-visit-sub-module.c', + 'test-qapi-visit-sub-module.h', +] + +test_qapi_outputs_extra = custom_target('QAPI test (include)', + output: test_qapi_outputs_extra, + input: test_qapi_files, + command: 'true') |