1#![doc = include_str!("../README.md")]
2#![allow(
3 non_upper_case_globals,
4 non_camel_case_types,
5 non_snake_case,
6 deref_nullptr, clippy::redundant_static_lifetimes, clippy::missing_safety_doc
9)]
10
11#[cfg(all(not(target_os = "android"), not(feature = "test")))]
12compile_error!("Currently oboe-sys only supports Android platform");
13
14#[cfg(feature = "generate-bindings")]
15include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
16
17#[cfg(all(
18 not(feature = "generate-bindings"),
19 any(target_os = "android", test),
20 target_arch = "arm"
21))]
22include!("bindings_armv7.rs");
23
24#[cfg(all(
25 not(feature = "generate-bindings"),
26 any(target_os = "android", test),
27 target_arch = "aarch64"
28))]
29include!("bindings_aarch64.rs");
30
31#[cfg(all(
32 not(feature = "generate-bindings"),
33 any(target_os = "android", test),
34 target_arch = "x86"
35))]
36include!("bindings_i686.rs");
37
38#[cfg(all(
39 not(feature = "generate-bindings"),
40 any(target_os = "android", test),
41 target_arch = "x86_64"
42))]
43include!("bindings_x86_64.rs");