[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 122/150] meson: convert hw/audio
From: |
Paolo Bonzini |
Subject: |
[PATCH 122/150] meson: convert hw/audio |
Date: |
Mon, 17 Aug 2020 16:40:25 +0200 |
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
- [PATCH 113/150] meson: convert hw/ide, (continued)
- [PATCH 113/150] meson: convert hw/ide, Paolo Bonzini, 2020/08/17
- [PATCH 114/150] meson: convert hw/i2c, Paolo Bonzini, 2020/08/17
- [PATCH 115/150] meson: convert hw/hyperv, Paolo Bonzini, 2020/08/17
- [PATCH 116/150] meson: convert hw/gpio, Paolo Bonzini, 2020/08/17
- [PATCH 117/150] meson: convert hw/dma, Paolo Bonzini, 2020/08/17
- [PATCH 118/150] meson: convert hw/display, Paolo Bonzini, 2020/08/17
- [PATCH 119/150] meson: convert hw/cpu, Paolo Bonzini, 2020/08/17
- [PATCH 120/150] meson: convert hw/char, Paolo Bonzini, 2020/08/17
- [PATCH 121/150] meson: convert hw/block, Paolo Bonzini, 2020/08/17
- [PATCH 122/150] meson: convert hw/audio,
Paolo Bonzini <=
- [PATCH 123/150] meson: convert hw/adc, Paolo Bonzini, 2020/08/17
- [PATCH 124/150] meson: convert hw/acpi, Paolo Bonzini, 2020/08/17
- [PATCH 125/150] meson: convert hw/9pfs, cleanup, Paolo Bonzini, 2020/08/17
- [PATCH 126/150] meson: convert hw/arch*, Paolo Bonzini, 2020/08/17
- [PATCH 127/150] meson: target, Paolo Bonzini, 2020/08/17
- [PATCH 128/150] meson: accel, Paolo Bonzini, 2020/08/17
- [PATCH 129/150] meson: linux-user, Paolo Bonzini, 2020/08/17
- [PATCH 130/150] meson: bsd-user, Paolo Bonzini, 2020/08/17
- [PATCH 132/150] meson: plugins, Paolo Bonzini, 2020/08/17