blob: 910e6852a909eaef593915951085a146f259bcda [file] [log] [blame]
Alec Mourib2089a32022-01-15 00:34:20 +00001/*
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 *
16 */
17
Bob Badourc26d6d52022-02-10 13:41:04 -080018package {
19 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "frameworks_native_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["frameworks_native_license"],
25}
26
Alec Mourib2089a32022-01-15 00:34:20 +000027cc_defaults {
28 name: "surfaceflinger_fuzz_defaults",
29 include_dirs: [
30 "frameworks/native/services/surfaceflinger/tests/unittests",
31 ],
32 static_libs: [
33 "android.hardware.graphics.composer@2.1-resources",
Patrick Williams8b731c12023-10-24 09:56:24 -050034 "libc++fs",
Alec Mourib2089a32022-01-15 00:34:20 +000035 "libgmock",
36 "libgui_mocks",
37 "libgmock_ndk",
38 "libgmock_main",
39 "libgtest_ndk_c++",
40 "libgmock_main_ndk",
41 "librenderengine_mocks",
42 "perfetto_trace_protos",
43 "libcompositionengine_mocks",
44 "perfetto_trace_protos",
45 ],
46 shared_libs: [
47 "libprotoutil",
48 "libstatssocket",
49 "libstatspull",
50 "libtimestats",
51 "libtimestats_proto",
52 "libprotobuf-cpp-full",
53 "android.hardware.graphics.mapper@2.0",
54 "android.hardware.graphics.mapper@3.0",
55 "android.hardware.graphics.mapper@4.0",
56 ],
57 srcs: [
58 ":libsurfaceflinger_sources",
59 ":libsurfaceflinger_mock_sources",
60 ],
61 defaults: [
62 "libsurfaceflinger_defaults",
63 ],
64 header_libs: [
65 "libui_fuzzableDataspaces_headers",
66 "libsurfaceflinger_headers",
67 "libui_headers",
68 ],
69 cflags: [
70 "-Wno-unused-result",
71 "-Wno-conversion",
72 "-Wno-sign-compare",
Leon Scroggins IIIbfab5052023-03-24 15:45:46 -040073 "-Wno-unused-function",
Alec Mourib2089a32022-01-15 00:34:20 +000074 ],
75 fuzz_config: {
76 cc: [
77 "android-media-fuzzing-reports@google.com",
78 ],
79 componentid: 155276,
80 },
81}
82
83cc_fuzz {
84 name: "surfaceflinger_fuzzer",
85 defaults: [
86 "surfaceflinger_fuzz_defaults",
87 ],
88 srcs: [
89 "surfaceflinger_fuzzer.cpp",
90 ],
91}
Alec Mouri8c59b272022-01-15 00:34:20 +000092
93cc_fuzz {
94 name: "surfaceflinger_displayhardware_fuzzer",
95 defaults: [
96 "surfaceflinger_fuzz_defaults",
97 ],
98 srcs: [
99 "surfaceflinger_displayhardware_fuzzer.cpp",
100 ],
101 header_libs: [
102 "android.hardware.graphics.composer@2.4-command-buffer",
103 "android.hardware.graphics.composer@2.4-hal",
104 ],
105}
Chethan Kumar R E70750f22021-11-23 17:39:01 +0530106
107cc_fuzz {
108 name: "surfaceflinger_scheduler_fuzzer",
109 defaults: [
110 "surfaceflinger_fuzz_defaults",
111 ],
112 srcs: [
113 "surfaceflinger_scheduler_fuzzer.cpp",
114 ],
115}
Chethan Kumar R E041415a2021-11-23 17:42:22 +0530116
117cc_fuzz {
118 name: "surfaceflinger_layer_fuzzer",
119 defaults: [
120 "surfaceflinger_fuzz_defaults",
121 ],
122 header_libs: [
123 "libgui_headers",
124 ],
125 static_libs: [
126 "librenderengine",
127 ],
128 srcs: [
129 "surfaceflinger_layer_fuzzer.cpp",
130 ],
131}
Chethan Kumar R Ecd5229e2021-11-23 17:45:54 +0530132
133cc_fuzz {
134 name: "surfaceflinger_frametracer_fuzzer",
135 defaults: [
136 "surfaceflinger_fuzz_defaults",
137 ],
138 srcs: [
139 "surfaceflinger_frametracer_fuzzer.cpp",
140 ],
141}
Pawan Wagh1dd5f382023-06-01 23:43:10 +0000142
143cc_fuzz {
144 name: "surfaceflinger_service_fuzzer",
145 defaults: [
146 "surfaceflinger_fuzz_defaults",
147 "service_fuzzer_defaults",
148 "fuzzer_disable_leaks",
149 ],
150 srcs: [
151 "surfaceflinger_service_fuzzer.cpp",
152 ],
153 fuzz_config: {
154 triage_assignee: "waghpawan@google.com",
155 },
156}