[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 9/9] buildsys: Move usb redir cflags/libs to per obj
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 9/9] buildsys: Move usb redir cflags/libs to per object |
Date: |
Thu, 7 Sep 2017 16:29:18 +0800 |
Signed-off-by: Fam Zheng <address@hidden>
---
configure | 4 ++--
hw/usb/Makefile.objs | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index bee1302155..763a65f156 100755
--- a/configure
+++ b/configure
@@ -4266,8 +4266,6 @@ if test "$usb_redir" != "no" ; then
usb_redir="yes"
usb_redir_cflags=$($pkg_config --cflags libusbredirparser-0.5)
usb_redir_libs=$($pkg_config --libs libusbredirparser-0.5)
- QEMU_CFLAGS="$QEMU_CFLAGS $usb_redir_cflags"
- libs_softmmu="$libs_softmmu $usb_redir_libs"
else
if test "$usb_redir" = "yes"; then
feature_not_found "usb-redir" "Install usbredir devel"
@@ -5839,6 +5837,8 @@ fi
if test "$usb_redir" = "yes" ; then
echo "CONFIG_USB_REDIR=y" >> $config_host_mak
+ echo "USB_REDIR_CFLAGS=$usb_redir_cflags" >> $config_host_mak
+ echo "USB_REDIR_LIBS=$usb_redir_libs" >> $config_host_mak
fi
if test "$opengl" = "yes" ; then
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
index 9ce9eadb47..92eb199697 100644
--- a/hw/usb/Makefile.objs
+++ b/hw/usb/Makefile.objs
@@ -38,6 +38,8 @@ endif
# usb redirection
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
+redirect.o-cflags = $(USB_REDIR_CFLAGS)
+redirect.o-libs = $(USB_REDIR_LIBS)
# usb pass-through
common-obj-y += $(patsubst %,host-%.o,$(HOST_USB))
--
2.13.5
- Re: [Qemu-devel] [PATCH 1/9] buildsys: Move gtk/vte cflags/libs to per object, (continued)
- [Qemu-devel] [PATCH 2/9] buildsys: Move sdl cflags/libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 3/9] buildsys: Move vnc cflags/libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 4/9] buildsys: Move audio libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 5/9] buildsys: Move curese cflags/libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 8/9] buildsys: Move libusb cflags/libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 6/9] buildsys: Move opengl cflags to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 7/9] buildsys: Move libcacard cflags/libs to per object, Fam Zheng, 2017/09/07
- [Qemu-devel] [PATCH 9/9] buildsys: Move usb redir cflags/libs to per object,
Fam Zheng <=
- Re: [Qemu-devel] [PATCH 0/9] buildsys: Move ui/usb library cflags/libs to per object, Gerd Hoffmann, 2017/09/07