1// This file is generated by cargo_embargo.
2// Do not modify this file because the changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_libbpf-sys_license"],
6    default_team: "trendy_team_android_rust",
7}
8
9license {
10    name: "external_rust_crates_libbpf-sys_license",
11    visibility: [":__subpackages__"],
12    license_kinds: ["SPDX-license-identifier-BSD-2-Clause"],
13    license_text: ["LICENSE"],
14}
15
16rust_library {
17    name: "liblibbpf_sys",
18    crate_name: "libbpf_sys",
19    cargo_env_compat: true,
20    cargo_pkg_version: "1.4.3+v1.4.5",
21    crate_root: "src/lib.rs",
22    srcs: [":liblibbpf_bindgen"],
23    edition: "2018",
24    apex_available: [
25        "//apex_available:platform",
26        "//apex_available:anyapex",
27    ],
28}
29
30rust_binary_host {
31    name: "libbpf_bindgen_build",
32    host_cross_supported: false,
33    srcs: ["android/build.rs"],
34    rustlibs: [
35        "libbindgen",
36        "libbindgen_cmd",
37    ],
38    lints: "android",
39    clippy_lints: "android",
40}
41
42rust_bindgen {
43    name: "liblibbpf_bindgen",
44    crate_name: "libbpf_bindgen",
45    custom_bindgen: "libbpf_bindgen_build",
46    wrapper_src: "android/libbpf_wrapper.h",
47    source_stem: "bindgen",
48    header_libs: ["libbpf_build_headers"],
49    shared_libs: ["libbpf"],
50}
51