From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PULL v8 069/152] meson: convert chardev directory to Meson (emulator part)
Date: Fri, 21 Aug 2020 06:22:06 -0400 [thread overview]
Message-ID: <20200821102329.29777-70-pbonzini@redhat.com> (raw)
In-Reply-To: <20200821102329.29777-1-pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile.objs | 2 --
Makefile.target | 2 ++
chardev/Makefile.objs | 10 ----------
chardev/meson.build | 13 +++++++++++++
configure | 2 ++
meson.build | 14 ++++++++++++++
6 files changed, 31 insertions(+), 12 deletions(-)
delete mode 100644 chardev/Makefile.objs
diff --git a/Makefile.objs b/Makefile.objs
index eeaa0cfa82..e43526fe5f 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -87,8 +87,6 @@ common-obj-y += dma-helpers.o
common-obj-$(CONFIG_TPM) += tpm.o
common-obj-y += backends/
-common-obj-y += chardev/
-common-obj-m += chardev/
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
diff --git a/Makefile.target b/Makefile.target
index c0575da132..c8c4b70162 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -104,6 +104,7 @@ all: $(PROGS) stap
@true
obj-y += $(LIBQEMU)
+
obj-y += trace/
#########################################################
@@ -167,6 +168,7 @@ LIBS := $(LIBS) @../block.syms @../qemu.syms
ifneq ($(CONFIG_MODULES),y)
LIBS := $(LIBS)
endif
+LIBS := $(LIBS) $(BRLAPI_LIBS) $(SDL_LIBS) $(SPICE_LIBS)
# Hardware support
ifeq ($(TARGET_NAME), sparc64)
diff --git a/chardev/Makefile.objs b/chardev/Makefile.objs
deleted file mode 100644
index 6662d0df41..0000000000
--- a/chardev/Makefile.objs
+++ /dev/null
@@ -1,10 +0,0 @@
-chardev-obj-$(CONFIG_SOFTMMU) += chardev-sysemu.o
-common-obj-$(CONFIG_SOFTMMU) += msmouse.o wctablet.o testdev.o
-
-ifeq ($(CONFIG_BRLAPI),y)
-common-obj-m += baum.o
-baum.o-cflags := $(SDL_CFLAGS)
-baum.o-libs := $(BRLAPI_LIBS)
-endif
-
-common-obj-$(CONFIG_SPICE) += spice.o
diff --git a/chardev/meson.build b/chardev/meson.build
index 9d99025a14..02f914d6c0 100644
--- a/chardev/meson.build
+++ b/chardev/meson.build
@@ -30,3 +30,16 @@ libchardev = static_library('chardev', chardev_ss.sources() + genh,
build_by_default: false)
chardev = declare_dependency(link_whole: libchardev)
+
+softmmu_ss.add(files('chardev-sysemu.c', 'msmouse.c', 'wctablet.c', 'testdev.c'))
+softmmu_ss.add(when: ['CONFIG_SPICE', spice], if_true: files('spice.c'))
+
+chardev_modules = {}
+
+if config_host.has_key('CONFIG_BRLAPI') and config_host.has_key('CONFIG_SDL')
+ module_ss = ss.source_set()
+ module_ss.add(when: [sdl, brlapi], if_true: files('baum.c'))
+ chardev_modules += { 'brlapi': module_ss }
+endif
+
+modules += { 'chardev': chardev_modules }
diff --git a/configure b/configure
index 9e1f3cf9f1..8109ac027e 100755
--- a/configure
+++ b/configure
@@ -7389,6 +7389,8 @@ if test "$zlib" != "no" ; then
fi
if test "$spice" = "yes" ; then
echo "CONFIG_SPICE=y" >> $config_host_mak
+ echo "SPICE_CFLAGS=$spice_cflags" >> $config_host_mak
+ echo "SPICE_LIBS=$spice_libs" >> $config_host_mak
fi
if test "$smartcard" = "yes" ; then
diff --git a/meson.build b/meson.build
index 3a8cf11edc..d3b74868e2 100644
--- a/meson.build
+++ b/meson.build
@@ -147,6 +147,11 @@ if 'CONFIG_XKBCOMMON' in config_host
xkbcommon = declare_dependency(compile_args: config_host['XKBCOMMON_CFLAGS'].split(),
link_args: config_host['XKBCOMMON_LIBS'].split())
endif
+spice = not_found
+if 'CONFIG_SPICE' in config_host
+ spice = declare_dependency(compile_args: config_host['SPICE_CFLAGS'].split(),
+ link_args: config_host['SPICE_LIBS'].split())
+endif
rt = cc.find_library('rt', required: false)
libmpathpersist = not_found
if config_host.has_key('CONFIG_MPATH')
@@ -181,6 +186,15 @@ libudev = not_found
if 'CONFIG_LIBUDEV' in config_host
libudev = declare_dependency(link_args: config_host['LIBUDEV_LIBS'].split())
endif
+brlapi = not_found
+if 'CONFIG_BRLAPI' in config_host
+ brlapi = declare_dependency(link_args: config_host['BRLAPI_LIBS'].split())
+endif
+sdl = not_found
+if 'CONFIG_SDL' in config_host
+ sdl = declare_dependency(compile_args: config_host['SDL_CFLAGS'].split(),
+ link_args: config_host['SDL_LIBS'].split())
+endif
rbd = not_found
if 'CONFIG_RBD' in config_host
rbd = declare_dependency(link_args: config_host['RBD_LIBS'].split())
--
2.26.2
next prev parent reply other threads:[~2020-08-21 10:56 UTC|newest]
Thread overview: 157+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 10:20 [PULL v8 000/152] Meson-based build system Paolo Bonzini
2020-08-21 10:20 ` [PULL v8 001/152] oss-fuzz/build: remove LIB_FUZZING_ENGINE Paolo Bonzini
2020-08-21 10:20 ` [PULL v8 002/152] optionrom: simplify Makefile Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 003/152] pc-bios/s390-ccw: do not use rules.mak Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 004/152] trace: switch position of headers to what Meson requires Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 005/152] meson: rename included C source files to .c.inc Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 006/152] meson: rename .inc.h files to .h.inc Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 007/152] build-sys hack: ensure target directory is there Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 008/152] tests/vm: do not pollute configure with --efi-aarch64 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 009/152] tests/vm: check for Python YAML parser in the Makefile Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 010/152] tests/docker: add test script for static linux-user builds Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 011/152] nsis: use "make DESTDIR=" instead of "make prefix=" Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 012/152] configure: do not include $(...) variables in config-host.mak Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 013/152] configure: expand path variables for meson configure Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 014/152] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 015/152] tests/vm: include setuptools Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 016/152] configure: add support for pseudo-"in source tree" builds Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 017/152] configure: integrate Meson in the build system Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 018/152] configure: generate Meson cross file Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 019/152] build-sys hack: link with whole .fa archives Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 020/152] build-sys: add meson submodule Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 021/152] meson: move summary to meson.build Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 022/152] meson: enable pie Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 023/152] meson: use coverage option Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 024/152] meson: add sparse support Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 025/152] meson: add testsuite Makefile generator Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 026/152] libqemuutil, qapi, trace: convert to meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 027/152] meson: add remaining generated tcg trace helpers Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 028/152] meson: add version.o Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 029/152] contrib/libvhost-user: convert to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 030/152] tools/virtiofsd: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 031/152] contrib/vhost-user-blk: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 032/152] vhost-user-scsi: add compatibility for libiscsi 1.9.0 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 033/152] contrib/vhost-user-scsi: convert to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 034/152] contrib/rdmacm-mux: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 035/152] contrib/vhost-user-input: convert to meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 036/152] contrib/vhost-user-gpu: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 037/152] contrib/ivshmem: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 038/152] contrib/elf2dmp: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 039/152] meson: add macos dependencies Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 040/152] meson: add solaris and Haiku libraries Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 041/152] meson: convert qemu-ga Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 042/152] meson: convert vss-win32 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 043/152] meson: add msi generation Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 044/152] meson: convert dummy Windows qga/qemu-ga target Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 045/152] meson: add qemu-bridge-helper Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 046/152] meson: add qemu-keymap Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 047/152] meson: add qemu-edid Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 048/152] meson: add virtfs-proxy-helper Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 049/152] meson: keymap-gen Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 050/152] meson: generate qemu-version.h Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 051/152] meson: generate shader headers Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 052/152] meson: generate hxtool files Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 053/152] meson: handle edk2 bios and descriptors Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 054/152] meson: convert check-decodetree Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 055/152] meson: convert tests/fp and check-softfloat Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 056/152] meson: convert check-qapi-schema Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 057/152] meson: convert qom directory to Meson (tools part) Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 058/152] meson: convert authz directory to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 059/152] meson: convert crypto " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 060/152] meson: convert io " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 061/152] meson: convert target/s390x/gen-features.h Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 062/152] meson: infrastructure for building emulators Paolo Bonzini
2020-11-03 13:39 ` Philippe Mathieu-Daudé
2020-11-03 14:19 ` 罗勇刚(Yonggang Luo)
2020-11-03 14:25 ` Paolo Bonzini
2020-11-03 14:27 ` 罗勇刚(Yonggang Luo)
2020-08-21 10:22 ` [PULL v8 063/152] meson: add modules infrastructure Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 064/152] meson: convert chardev directory to Meson (tools part) Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 065/152] meson: convert block Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 066/152] meson: qemu-{img,io,nbd} Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 067/152] meson: qemu-pr-helper Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 068/152] configure, Makefile; remove TOOLS and HELPERS-y variable Paolo Bonzini
2020-08-21 10:22 ` Paolo Bonzini [this message]
2020-08-21 10:22 ` [PULL v8 070/152] meson: convert tests/qtest to meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 071/152] meson: convert audio directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 072/152] meson: convert ui " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 073/152] meson: convert root " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 074/152] meson: convert most of softmmu/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 075/152] meson: convert trace/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 076/152] meson: convert dump/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 077/152] meson: convert common QMP bits for qemu and qemu-storage-daemon Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 078/152] meson: convert qemu-storage-daemon Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 079/152] meson: convert replay directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 080/152] meson: convert migration " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 081/152] meson: convert net " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 082/152] meson: convert backends " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 083/152] meson: convert fsdev/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 084/152] meson: convert disas directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 085/152] meson: convert qapi-specific to meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 086/152] meson: convert hw/xen Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 087/152] meson: convert hw/core Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 088/152] meson: convert hw/semihosting Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 089/152] meson: convert hw/nubus Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 090/152] meson: convert hw/smbios Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 091/152] meson: convert hw/mem Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 092/152] meson: convert hw/watchdog Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 093/152] meson: convert hw/virtio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 094/152] meson: convert hw/vfio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 095/152] meson: convert hw/usb Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 096/152] meson: convert hw/tpm Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 097/152] meson: convert hw/timer Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 098/152] meson: convert hw/rtc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 099/152] meson: convert hw/ssi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 100/152] meson: convert hw/sd Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 101/152] meson: convert hw/scsi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 102/152] meson: convert hw/pcmcia Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 103/152] meson: convert hw/pci-host Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 104/152] meson: convert hw/pci-bridge Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 105/152] meson: convert hw/pci Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 106/152] meson: convert hw/nvram Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 107/152] meson: convert hw/rdma Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 108/152] meson: convert hw/net Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 109/152] meson: convert hw/misc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 110/152] meson: convert hw/isa Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 111/152] meson: convert hw/ipmi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 112/152] meson: convert hw/ipack Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 113/152] meson: convert hw/intc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 114/152] meson: convert hw/input Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 115/152] meson: convert hw/ide Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 116/152] meson: convert hw/i2c Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 117/152] meson: convert hw/hyperv Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 118/152] meson: convert hw/gpio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 119/152] meson: convert hw/dma Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 120/152] meson: convert hw/display Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 121/152] meson: convert hw/cpu Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 122/152] meson: convert hw/char Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 123/152] meson: convert hw/block Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 124/152] meson: convert hw/audio Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 125/152] meson: convert hw/adc Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 126/152] meson: convert hw/acpi Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 127/152] meson: convert hw/9pfs, cleanup Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 128/152] meson: convert hw/arch* Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 129/152] meson: target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 130/152] meson: accel Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 131/152] meson: linux-user Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 132/152] meson: bsd-user Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 133/152] meson: cpu-emu Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 134/152] meson: plugins Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 135/152] meson: link emulators without Makefile.target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 136/152] configure: place compatibility symlinks in target directories Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 137/152] meson: convert systemtap files Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 138/152] rules.mak: remove version.o Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 139/152] remove Makefile.target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 140/152] meson: sphinx-build Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 141/152] docs: automatically track manual dependencies Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 142/152] meson: build texi doc Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 143/152] meson: convert check-block Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 144/152] rules.mak: drop unneeded macros Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 145/152] meson: replace create-config with meson configure_file Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 146/152] meson: convert sample plugins Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 147/152] meson: move SDL and SDL-image detection to meson Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 148/152] meson: convert VNC and dependent libraries " Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 149/152] meson: convert po/ Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 150/152] meson: avoid unstable module warning with Meson 0.56.0 or newer Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 151/152] meson: update build-system documentation Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 152/152] docs: convert build system documentation to rST Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200821102329.29777-70-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).