xref: /aosp_15_r20/external/gptfdisk/fuzzer/Android.bp (revision 57696d54d05c64fd1b1787f8371dbcf104911cfb)
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 "external_gptfdisk_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-GPL-2.0
7    default_applicable_licenses: ["external_gptfdisk_license"],
8    default_team: "trendy_team_android_kernel",
9}
10
11cc_defaults {
12    name: "libgptf_fuzz_defaults",
13    cflags: ["-DENABLE_HEAP_DISKIO"],
14    host_supported: true,
15    corpus: ["corpus/*"],
16    static_libs: ["libgmock"],
17    target: {
18        android: {
19            static_libs: [
20                "libgptf_fuzzer_lib",
21                "libext2_uuid",
22            ],
23        },
24        host: {
25            static_libs: [
26                "libgptf_fuzzer_lib",
27                "libext2_uuid",
28            ],
29        },
30    },
31}
32
33cc_fuzz {
34    name: "libgptf_fuzzer",
35    srcs: ["libgptf_fuzzer.cc"],
36    defaults: ["libgptf_fuzz_defaults"],
37}
38
39cc_fuzz {
40    name: "basicmbr_fuzzer",
41    srcs: ["basicmbr_fuzzer.cc"],
42    defaults: ["libgptf_fuzz_defaults"],
43}
44