]> git.proxmox.com Git - mirror_qemu.git/commit
libqemuutil, qapi, trace: convert to meson
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Aug 2020 12:44:56 +0000 (08:44 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:30:08 +0000 (06:30 -0400)
commita81df1b68b656f2487f556240baf2af83e60ec6c
treeeb98104c0a66b6a6d7675055d92c36b60d683796
parent245dac4a1bef719d648e20c84bbf3dcaf50de988
libqemuutil, qapi, trace: convert to meson

This shows how to do some "computations" in meson.build using its array
and dictionary data structures, and also a basic usage of the sourceset
module for conditional compilation.

Notice the new "if have_system" part of util/meson.build, which fixes
a bug in the old build system was buggy: util/dbus.c was built even for
non-softmmu builds, but the dependency on -lgio was lost when the linking
was done through libqemuutil.a.  Because all of its users required gio
otherwise, the bug was hidden.  Meson instead propagates libqemuutil's
dependencies down to its users, and shows the problem.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
27 files changed:
Makefile
Makefile.objs
Makefile.target
configure
crypto/Makefile.objs
crypto/meson.build [new file with mode: 0644]
docs/devel/tracing.txt
meson.build
qapi/Makefile.objs
qapi/meson.build [new file with mode: 0644]
qobject/Makefile.objs [deleted file]
qobject/meson.build [new file with mode: 0644]
rules.mak
scripts/qapi-gen.py [changed mode: 0755->0644]
scripts/tracetool.py [changed mode: 0755->0644]
scripts/tracetool/backend/dtrace.py
scripts/tracetool/backend/ust.py
storage-daemon/Makefile.objs
storage-daemon/meson.build [new file with mode: 0644]
storage-daemon/qapi/Makefile.objs [deleted file]
storage-daemon/qapi/meson.build [new file with mode: 0644]
stubs/Makefile.objs [deleted file]
stubs/meson.build [new file with mode: 0644]
trace/Makefile.objs
trace/meson.build [new file with mode: 0644]
util/Makefile.objs [deleted file]
util/meson.build [new file with mode: 0644]