1package { 2 default_applicable_licenses: ["external_rust_crates_v4l2r_license"], 3} 4 5rust_binary_host { 6 name: "v4l2r_bindgen_build", 7 srcs: ["build.rs"], 8 rustlibs: [ 9 "libbindgen", 10 "libbindgen_cmd", 11 ], 12 lints: "android", 13 clippy_lints: "android", 14 product_available: true, 15 vendor_available: true, 16 host_cross_supported: false, 17 compile_multilib: "first", 18} 19 20rust_bindgen { 21 name: "libv4l2r_bindgen", 22 crate_name: "v4l2r_bindgen", 23 custom_bindgen: "v4l2r_bindgen_build", 24 wrapper_src: "android_wrapper.h", 25 source_stem: "bindings", 26 cflags: ["-I external/rust/crates/v4l2r/lib"], 27 host_supported: true, 28 apex_available: [ 29 "//apex_available:anyapex", 30 "//apex_available:platform", 31 ], 32 product_available: true, 33 vendor_available: true, 34 visibility: ["//external/rust/crates/v4l2r/lib"], 35 target: { 36 linux_glibc: { 37 header_libs: ["libc_uapi_headers"], 38 }, 39 }, 40} 41