Skip to content

Commit

Permalink
updated to latest build objc build of bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Aug 17, 2020
1 parent be5a43d commit f1354c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ block = "0.1.6"

[build-dependencies.bindgen]
#version = "0.52"
git = "https://github.com/rust-lang/rust-bindgen.git"
revision = "ba409edf5d3a1acc6ac4dcb32d1e168cc3a2a41b"
git = "https://github.com/simlay/rust-bindgen.git"
branch = "categories-and-better-return-types"
#git = "https://github.com/rust-lang/rust-bindgen.git"
#revision = "ba409edf5d3a1acc6ac4dcb32d1e168cc3a2a41b"
#path = "../../rust-bindgen/"
default-features = false

[features]
Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn build(sdk_path: Option<&str>, target: &str) {

#[cfg(feature = "audio_unit")]
{
println!("cargo:rustc-link-lib=framework=AudioUnit");
println!("cargo:rustc-link-lib=framework=AudioToolbox");
headers.push("AudioUnit/AudioUnit.h");
}

Expand Down Expand Up @@ -112,6 +112,7 @@ fn build(sdk_path: Option<&str>, target: &str) {
// time.h as has a variable called timezone that conflicts with some of the objective-c
// calls from NSCalendar.h in the Foundation framework. This removes that one variable.
builder = builder.blacklist_item("timezone");
builder = builder.blacklist_item("objc_object");
}

let meta_header: Vec<_> = headers
Expand Down

0 comments on commit f1354c7

Please sign in to comment.