Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oligamiq committed Dec 18, 2023
1 parent b8e384e commit 3cc90cc
Show file tree
Hide file tree
Showing 9 changed files with 706 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ winapi = { version = "0.3", features = [
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
objc = { version = "0.5.0", package = "objc2" }

[target.'cfg(target_os = "macos")'.dependencies]
objc-sys = "0.3.2"

[target.'cfg(any(unix, target_os = "redox", target_os = "macos", target_os = "wasi"))'.dependencies]
libc = "0.2"

Expand Down
7 changes: 5 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ fn main() {
#[cfg(target_os = "macos")]
{
println!("cargo:rustc-link-lib=framework=Foundation");

println!("cargo:rustc-link-lib=framework=AppKit");

println!("cargo:rustc-link-lib=framework=CoreGraphics");
println!("cargo:rustc-link-lib=framework=QuartzCore");
println!("cargo:rustc-link-lib=framework=Security");
println!("cargo:rustc-link-lib=framework=UIKit");
println!("cargo:rustc-link-lib=framework=WebKit");
println!("cargo:rustc-link-lib=framework=CloudKit");
println!("cargo:rustc-link-lib=framework=UserNotifications");
println!("cargo:rustc-link-lib=framework=QuickLook");
}
}
1 change: 1 addition & 0 deletions examples/android/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/common/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/iphone/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rust/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ mod util {

#[allow(non_camel_case_types)]
pub(crate) type id = *const NSObject;

#[allow(non_camel_case_types)]
pub(crate) type class_id = *const objc_sys::objc_class;
}
Loading

0 comments on commit 3cc90cc

Please sign in to comment.