[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/26] meson: define symbols for all available audio drivers
From: |
Paolo Bonzini |
Subject: |
[PULL 04/26] meson: define symbols for all available audio drivers |
Date: |
Thu, 14 Oct 2021 18:29:16 +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>
Message-Id: <20211007130630.632028-5-pbonzini@redhat.com>
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 90d1b7ab61..0b9ebf9bfb 100644
--- a/meson.build
+++ b/meson.build
@@ -1217,6 +1217,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 = \
@@ -1239,9 +1242,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
- [PULL 00/26] Meson changes for 2021-10-14, Paolo Bonzini, 2021/10/14
- [PULL 02/26] audio: remove CONFIG_AUDIO_WIN_INT, Paolo Bonzini, 2021/10/14
- [PULL 05/26] configure: add command line options for audio drivers, Paolo Bonzini, 2021/10/14
- [PULL 06/26] kconfig: split CONFIG_SPARSE_MEM from fuzzing, Paolo Bonzini, 2021/10/14
- [PULL 01/26] configure: remove --oss-lib, Paolo Bonzini, 2021/10/14
- [PULL 04/26] meson: define symbols for all available audio drivers,
Paolo Bonzini <=
- [PULL 03/26] configure, meson: move audio driver detection to Meson, Paolo Bonzini, 2021/10/14
- [PULL 10/26] configure, meson: move CONFIG_HOST_DSOSUF to Meson, Paolo Bonzini, 2021/10/14
- [PULL 08/26] trace: simple: pass trace_file unmodified to config-host.h, Paolo Bonzini, 2021/10/14
- [PULL 07/26] configure, meson: move fuzzing configuration to Meson, Paolo Bonzini, 2021/10/14
- [PULL 09/26] trace: move configuration from configure to Meson, Paolo Bonzini, 2021/10/14
- [PULL 11/26] configure, meson: get HOST_WORDS_BIGENDIAN via the machine object, Paolo Bonzini, 2021/10/14
- [PULL 12/26] configure, meson: remove CONFIG_GCOV from config-host.mak, Paolo Bonzini, 2021/10/14
- [PULL 14/26] configure, meson: move remaining HAVE_* compiler tests to Meson, Paolo Bonzini, 2021/10/14
- [PULL 13/26] meson: HAVE_GDB_BIN is not used by C code, Paolo Bonzini, 2021/10/14
- [PULL 16/26] configure, meson: move libaio check to meson.build, Paolo Bonzini, 2021/10/14