]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
build-sys: build ui-spice-app as a module
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Aug 2019 14:02:40 +0000 (18:02 +0400)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 2 Sep 2019 09:52:22 +0000 (10:52 +0100)
This reverts commit 45db1ac157 ("modules-test: ui-spice-app is not
built as module") and fixes commit d8aec9d9f1 ("display: add -display
spice-app launching a Spice client").

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190827140241.20818-1-marcandre.lureau@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/modules-test.c
ui/Makefile.objs

index f9de3afdb77c952a0f956cfe30e8881215833307..a8118e9042741060594581dc2cb3207d0866a381 100644 (file)
@@ -52,6 +52,9 @@ int main(int argc, char *argv[])
 #endif
 #ifdef CONFIG_SDL
         "ui-", "sdl",
+#endif
+#if defined(CONFIG_SPICE) && defined(CONFIG_GIO)
+        "ui-", "spice-app",
 #endif
     };
     int i;
index cc2bf5b180f37dbcabb6b53f16ffc9968182a64d..ba39080edb2bd9659efe900f4ec9e79233a0fc67 100644 (file)
@@ -49,7 +49,9 @@ curses.mo-objs := curses.o
 curses.mo-cflags := $(CURSES_CFLAGS) $(ICONV_CFLAGS)
 curses.mo-libs := $(CURSES_LIBS) $(ICONV_LIBS)
 
-common-obj-$(call land,$(CONFIG_SPICE),$(CONFIG_GIO)) += spice-app.mo
+ifeq ($(CONFIG_GIO)$(CONFIG_SPICE),yy)
+common-obj-$(if $(CONFIG_MODULES),m,y) += spice-app.mo
+endif
 spice-app.mo-objs := spice-app.o
 spice-app.mo-cflags := $(GIO_CFLAGS)
 spice-app.mo-libs := $(GIO_LIBS)