1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(improper_ctypes)]
#![cfg_attr(test, allow(dead_code))]
pub mod native_app_glue;
#[cfg(all(not(target_os = "android"), not(test), not(feature = "rustdoc")))]
compile_error!("android-ndk-sys only supports compiling for Android");
#[cfg(any(
all(any(target_os = "android", test), target_arch = "arm"),
feature = "rustdoc"
))]
include!("ffi_arm.rs");
#[cfg(all(any(target_os = "android", test), target_arch = "armv7"))]
include!("ffi_armv7.rs");
#[cfg(all(any(target_os = "android", test), target_arch = "aarch64"))]
include!("ffi_aarch64.rs");
#[cfg(all(any(target_os = "android", test), target_arch = "x86"))]
include!("ffi_i686.rs");
#[cfg(all(any(target_os = "android", test), target_arch = "x86_64"))]
include!("ffi_x86_64.rs");