blob: 2de400da712ea2b650d3d3f29cc633a52aaae7a0 [file] [log] [blame]
S Vasudev Prasadd064e172020-05-11 13:10:16 +05301/*
2 * Copyright (C) 2020 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 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
17 */
18
19cc_defaults {
20 name: "C2Fuzzer-defaults",
21
22 srcs: [
23 "C2Fuzzer.cpp",
24 ],
25
26 static_libs: [
27 "liblog",
28 "libion",
29 "libfmq",
30 "libbase",
31 "libutils",
32 "libcutils",
33 "libcodec2",
34 "libhidlbase",
35 "libdmabufheap",
36 "libcodec2_vndk",
37 "libnativewindow",
38 "libcodec2_soft_common",
39 "libsfplugin_ccodec_utils",
40 "libstagefright_foundation",
41 "libstagefright_bufferpool@2.0.1",
42 "android.hardware.graphics.mapper@2.0",
43 "android.hardware.graphics.mapper@3.0",
44 "android.hardware.media.bufferpool@2.0",
45 "android.hardware.graphics.allocator@2.0",
46 "android.hardware.graphics.allocator@3.0",
47 "android.hardware.graphics.bufferqueue@2.0",
48 ],
49
50 shared_libs: [
51 "libui",
52 "libdl",
53 "libbinder",
54 "libhardware",
55 "libvndksupport",
56 "libprocessgroup",
57 ],
58
59 cflags: [
60 "-Wall",
61 "-Werror",
62 ],
63}
S Vasudev Prasadb6101182020-10-09 10:44:20 +053064
65cc_fuzz {
66 name: "C2FuzzerAvcDec",
67 defaults: ["C2Fuzzer-defaults"],
68
69 cflags: [
70 "-DC2COMPONENTNAME=\"c2.android.avc.decoder\"",
71 ],
72
73 static_libs: [
74 "libavcdec",
75 "libcodec2_soft_avcdec",
76 ],
77}
78
79cc_fuzz {
80 name: "C2FuzzerHevcDec",
81 defaults: ["C2Fuzzer-defaults"],
82
83 cflags: [
84 "-DC2COMPONENTNAME=\"c2.android.hevc.decoder\"",
85 ],
86
87 static_libs: [
88 "libhevcdec",
89 "libcodec2_soft_hevcdec",
90 ],
91}
92
93cc_fuzz {
94 name: "C2FuzzerMpeg2Dec",
95 defaults: ["C2Fuzzer-defaults"],
96
97 cflags: [
98 "-DC2COMPONENTNAME=\"c2.android.mpeg2.decoder\"",
99 ],
100
101 static_libs: [
102 "libmpeg2dec",
103 "libcodec2_soft_mpeg2dec",
104 ],
105}
106
107cc_fuzz {
108 name: "C2FuzzerMpeg4Dec",
109 defaults: ["C2Fuzzer-defaults"],
110
111 cflags: [
112 "-DC2COMPONENTNAME=\"c2.android.mpeg4.decoder\"",
113 ],
114
115 static_libs: [
116 "libstagefright_m4vh263dec",
117 "libcodec2_soft_mpeg4dec",
118 ],
119}
120
121cc_fuzz {
122 name: "C2FuzzerH263Dec",
123 defaults: ["C2Fuzzer-defaults"],
124
125 cflags: [
126 "-DC2COMPONENTNAME=\"c2.android.h263.decoder\"",
127 ],
128
129 static_libs: [
130 "libstagefright_m4vh263dec",
131 "libcodec2_soft_h263dec",
132 ],
133}
134
135cc_fuzz {
136 name: "C2FuzzerVp8Dec",
137 defaults: ["C2Fuzzer-defaults"],
138
139 cflags: [
140 "-DC2COMPONENTNAME=\"c2.android.vp8.decoder\"",
141 ],
142
143 static_libs: [
144 "libvpx",
145 "libcodec2_soft_vp8dec",
146 ],
147}
148
149cc_fuzz {
150 name: "C2FuzzerVp9Dec",
151 defaults: ["C2Fuzzer-defaults"],
152
153 cflags: [
154 "-DC2COMPONENTNAME=\"c2.android.vp9.decoder\"",
155 ],
156
157 static_libs: [
158 "libvpx",
159 "libcodec2_soft_vp9dec",
160 ],
161}
162
163cc_fuzz {
164 name: "C2FuzzerAacDec",
165 defaults: ["C2Fuzzer-defaults"],
166
167 cflags: [
168 "-DC2COMPONENTNAME=\"c2.android.aac.decoder\"",
169 ],
170
171 static_libs: [
172 "libFraunhoferAAC",
173 "libcodec2_soft_aacdec",
174 ],
175}
176
177cc_fuzz {
178 name: "C2FuzzerAmrnbDec",
179 defaults: ["C2Fuzzer-defaults"],
180
181 cflags: [
182 "-DC2COMPONENTNAME=\"c2.android.amrnb.decoder\"",
183 ],
184
185 static_libs: [
186 "libstagefright_amrnbdec",
187 "libstagefright_amrwbdec",
188 "libstagefright_amrnb_common",
189 "libcodec2_soft_amrnbdec",
190 ],
191}
192
193cc_fuzz {
194 name: "C2FuzzerAmrwbDec",
195 defaults: ["C2Fuzzer-defaults"],
196
197 cflags: [
198 "-DC2COMPONENTNAME=\"c2.android.amrwb.decoder\"",
199 ],
200
201 static_libs: [
202 "libstagefright_amrnbdec",
203 "libstagefright_amrwbdec",
204 "libstagefright_amrnb_common",
205 "libcodec2_soft_amrwbdec",
206 ],
207}
208
209cc_fuzz {
210 name: "C2FuzzerFlacDec",
211 defaults: ["C2Fuzzer-defaults"],
212
213 cflags: [
214 "-DC2COMPONENTNAME=\"c2.android.flac.decoder\"",
215 ],
216
217 static_libs: [
218 "libFLAC",
219 "libstagefright_flacdec",
220 "libcodec2_soft_flacdec",
221 ],
222}
223
224cc_fuzz {
225 name: "C2FuzzerG711AlawDec",
226 defaults: ["C2Fuzzer-defaults"],
227
228 cflags: [
229 "-DC2COMPONENTNAME=\"c2.android.g711.alaw.decoder\"",
230 ],
231
232 static_libs: [
233 "codecs_g711dec",
234 "libcodec2_soft_g711alawdec",
235 ],
236}
237
238cc_fuzz {
239 name: "C2FuzzerG711MlawDec",
240 defaults: ["C2Fuzzer-defaults"],
241
242 cflags: [
243 "-DC2COMPONENTNAME=\"c2.android.g711.mlaw.decoder\"",
244 ],
245
246 static_libs: [
247 "codecs_g711dec",
248 "libcodec2_soft_g711mlawdec",
249 ],
250}
251
252cc_fuzz {
253 name: "C2FuzzerGsmDec",
254 defaults: ["C2Fuzzer-defaults"],
255
256 cflags: [
257 "-DC2COMPONENTNAME=\"c2.android.gsm.decoder\"",
258 ],
259
260 static_libs: [
261 "libgsm",
262 "libcodec2_soft_gsmdec",
263 ],
264}
265
266cc_fuzz {
267 name: "C2FuzzerMp3Dec",
268 defaults: ["C2Fuzzer-defaults"],
269
270 cflags: [
271 "-DC2COMPONENTNAME=\"c2.android.mp3.decoder\"",
272 ],
273
274 static_libs: [
275 "libstagefright_mp3dec",
276 "libcodec2_soft_mp3dec",
277 ],
278}
279
280cc_fuzz {
281 name: "C2FuzzerOpusDec",
282 defaults: ["C2Fuzzer-defaults"],
283
284 cflags: [
285 "-DC2COMPONENTNAME=\"c2.android.opus.decoder\"",
286 ],
287
288 static_libs: [
289 "libopus",
290 "libcodec2_soft_opusdec",
291 ],
292}
293
294cc_fuzz {
295 name: "C2FuzzerRawDec",
296 defaults: ["C2Fuzzer-defaults"],
297
298 cflags: [
299 "-DC2COMPONENTNAME=\"c2.android.raw.decoder\"",
300 ],
301
302 static_libs: [
303 "libcodec2_soft_rawdec",
304 ],
305}
306
307cc_fuzz {
308 name: "C2FuzzerVorbisDec",
309 defaults: ["C2Fuzzer-defaults"],
310
311 cflags: [
312 "-DC2COMPONENTNAME=\"c2.android.vorbis.decoder\"",
313 ],
314
315 static_libs: [
316 "libvorbisidec",
317 "libcodec2_soft_vorbisdec",
318 ],
319}
320
321cc_fuzz {
322 name: "C2FuzzerXaacDec",
323 defaults: ["C2Fuzzer-defaults"],
324
325 cflags: [
326 "-DC2COMPONENTNAME=\"c2.android.xaac.decoder\"",
327 ],
328
329 static_libs: [
330 "libxaacdec",
331 "libcodec2_soft_xaacdec",
332 ],
333}