gecko-dev/third_party/rust/coreaudio-sys
Chun-Min Chang 7f26e8dfa4 Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium
The current coreaudio-sys in gecko is a custom 0.2.2 version that used
to avoid the cross-compiling issue mentioned in bug 1569003. The issue
has been fixed in the coreaudio-sys 0.2.3, so we should follow the
upstream instead of using a custom version. As a result, the
coreaudio-sys would generate API bindings based on the MacOS SDK defined
in the build settings.

Differential Revision: https://phabricator.services.mozilla.com/D50531

--HG--
extra : moz-landing-system : lando
2019-10-31 20:14:00 +00:00
..
src Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium 2019-10-31 20:14:00 +00:00
.cargo-checksum.json Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium 2019-10-31 20:14:00 +00:00
Cargo.toml Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium 2019-10-31 20:14:00 +00:00
LICENSE Bug 1530715 - P4: Vendor Rust dependencies for cubeb-coreaudio-rs. r=kinetik 2019-07-17 05:32:36 +00:00
README.md Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium 2019-10-31 20:14:00 +00:00
build.rs Bug 1591249 - Bump coreaudio-sys to 0.2.3. r=glandium 2019-10-31 20:14:00 +00:00

README.md

coreaudio-sys Build Status Crates.io Crates.io

Raw bindings to Apple's Core Audio API for macos and iOS generated using rust-bindgen. coreaudio-rs is an attempt at offering a higher level API around this crate.

Cross Compiling

Rust Cross has a good explanation of how cross-compiling Rust works in general. While the author of Rust Cross advises against it, it is perfectly possible to cross-compile Rust for MacOS on Linux. OSXCross can be used to create a compiler toolchain that can compile for MacOS on Linux.

Environment Variables

When cross-compiling for MacOS on Linux there are two environment variables that are used to configure how coreaudio-sys finds the required headers and libraries. The following examples assume that you have OSXCross installed at /build/osxcross.

COREAUDIO_SDK_PATH

This tell coreaudio-sys where to find the MacOS SDK:

export COREAUDIO_SDK_PATH=/build/osxcross/target/SDK/MacOSX10.11.sdk