[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] audio/sdl: build as module
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 7/7] audio/sdl: build as module |
Date: |
Tue, 6 Mar 2018 08:40:53 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
configure | 2 +-
audio/Makefile.objs | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 3abee54cfc..b1930cd828 100755
--- a/configure
+++ b/configure
@@ -5983,7 +5983,7 @@ echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >>
$config_host_mak
for drv in $audio_drv_list; do
def=CONFIG_AUDIO_$(echo $drv | LC_ALL=C tr '[a-z]' '[A-Z]')
case "$drv" in
- alsa | oss | pa)
+ alsa | oss | pa | sdl)
echo "$def=m" >> $config_host_mak ;;
*)
echo "$def=y" >> $config_host_mak ;;
diff --git a/audio/Makefile.objs b/audio/Makefile.objs
index b98835934d..db4fa7f18f 100644
--- a/audio/Makefile.objs
+++ b/audio/Makefile.objs
@@ -1,5 +1,4 @@
common-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
-common-obj-$(CONFIG_AUDIO_SDL) += sdlaudio.o
common-obj-$(CONFIG_SPICE) += spiceaudio.o
common-obj-$(CONFIG_AUDIO_COREAUDIO) += coreaudio.o
common-obj-$(CONFIG_AUDIO_DSOUND) += dsoundaudio.o
@@ -7,8 +6,6 @@ common-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
common-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
common-obj-y += wavcapture.o
-sdlaudio.o-cflags := $(SDL_CFLAGS)
-sdlaudio.o-libs := $(SDL_LIBS)
coreaudio.o-libs := $(COREAUDIO_LIBS)
dsoundaudio.o-libs := $(DSOUND_LIBS)
@@ -26,3 +23,9 @@ oss.mo-libs := $(OSS_LIBS)
common-obj-$(CONFIG_AUDIO_PA) += pa.mo
pa.mo-objs = paaudio.o
pa.mo-libs := $(PULSE_LIBS)
+
+# sdl module
+common-obj-$(CONFIG_AUDIO_SDL) += sdl.mo
+sdl.mo-objs = sdlaudio.o
+sdl.mo-cflags := $(SDL_CFLAGS)
+sdl.mo-libs := $(SDL_LIBS)
--
2.9.3
- [Qemu-devel] [PATCH 0/7] audio: modularize, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 5/7] audio/oss: build as module, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 6/7] audio/pulseaudio: build as module, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 7/7] audio/sdl: build as module,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 4/7] audio/alsa: build as module, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 2/7] audio: add module loading support, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 1/7] audio: add driver registry, Gerd Hoffmann, 2018/03/06
- [Qemu-devel] [PATCH 3/7] build: enable audio modules, Gerd Hoffmann, 2018/03/06
- Re: [Qemu-devel] [PATCH 0/7] audio: modularize, Marc-André Lureau, 2018/03/06