]> Git Repo - qemu.git/commitdiff
meson: add spice_headers dependency.
authorGerd Hoffmann <[email protected]>
Wed, 14 Oct 2020 12:11:18 +0000 (14:11 +0200)
committerGerd Hoffmann <[email protected]>
Thu, 15 Oct 2020 09:14:40 +0000 (11:14 +0200)
Used for files which (with CONFIG_SPICE=y) depend on spice header files
to pick up some enum, but which do not depend on on the actual spice
shared library.

Signed-off-by: Gerd Hoffmann <[email protected]>
Message-id: 20201014121120[email protected]

audio/meson.build
meson.build
monitor/meson.build

index 18a831129ed034ceedecaaa115c1b34e8f881bd1..7d53b0f920ff0a89072bfaa0115d05fb33eae1d3 100644 (file)
@@ -1,5 +1,5 @@
+softmmu_ss.add([spice_headers, files('audio.c')])
 softmmu_ss.add(files(
-  'audio.c',
   'audio_legacy.c',
   'mixeng.c',
   'noaudio.c',
index 1a4a48249243a77213113c7e4f870432271df634..2c6169fab0724a602a2ac3159cb60918d0d53192 100644 (file)
@@ -321,9 +321,11 @@ if 'CONFIG_LIBJACK' in config_host
   jack = declare_dependency(link_args: config_host['JACK_LIBS'].split())
 endif
 spice = not_found
+spice_headers = 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())
+  spice_headers = declare_dependency(compile_args: config_host['SPICE_CFLAGS'].split())
 endif
 rt = cc.find_library('rt', required: false)
 libdl = not_found
index eb2a534fdc88e403abef1b46511e9728036d18aa..6d00985ace7a4456d4214199f112d45107b06f38 100644 (file)
@@ -3,7 +3,7 @@ qmp_ss.add(files('monitor.c', 'qmp.c', 'qmp-cmds-control.c'))
 softmmu_ss.add(files(
   'hmp-cmds.c',
   'hmp.c',
-  'qmp-cmds.c',
 ))
+softmmu_ss.add([spice_headers, files('qmp-cmds.c')])
 
 specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files('misc.c'), spice])
This page took 0.033972 seconds and 4 git commands to generate.