[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v8 124/152] meson: convert hw/audio
From: |
Paolo Bonzini |
Subject: |
[PULL v8 124/152] meson: convert hw/audio |
Date: |
Fri, 21 Aug 2020 06:23:01 -0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/Makefile.objs | 1 -
hw/audio/Makefile.objs | 18 ------------------
hw/audio/meson.build | 14 ++++++++++++++
hw/meson.build | 1 +
4 files changed, 15 insertions(+), 19 deletions(-)
delete mode 100644 hw/audio/Makefile.objs
create mode 100644 hw/audio/meson.build
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index 9068859ef0..c0cbc0f132 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -2,7 +2,6 @@ ifeq ($(CONFIG_SOFTMMU), y)
devices-dirs-$(call lor,$(CONFIG_VIRTIO_9P),$(call
land,$(CONFIG_VIRTFS),$(CONFIG_XEN))) += 9pfs/
devices-dirs-y += acpi/
devices-dirs-y += adc/
-devices-dirs-y += audio/
endif
common-obj-y += $(devices-dirs-y)
diff --git a/hw/audio/Makefile.objs b/hw/audio/Makefile.objs
deleted file mode 100644
index 63db383709..0000000000
--- a/hw/audio/Makefile.objs
+++ /dev/null
@@ -1,18 +0,0 @@
-# Sound
-common-obj-$(CONFIG_SB16) += sb16.o
-common-obj-$(CONFIG_ES1370) += es1370.o
-common-obj-$(CONFIG_AC97) += ac97.o
-common-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
-common-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
-common-obj-$(CONFIG_CS4231A) += cs4231a.o
-common-obj-$(CONFIG_HDA) += intel-hda.o hda-codec.o
-
-common-obj-$(CONFIG_PCSPK) += pcspk.o
-common-obj-$(CONFIG_WM8750) += wm8750.o
-common-obj-$(CONFIG_PL041) += pl041.o lm4549.o
-
-common-obj-$(CONFIG_CS4231) += cs4231.o
-common-obj-$(CONFIG_MARVELL_88W8618) += marvell_88w8618.o
-common-obj-$(CONFIG_MILKYMIST) += milkymist-ac97.o
-
-common-obj-y += soundhw.o
diff --git a/hw/audio/meson.build b/hw/audio/meson.build
new file mode 100644
index 0000000000..549e9a0396
--- /dev/null
+++ b/hw/audio/meson.build
@@ -0,0 +1,14 @@
+softmmu_ss.add(files('soundhw.c'))
+softmmu_ss.add(when: 'CONFIG_AC97', if_true: files('ac97.c'))
+softmmu_ss.add(when: 'CONFIG_ADLIB', if_true: files('fmopl.c', 'adlib.c'))
+softmmu_ss.add(when: 'CONFIG_CS4231', if_true: files('cs4231.c'))
+softmmu_ss.add(when: 'CONFIG_CS4231A', if_true: files('cs4231a.c'))
+softmmu_ss.add(when: 'CONFIG_ES1370', if_true: files('es1370.c'))
+softmmu_ss.add(when: 'CONFIG_GUS', if_true: files('gus.c', 'gusemu_hal.c',
'gusemu_mixer.c'))
+softmmu_ss.add(when: 'CONFIG_HDA', if_true: files('intel-hda.c',
'hda-codec.c'))
+softmmu_ss.add(when: 'CONFIG_MARVELL_88W8618', if_true:
files('marvell_88w8618.c'))
+softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-ac97.c'))
+softmmu_ss.add(when: 'CONFIG_PCSPK', if_true: files('pcspk.c'))
+softmmu_ss.add(when: 'CONFIG_PL041', if_true: files('pl041.c', 'lm4549.c'))
+softmmu_ss.add(when: 'CONFIG_SB16', if_true: files('sb16.c'))
+softmmu_ss.add(when: 'CONFIG_WM8750', if_true: files('wm8750.c'))
diff --git a/hw/meson.build b/hw/meson.build
index f968aa8374..624335be90 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -1,3 +1,4 @@
+subdir('audio')
subdir('block')
subdir('char')
subdir('core')
--
2.26.2
- [PULL v8 103/152] meson: convert hw/pci-host, (continued)
- [PULL v8 103/152] meson: convert hw/pci-host, Paolo Bonzini, 2020/08/21
- [PULL v8 109/152] meson: convert hw/misc, Paolo Bonzini, 2020/08/21
- [PULL v8 116/152] meson: convert hw/i2c, Paolo Bonzini, 2020/08/21
- [PULL v8 112/152] meson: convert hw/ipack, Paolo Bonzini, 2020/08/21
- [PULL v8 110/152] meson: convert hw/isa, Paolo Bonzini, 2020/08/21
- [PULL v8 106/152] meson: convert hw/nvram, Paolo Bonzini, 2020/08/21
- [PULL v8 092/152] meson: convert hw/watchdog, Paolo Bonzini, 2020/08/21
- [PULL v8 115/152] meson: convert hw/ide, Paolo Bonzini, 2020/08/21
- [PULL v8 117/152] meson: convert hw/hyperv, Paolo Bonzini, 2020/08/21
- [PULL v8 123/152] meson: convert hw/block, Paolo Bonzini, 2020/08/21
- [PULL v8 124/152] meson: convert hw/audio,
Paolo Bonzini <=
- [PULL v8 113/152] meson: convert hw/intc, Paolo Bonzini, 2020/08/21
- [PULL v8 119/152] meson: convert hw/dma, Paolo Bonzini, 2020/08/21
- [PULL v8 114/152] meson: convert hw/input, Paolo Bonzini, 2020/08/21
- [PULL v8 122/152] meson: convert hw/char, Paolo Bonzini, 2020/08/21
- [PULL v8 127/152] meson: convert hw/9pfs, cleanup, Paolo Bonzini, 2020/08/21
- [PULL v8 111/152] meson: convert hw/ipmi, Paolo Bonzini, 2020/08/21
- [PULL v8 118/152] meson: convert hw/gpio, Paolo Bonzini, 2020/08/21
- [PULL v8 121/152] meson: convert hw/cpu, Paolo Bonzini, 2020/08/21
- [PULL v8 132/152] meson: bsd-user, Paolo Bonzini, 2020/08/21
- [PULL v8 125/152] meson: convert hw/adc, Paolo Bonzini, 2020/08/21