1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package {
17    default_applicable_licenses: ["system_core_init_license"],
18}
19
20cc_defaults {
21    name: "libinit_defaults",
22    static_libs: [
23        "libc++fs",
24        "liblmkd_utils",
25        "libmodprobe",
26        "libprotobuf-cpp-lite",
27        "libpropertyinfoparser",
28        "libsnapshot_init",
29        "libinit",
30    ],
31    shared_libs: [
32        "libbase",
33        "libfs_mgr",
34        "libhidl-gen-utils",
35        "libkeyutils",
36        "liblog",
37        "libprocessgroup",
38        "libselinux",
39    ],
40    header_libs: ["libinit_headers"],
41    fuzz_config: {
42        cc: [
43            "android-media-fuzzing-reports@google.com",
44        ],
45        componentid: 155276,
46    },
47}
48
49cc_fuzz {
50    name: "init_parser_fuzzer",
51    srcs: [
52        "init_parser_fuzzer.cpp",
53    ],
54    shared_libs: ["libhidlmetadata",],
55    defaults: [
56        "libinit_defaults",
57    ],
58}
59
60cc_fuzz {
61    name: "init_property_fuzzer",
62    srcs: [
63        "init_property_fuzzer.cpp",
64    ],
65    defaults: ["libinit_defaults"],
66}
67
68cc_fuzz {
69    name: "init_ueventHandler_fuzzer",
70    srcs: [
71        "init_ueventHandler_fuzzer.cpp",
72    ],
73    defaults: [
74        "libinit_defaults",
75    ],
76}
77