mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-18 01:38:08 -06:00
The PulseAudio and AudioUnit backends, (as well as the WASAPI backend in the future) now use Rust. We currently rely on the legacy C/C++ implementations which are deprecated and scheduled to be removed in a future version. If Cargo (Rust's package manager) is present on the system, we now build cubeb with the new implementations.
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 5c1482a..f939cb5 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -380,6 +380,7 @@ if(USE_PULSE AND USE_PULSE_RUST)
|
|
DOWNLOAD_COMMAND ""
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release,RelWithDebInfo,MinSizeRel>,--release,>"
|
|
+ BUILD_BYPRODUCTS "${PROJECT_SOURCE_DIR}/src/cubeb-pulse-rs/target/$<IF:$<CONFIG:Debug>,debug,release>/libcubeb_pulse.a"
|
|
BUILD_ALWAYS ON
|
|
BINARY_DIR "${PROJECT_SOURCE_DIR}/src/cubeb-pulse-rs"
|
|
INSTALL_COMMAND ""
|
|
@@ -403,6 +404,7 @@ if(USE_AUDIOUNIT AND USE_AUDIOUNIT_RUST)
|
|
DOWNLOAD_COMMAND ""
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release,RelWithDebInfo,MinSizeRel>,--release,>" "${FEATURE_NO_PRIVATE_APIS_TOGGLE}"
|
|
+ BUILD_BYPRODUCTS "${PROJECT_SOURCE_DIR}/src/cubeb-pulse-rs/target/$<IF:$<CONFIG:Debug>,debug,release>/libcubeb_pulse.a"
|
|
BUILD_ALWAYS ON
|
|
BINARY_DIR "${PROJECT_SOURCE_DIR}/src/cubeb-coreaudio-rs"
|
|
INSTALL_COMMAND ""
|