[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/24] meson: define symbols for all available audio drivers
From: |
Paolo Bonzini |
Subject: |
[PATCH 04/24] meson: define symbols for all available audio drivers |
Date: |
Thu, 7 Oct 2021 15:06:10 +0200 |
All drivers are now built by default if the corresponding libraries
are available, similar to how all other modules behave;
--audio-drv-list only governs the default choice of the audio driver.
Adjust the CONFIG_AUDIO_* preprocessor symbols so that they are
based on library availability rather than --audio-drv-list, so that
the tests and -audiodev help follow the new logic.
Cc: Gerd Hoffman <kraxel@redhat.com>
Cc: Volker Rümelin <vr_qemu@t-online.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index 13b725181a..0e9733a833 100644
--- a/meson.build
+++ b/meson.build
@@ -1219,6 +1219,9 @@ if have_system
'pa': pulse.found(),
'sdl': sdl.found(),
}
+ foreach k, v: audio_drivers_available
+ config_host_data.set('CONFIG_AUDIO_' + k.to_upper(), v)
+ endforeach
# Default to native drivers first, OSS second, SDL third
audio_drivers_priority = \
@@ -1241,9 +1244,6 @@ if have_system
endif
endforeach
endif
-foreach k: audio_drivers_selected
- config_host_data.set('CONFIG_AUDIO_' + k.to_upper(), true)
-endforeach
config_host_data.set('CONFIG_AUDIO_DRIVERS',
'"' + '", "'.join(audio_drivers_selected) + '", ')
--
2.31.1
- [PATCH 00/24] configure->meson queue for 6.2, Paolo Bonzini, 2021/10/07
- [PATCH 05/24] configure: add command line options for audio drivers, Paolo Bonzini, 2021/10/07
- [PATCH 02/24] audio: remove CONFIG_AUDIO_WIN_INT, Paolo Bonzini, 2021/10/07
- [PATCH 04/24] meson: define symbols for all available audio drivers,
Paolo Bonzini <=
- [PATCH 03/24] configure, meson: move audio driver detection to Meson, Paolo Bonzini, 2021/10/07
- [PATCH 01/24] configure: remove --oss-lib, Paolo Bonzini, 2021/10/07
- [PATCH 07/24] configure, meson: move fuzzing configuration to Meson, Paolo Bonzini, 2021/10/07
- [PATCH 08/24] trace: simple: pass trace_file unmodified to config-host.h, Paolo Bonzini, 2021/10/07