blob: 952b6a93068e07691b59f57cc11cda4bcef88aa7 [file] [log] [blame]
Devendra Singhi6bb90f02021-12-02 09:42:35 +05301/*
2 * Copyright 2021 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 */
16cc_defaults {
17 name: "libgui_fuzzer_defaults",
18 static_libs: [
19 "android.hidl.token@1.0-utils",
20 "libbinder_random_parcel",
21 "libgui_aidl_static",
22 "libgui_window_info_static",
23 "libpdx",
24 "libgmock",
25 "libgui_mocks",
26 "libgmock_ndk",
27 "libgmock_main",
28 "libgtest_ndk_c++",
29 "libgmock_main_ndk",
30 "librenderengine_mocks",
31 "perfetto_trace_protos",
32 "libcompositionengine_mocks",
33 "perfetto_trace_protos",
34 ],
35 shared_libs: [
36 "android.hardware.configstore@1.0",
37 "android.hardware.configstore-utils",
38 "android.hardware.graphics.bufferqueue@1.0",
39 "android.hardware.graphics.bufferqueue@2.0",
40 "android.hardware.power-V2-cpp",
41 "android.hidl.token@1.0",
42 "libSurfaceFlingerProp",
43 "libgui",
44 "libbase",
45 "liblog",
46 "libEGL",
47 "libGLESv2",
48 "libbinder",
49 "libcutils",
50 "libhidlbase",
51 "libinput",
52 "libui",
53 "libutils",
54 "libnativewindow",
55 "libvndksupport",
56 "libbufferhubqueue",
57 ],
58 header_libs: [
59 "libdvr_headers",
60 "libui_fuzzableDataspaces_headers",
61 ],
62 fuzz_config: {
63 cc: [
64 "android-media-fuzzing-reports@google.com",
65 ],
66 componentid: 155276,
67 },
68}
69
70cc_fuzz {
71 name: "libgui_surfaceComposer_fuzzer",
72 srcs: [
73 "libgui_surfaceComposer_fuzzer.cpp",
74 ],
75 defaults: [
76 "libgui_fuzzer_defaults",
77 ],
78}