1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10cc_fuzz {
11    name: "binder_rpc_fuzzer",
12    host_supported: true,
13
14    fuzz_config: {
15        cc: ["smoreland@google.com"],
16    },
17    corpus: ["corpus/*"],
18    dictionary: "binder_rpc_fuzzer.dict",
19
20    srcs: [
21        "main.cpp",
22    ],
23    // Not using libbinder_tls_shared_deps to use deterministic boringssl libraries.
24    static_libs: [
25        "libbase",
26        "libcutils",
27        "liblog",
28        "libbinder_test_utils",
29        "libbinder_tls_static",
30        "libbinder_tls_test_utils",
31        "libssl_fuzz_unsafe",
32        "libcrypto_fuzz_unsafe",
33    ],
34    cflags: [
35        "-DBORINGSSL_UNSAFE_DETERMINISTIC_MODE", // for RAND_reset_for_fuzzing
36    ],
37    target: {
38        android: {
39            shared_libs: [
40                "libbinder",
41                "libutils",
42            ],
43        },
44        host: {
45            static_libs: [
46                "libbinder",
47                "libutils",
48            ],
49        },
50    },
51    data: [
52        "server.crt",
53        "server.key",
54    ],
55}
56