1#![allow(non_upper_case_globals)]
7#![allow(non_camel_case_types)]
8#![allow(non_snake_case)]
9#![allow(improper_ctypes)]
10#![allow(clippy::all)]
11#![allow(deref_nullptr)]
15#![cfg_attr(test, allow(dead_code))]
17#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
18
19use jni_sys::*;
20
21#[cfg(not(any(target_os = "android", feature = "test")))]
22compile_error!("ndk-sys only supports compiling for Android");
23
24#[cfg(all(
25 any(target_os = "android", feature = "test"),
26 any(target_arch = "arm", target_arch = "armv7")
27))]
28include!("ffi_arm.rs");
29
30#[cfg(all(any(target_os = "android", feature = "test"), target_arch = "aarch64"))]
31include!("ffi_aarch64.rs");
32
33#[cfg(all(any(target_os = "android", feature = "test"), target_arch = "x86"))]
34include!("ffi_i686.rs");
35
36#[cfg(all(any(target_os = "android", feature = "test"), target_arch = "x86_64"))]
37include!("ffi_x86_64.rs");
38
39#[cfg(target_os = "android")]
40#[link(name = "android")]
41extern "C" {}
42
43#[cfg(all(feature = "nativewindow", target_os = "android"))]
44#[link(name = "nativewindow")]
45extern "C" {}
46
47#[cfg(all(feature = "media", target_os = "android"))]
48#[link(name = "mediandk")]
49extern "C" {}
50
51#[cfg(all(feature = "bitmap", target_os = "android"))]
52#[link(name = "jnigraphics")]
53extern "C" {}
54
55#[cfg(all(feature = "audio", target_os = "android"))]
56#[link(name = "aaudio")]
57extern "C" {}
58
59#[cfg(all(feature = "sync", target_os = "android"))]
60#[link(name = "sync")]
61extern "C" {}