miniaudio-rs icon indicating copy to clipboard operation
miniaudio-rs copied to clipboard

Add support for cross compilation

Open trobanga opened this issue 5 years ago • 2 comments

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?

trobanga avatar Sep 26 '20 15:09 trobanga

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 :)

ExPixel avatar Sep 26 '20 20:09 ExPixel

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

trobanga avatar Sep 28 '20 07:09 trobanga