ExPixel / miniaudio-rs

Rust bindings for miniaudio C library.
https://crates.io/crates/miniaudio
MIT License
49 stars 20 forks source link

Add support for cross compilation #39

Open trobanga opened 3 years ago

trobanga commented 3 years ago

In order to cross compile to Android I had to adjust miniaudio-sys/build.rs by adding clang_arg("-Ipath/to/android/toolchain/.../sys-root/usr/include") to bindings and manually set ma_android = true as target_os is equal to the host system.

Are you planning on adding cross compilation support in the future?

ExPixel commented 3 years ago

Sure, I don't see why not. I've been holding off on updates because there seem to be plans for a 1.0 version of miniaudio in the works so when that happens I'll incorporate your change as well :)

trobanga commented 3 years ago

Ok, great! I'll send you a working version for Android and iOS once I have it.