FFI: Add #ifdef for Android and don't generate declarations for Java

bindings.
This commit is contained in:
mcb2003 2020-12-31 15:13:13 +00:00
parent a868aa670a
commit af55101824
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't mod
rename_variants = "QualifiedScreamingSnakeCase"
[defines]
"target_os = android" = "__ANDROID__"
"target_os = linux" = "__linux__"
"target_os = macos" = "__APPLE__"
"target_arch = wasm32" = "__EMSCRIPTEN__"

View File

@ -16,6 +16,7 @@ mod appkit;
#[cfg(any(target_os = "macos", target_os = "ios"))]
mod av_foundation;
/// cbindgen:ignore
#[cfg(target_os = "android")]
mod android;