summaryrefslogtreecommitdiff
path: root/libs/binder/rust/tests/parcel_fuzzer/random_parcel/Android.bp
blob: 43a309409d4ce0e753dba2f75abed8562a2b4199 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package {
    // See: http://go/android-license-faq
    default_applicable_licenses: ["frameworks_native_license"],
}

rust_bindgen {
    name: "libbinder_random_parcel_bindgen",
    crate_name: "binder_random_parcel_bindgen",
    host_supported: true,
    wrapper_src: "wrappers/RandomParcelWrapper.hpp",
    source_stem: "bindings",
    visibility: [":__subpackages__"],
    bindgen_flags: [
        "--size_t-is-usize",
        "--allowlist-function",
        "createRandomParcel",
        "--allowlist-function",
        "fuzzRustService",
    ],
    shared_libs: [
        "libc++",
        "libbinder_ndk",
    ],
    rustlibs: [
        "libbinder_rs",
    ],
}

rust_library {
    name: "libbinder_random_parcel_rs",
    crate_name: "binder_random_parcel_rs",
    host_supported: true,
    srcs: [
        "src/lib.rs",
    ],
    shared_libs: [
        "libbinder",
        "libutils",
        "libcutils",
        "libc++",
    ],
    static_libs: [
        "libbinder_create_parcel",
        "libbinder_random_parcel",
    ],
    rustlibs: [
        "libbinder_rs",
        "libbinder_random_parcel_bindgen",
    ],
    lints: "none",
    clippy_lints: "none",
}