mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 09:55:55 +00:00
hw/core: Declare meson source set
As we want to be able to conditionally add files to the hw/core file list, use a source set. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Yanan Wang <wangyanan55@huawei.com> Tested-by: Yanan Wang <wangyanan55@huawei.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20211028150521.1973821-3-philmd@redhat.com>
This commit is contained in:
parent
d675b44ecc
commit
f73fb06395
|
@ -1,5 +1,5 @@
|
||||||
# core qdev-related obj files, also used by *-user and unit tests
|
# core qdev-related obj files, also used by *-user and unit tests
|
||||||
hwcore_files = files(
|
hwcore_ss.add(files(
|
||||||
'bus.c',
|
'bus.c',
|
||||||
'hotplug.c',
|
'hotplug.c',
|
||||||
'qdev-properties.c',
|
'qdev-properties.c',
|
||||||
|
@ -11,7 +11,7 @@ hwcore_files = files(
|
||||||
'irq.c',
|
'irq.c',
|
||||||
'clock.c',
|
'clock.c',
|
||||||
'qdev-clock.c',
|
'qdev-clock.c',
|
||||||
)
|
))
|
||||||
|
|
||||||
common_ss.add(files('cpu-common.c'))
|
common_ss.add(files('cpu-common.c'))
|
||||||
softmmu_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c'))
|
softmmu_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c'))
|
||||||
|
|
|
@ -2365,6 +2365,7 @@ bsd_user_ss = ss.source_set()
|
||||||
chardev_ss = ss.source_set()
|
chardev_ss = ss.source_set()
|
||||||
common_ss = ss.source_set()
|
common_ss = ss.source_set()
|
||||||
crypto_ss = ss.source_set()
|
crypto_ss = ss.source_set()
|
||||||
|
hwcore_ss = ss.source_set()
|
||||||
io_ss = ss.source_set()
|
io_ss = ss.source_set()
|
||||||
linux_user_ss = ss.source_set()
|
linux_user_ss = ss.source_set()
|
||||||
qmp_ss = ss.source_set()
|
qmp_ss = ss.source_set()
|
||||||
|
@ -2806,7 +2807,8 @@ libchardev = static_library('chardev', chardev_ss.sources() + genh,
|
||||||
|
|
||||||
chardev = declare_dependency(link_whole: libchardev)
|
chardev = declare_dependency(link_whole: libchardev)
|
||||||
|
|
||||||
libhwcore = static_library('hwcore', sources: hwcore_files + genh,
|
hwcore_ss = hwcore_ss.apply(config_host, strict: false)
|
||||||
|
libhwcore = static_library('hwcore', sources: hwcore_ss.sources() + genh,
|
||||||
name_suffix: 'fa',
|
name_suffix: 'fa',
|
||||||
build_by_default: false)
|
build_by_default: false)
|
||||||
hwcore = declare_dependency(link_whole: libhwcore)
|
hwcore = declare_dependency(link_whole: libhwcore)
|
||||||
|
|
Loading…
Reference in a new issue