| // This file is generated by cargo_embargo. |
| // Do not modify this file because the changes will be overridden on upgrade. |
| |
| package { |
| default_applicable_licenses: ["external_rust_crates_libbpf-sys_license"], |
| default_team: "trendy_team_android_rust", |
| } |
| |
| license { |
| name: "external_rust_crates_libbpf-sys_license", |
| visibility: [":__subpackages__"], |
| license_kinds: ["SPDX-license-identifier-BSD-2-Clause"], |
| license_text: ["LICENSE"], |
| } |
| |
| rust_library { |
| name: "liblibbpf_sys", |
| crate_name: "libbpf_sys", |
| cargo_env_compat: true, |
| cargo_pkg_version: "1.4.3+v1.4.5", |
| crate_root: "src/lib.rs", |
| srcs: [":liblibbpf_bindgen"], |
| edition: "2018", |
| apex_available: [ |
| "//apex_available:platform", |
| "//apex_available:anyapex", |
| ], |
| } |
| |
| rust_binary_host { |
| name: "libbpf_bindgen_build", |
| host_cross_supported: false, |
| srcs: ["android/build.rs"], |
| rustlibs: [ |
| "libbindgen", |
| "libbindgen_cmd", |
| ], |
| lints: "android", |
| clippy_lints: "android", |
| } |
| |
| rust_bindgen { |
| name: "liblibbpf_bindgen", |
| crate_name: "libbpf_bindgen", |
| custom_bindgen: "libbpf_bindgen_build", |
| wrapper_src: "android/libbpf_wrapper.h", |
| source_stem: "bindgen", |
| header_libs: ["libbpf_build_headers"], |
| shared_libs: ["libbpf"], |
| } |