mozilla / cubeb-rs

ISC License
61 stars 19 forks source link

Use Rust Libs on macOS #82

Open sainteckes opened 1 year ago

sainteckes commented 1 year ago

As discussed with @padenot currently on macOS the rust libs don't get built. This is an attempt to download the rust libs and build them in build.rs according to: https://github.com/mozilla/cubeb-coreaudio-rs/blob/trailblazer/build-audiounit-rust-in-cubeb.sh

git clone --recursive https://github.com/mozilla/cubeb.git
cd cubeb/src
git clone https://github.com/mozilla/cubeb-coreaudio-rs.git
cd ../..
mkdir cubeb-build
cd cubeb-build
cmake ../cubeb -DBUILD_RUST_LIBS="ON"
cmake --build .
CUBEB_BACKEND="audiounit-rust" ctest

Any ideas for a different strategy?