b243c73cf4
The qtest/libqos directory is included via the "-I" option to search for header files when building qtest. Unfortunately the malloc.h has a name conflict with the standard libc header, leading to a build failure on the Windows host, due to the MinGW libc stdlib.h header file includes malloc.h and it now gets wrongly pointed to the one in the qtest/libqos directory. Rename "qtest/libqos/malloc.h" to "qtest/libqos/libqos-malloc.h" to avoid the namespace pollution. Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com> Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220824094029.1634519-26-bmeng.cn@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
68 lines
1.5 KiB
Meson
68 lines
1.5 KiB
Meson
libqos_srcs = files(
|
|
'../libqtest.c',
|
|
'../libqmp.c',
|
|
|
|
'qgraph.c',
|
|
'qos_external.c',
|
|
'pci.c',
|
|
'fw_cfg.c',
|
|
'libqos-malloc.c',
|
|
'libqos.c',
|
|
'sdhci-cmd.c',
|
|
|
|
# spapr
|
|
'malloc-spapr.c',
|
|
'libqos-spapr.c',
|
|
'rtas.c',
|
|
'pci-spapr.c',
|
|
|
|
# pc
|
|
'pci-pc.c',
|
|
'malloc-pc.c',
|
|
'libqos-pc.c',
|
|
'ahci.c',
|
|
|
|
# usb
|
|
'usb.c',
|
|
|
|
# qgraph devices:
|
|
'e1000e.c',
|
|
'i2c.c',
|
|
'i2c-imx.c',
|
|
'i2c-omap.c',
|
|
'sdhci.c',
|
|
'tpci200.c',
|
|
'virtio.c',
|
|
'virtio-9p.c',
|
|
'virtio-balloon.c',
|
|
'virtio-blk.c',
|
|
'vhost-user-blk.c',
|
|
'virtio-mmio.c',
|
|
'virtio-net.c',
|
|
'virtio-pci.c',
|
|
'virtio-pci-modern.c',
|
|
'virtio-rng.c',
|
|
'virtio-scsi.c',
|
|
'virtio-serial.c',
|
|
'virtio-iommu.c',
|
|
'generic-pcihost.c',
|
|
|
|
# qgraph machines:
|
|
'aarch64-xlnx-zcu102-machine.c',
|
|
'arm-imx25-pdk-machine.c',
|
|
'arm-n800-machine.c',
|
|
'arm-raspi2-machine.c',
|
|
'arm-sabrelite-machine.c',
|
|
'arm-smdkc210-machine.c',
|
|
'arm-virt-machine.c',
|
|
'arm-xilinx-zynq-a9-machine.c',
|
|
'ppc64_pseries-machine.c',
|
|
'x86_64_pc-machine.c',
|
|
)
|
|
|
|
libqos = static_library('qos', libqos_srcs + genh,
|
|
name_suffix: 'fa',
|
|
build_by_default: false)
|
|
|
|
qos = declare_dependency(link_whole: libqos)
|