]> Git Repo - qemu.git/commitdiff
chardev/spice: build spice chardevs as module
authorGerd Hoffmann <[email protected]>
Wed, 14 Oct 2020 12:11:20 +0000 (14:11 +0200)
committerGerd Hoffmann <[email protected]>
Thu, 15 Oct 2020 09:14:40 +0000 (11:14 +0200)
Signed-off-by: Gerd Hoffmann <[email protected]>
Message-id: 20201014121120[email protected]

chardev/meson.build
util/module.c

index dd2699a11b08a83fb7b6140bbb4364ea4036d7d0..859d8b04d480bb69a0f2b9ef95ceee476e4f653e 100644 (file)
@@ -26,7 +26,6 @@ chardev_ss.add(when: 'CONFIG_WIN32', if_true: files(
 chardev_ss = chardev_ss.apply(config_host, strict: false)
 
 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 = {}
 
@@ -36,4 +35,10 @@ if config_host.has_key('CONFIG_BRLAPI')
   chardev_modules += { 'baum': module_ss }
 endif
 
+if config_host.has_key('CONFIG_SPICE')
+  module_ss = ss.source_set()
+  module_ss.add(when: [spice], if_true: files('spice.c'))
+  chardev_modules += { 'spice': module_ss }
+endif
+
 modules += { 'chardev': chardev_modules }
index 4349607ad1763b906bd60bb760f37b8fca71a40f..f0ed05fbd06b87b8bd85c4e59a8556f5781b7577 100644 (file)
@@ -268,6 +268,8 @@ static struct {
     { "virtio-gpu-device",     "hw-", "display-virtio-gpu"    },
     { "vhost-user-gpu",        "hw-", "display-virtio-gpu"    },
     { "chardev-braille",       "chardev-", "baum"             },
+    { "chardev-spicevmc",      "chardev-", "spice"            },
+    { "chardev-spiceport",     "chardev-", "spice"            },
 };
 
 static bool module_loaded_qom_all;
This page took 0.027075 seconds and 4 git commands to generate.