xref: /openbmc/qemu/tests/qtest/libqos/meson.build (revision d36f165d)
1libqos_srcs = files(
2        '../libqtest.c',
3        '../libqmp.c',
4
5        'qgraph.c',
6        'qos_external.c',
7        'pci.c',
8        'fw_cfg.c',
9        'libqos-malloc.c',
10        'libqos.c',
11        'sdhci-cmd.c',
12
13        # spapr
14        'malloc-spapr.c',
15        'libqos-spapr.c',
16        'rtas.c',
17        'pci-spapr.c',
18
19        # pc
20        'pci-pc.c',
21        'malloc-pc.c',
22        'libqos-pc.c',
23        'ahci.c',
24
25        # usb
26        'usb.c',
27
28        # qgraph devices:
29        'e1000e.c',
30        'i2c.c',
31        'i2c-imx.c',
32        'i2c-omap.c',
33        'igb.c',
34        'sdhci.c',
35        'tpci200.c',
36        'virtio.c',
37        'virtio-balloon.c',
38        'virtio-blk.c',
39        'vhost-user-blk.c',
40        'virtio-mmio.c',
41        'virtio-net.c',
42        'virtio-pci.c',
43        'virtio-pci-modern.c',
44        'virtio-rng.c',
45        'virtio-scsi.c',
46        'virtio-serial.c',
47        'virtio-iommu.c',
48        'virtio-gpio.c',
49        'virtio-scmi.c',
50        'generic-pcihost.c',
51
52        # qgraph machines:
53        'aarch64-xlnx-zcu102-machine.c',
54        'arm-imx25-pdk-machine.c',
55        'arm-raspi2-machine.c',
56        'arm-sabrelite-machine.c',
57        'arm-smdkc210-machine.c',
58        'arm-virt-machine.c',
59        'arm-xilinx-zynq-a9-machine.c',
60        'ppc64_pseries-machine.c',
61        'x86_64_pc-machine.c',
62        'riscv-virt-machine.c',
63        'loongarch-virt-machine.c',
64)
65
66if have_virtfs
67  libqos_srcs += files('virtio-9p.c', 'virtio-9p-client.c')
68endif
69
70if config_all_devices.has_key('CONFIG_RISCV_IOMMU')
71  libqos_srcs += files('riscv-iommu.c')
72endif
73
74libqos = static_library('qos', libqos_srcs + genh,
75                        build_by_default: false)
76
77qos = declare_dependency(objects: libqos.extract_all_objects(recursive: false))
78