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)] #[cfg(all(not(target_os = "android"), not(feature = "test")))] compile_error!("Currently oboe-sys only supports Android platform"); #[cfg(feature = "generate-bindings")] include!(concat!(env!("OUT_DIR"), "/bindings.rs")); #[cfg(all( not(feature = "generate-bindings"), any(target_os = "android", test), target_arch = "arm" ))] include!("bindings_armv7.rs"); #[cfg(all( not(feature = "generate-bindings"), any(target_os = "android", test), target_arch = "aarch64" ))] include!("bindings_aarch64.rs"); #[cfg(all( not(feature = "generate-bindings"), any(target_os = "android", test), target_arch = "x86" ))] include!("bindings_i686.rs"); #[cfg(all( not(feature = "generate-bindings"), any(target_os = "android", test), target_arch = "x86_64" ))] include!("bindings_x86_64.rs");