blob: dd68e7e3441c3fb4088459c847f0333b60a3f02e [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
Bob Badour948e6aa2021-02-12 21:02:31 -080019package {
20 // See: http://go/android-license-faq
21 // A large-scale-change added 'default_applicable_licenses' to import
22 // all of the 'license_kinds' from "frameworks_av_license"
23 // to get the below license kinds:
24 // SPDX-license-identifier-Apache-2.0
25 default_applicable_licenses: ["frameworks_av_license"],
26}
27
S Vasudev Prasadd064e172020-05-11 13:10:16 +053028cc_defaults {
29 name: "C2Fuzzer-defaults",
30
Lajos Molnar99d4d112022-01-28 12:42:05 -080031 defaults: [ "libcodec2-static-defaults" ],
32
S Vasudev Prasadd064e172020-05-11 13:10:16 +053033 srcs: [
34 "C2Fuzzer.cpp",
35 ],
36
S Vasudev Prasadd064e172020-05-11 13:10:16 +053037 cflags: [
38 "-Wall",
39 "-Werror",
40 ],
Anis Assi02bea532022-03-08 05:56:27 +000041
42 fuzz_config: {
43 cc: [
44 "wonsik@google.com",
45 ],
46 },
S Vasudev Prasadd064e172020-05-11 13:10:16 +053047}
S Vasudev Prasadb6101182020-10-09 10:44:20 +053048
49cc_fuzz {
50 name: "C2FuzzerAvcDec",
51 defaults: ["C2Fuzzer-defaults"],
52
53 cflags: [
54 "-DC2COMPONENTNAME=\"c2.android.avc.decoder\"",
55 ],
56
57 static_libs: [
58 "libavcdec",
59 "libcodec2_soft_avcdec",
60 ],
61}
62
63cc_fuzz {
64 name: "C2FuzzerHevcDec",
65 defaults: ["C2Fuzzer-defaults"],
66
67 cflags: [
68 "-DC2COMPONENTNAME=\"c2.android.hevc.decoder\"",
69 ],
70
71 static_libs: [
72 "libhevcdec",
73 "libcodec2_soft_hevcdec",
74 ],
75}
76
77cc_fuzz {
78 name: "C2FuzzerMpeg2Dec",
79 defaults: ["C2Fuzzer-defaults"],
80
81 cflags: [
82 "-DC2COMPONENTNAME=\"c2.android.mpeg2.decoder\"",
83 ],
84
85 static_libs: [
86 "libmpeg2dec",
87 "libcodec2_soft_mpeg2dec",
88 ],
89}
90
91cc_fuzz {
92 name: "C2FuzzerMpeg4Dec",
93 defaults: ["C2Fuzzer-defaults"],
94
95 cflags: [
96 "-DC2COMPONENTNAME=\"c2.android.mpeg4.decoder\"",
97 ],
98
99 static_libs: [
100 "libstagefright_m4vh263dec",
101 "libcodec2_soft_mpeg4dec",
102 ],
103}
104
105cc_fuzz {
106 name: "C2FuzzerH263Dec",
107 defaults: ["C2Fuzzer-defaults"],
108
109 cflags: [
110 "-DC2COMPONENTNAME=\"c2.android.h263.decoder\"",
111 ],
112
113 static_libs: [
114 "libstagefright_m4vh263dec",
115 "libcodec2_soft_h263dec",
116 ],
117}
118
119cc_fuzz {
120 name: "C2FuzzerVp8Dec",
121 defaults: ["C2Fuzzer-defaults"],
122
123 cflags: [
124 "-DC2COMPONENTNAME=\"c2.android.vp8.decoder\"",
125 ],
126
127 static_libs: [
128 "libvpx",
129 "libcodec2_soft_vp8dec",
130 ],
131}
132
133cc_fuzz {
134 name: "C2FuzzerVp9Dec",
135 defaults: ["C2Fuzzer-defaults"],
136
137 cflags: [
138 "-DC2COMPONENTNAME=\"c2.android.vp9.decoder\"",
139 ],
140
141 static_libs: [
142 "libvpx",
143 "libcodec2_soft_vp9dec",
144 ],
145}
146
147cc_fuzz {
Fyodor Kyslovff7c3632023-02-15 22:48:16 +0000148 name: "C2FuzzerAV1Dec",
149 defaults: ["C2Fuzzer-defaults"],
150
151 cflags: [
152 "-DC2COMPONENTNAME=\"c2.android.av1.decoder\"",
153 ],
154
155 static_libs: [
156 "libgav1",
157 "libyuv_static",
158 "libcodec2_soft_av1dec_gav1",
159 ],
160}
161
162cc_fuzz {
S Vasudev Prasadb6101182020-10-09 10:44:20 +0530163 name: "C2FuzzerAacDec",
164 defaults: ["C2Fuzzer-defaults"],
165
166 cflags: [
167 "-DC2COMPONENTNAME=\"c2.android.aac.decoder\"",
168 ],
169
170 static_libs: [
171 "libFraunhoferAAC",
172 "libcodec2_soft_aacdec",
173 ],
174}
175
176cc_fuzz {
177 name: "C2FuzzerAmrnbDec",
178 defaults: ["C2Fuzzer-defaults"],
179
180 cflags: [
181 "-DC2COMPONENTNAME=\"c2.android.amrnb.decoder\"",
182 ],
183
184 static_libs: [
185 "libstagefright_amrnbdec",
186 "libstagefright_amrwbdec",
187 "libstagefright_amrnb_common",
188 "libcodec2_soft_amrnbdec",
189 ],
190}
191
192cc_fuzz {
193 name: "C2FuzzerAmrwbDec",
194 defaults: ["C2Fuzzer-defaults"],
195
196 cflags: [
197 "-DC2COMPONENTNAME=\"c2.android.amrwb.decoder\"",
198 ],
199
200 static_libs: [
201 "libstagefright_amrnbdec",
202 "libstagefright_amrwbdec",
203 "libstagefright_amrnb_common",
204 "libcodec2_soft_amrwbdec",
205 ],
206}
207
208cc_fuzz {
209 name: "C2FuzzerFlacDec",
210 defaults: ["C2Fuzzer-defaults"],
211
212 cflags: [
213 "-DC2COMPONENTNAME=\"c2.android.flac.decoder\"",
214 ],
215
216 static_libs: [
217 "libFLAC",
218 "libstagefright_flacdec",
219 "libcodec2_soft_flacdec",
220 ],
221}
222
223cc_fuzz {
224 name: "C2FuzzerG711AlawDec",
225 defaults: ["C2Fuzzer-defaults"],
226
227 cflags: [
228 "-DC2COMPONENTNAME=\"c2.android.g711.alaw.decoder\"",
229 ],
230
231 static_libs: [
232 "codecs_g711dec",
233 "libcodec2_soft_g711alawdec",
234 ],
235}
236
237cc_fuzz {
238 name: "C2FuzzerG711MlawDec",
239 defaults: ["C2Fuzzer-defaults"],
240
241 cflags: [
242 "-DC2COMPONENTNAME=\"c2.android.g711.mlaw.decoder\"",
243 ],
244
245 static_libs: [
246 "codecs_g711dec",
247 "libcodec2_soft_g711mlawdec",
248 ],
249}
250
251cc_fuzz {
252 name: "C2FuzzerGsmDec",
253 defaults: ["C2Fuzzer-defaults"],
254
255 cflags: [
256 "-DC2COMPONENTNAME=\"c2.android.gsm.decoder\"",
257 ],
258
259 static_libs: [
260 "libgsm",
261 "libcodec2_soft_gsmdec",
262 ],
263}
264
265cc_fuzz {
266 name: "C2FuzzerMp3Dec",
267 defaults: ["C2Fuzzer-defaults"],
268
269 cflags: [
270 "-DC2COMPONENTNAME=\"c2.android.mp3.decoder\"",
271 ],
272
273 static_libs: [
274 "libstagefright_mp3dec",
275 "libcodec2_soft_mp3dec",
276 ],
277}
278
279cc_fuzz {
280 name: "C2FuzzerOpusDec",
281 defaults: ["C2Fuzzer-defaults"],
282
283 cflags: [
284 "-DC2COMPONENTNAME=\"c2.android.opus.decoder\"",
285 ],
286
287 static_libs: [
288 "libopus",
289 "libcodec2_soft_opusdec",
290 ],
291}
292
293cc_fuzz {
294 name: "C2FuzzerRawDec",
295 defaults: ["C2Fuzzer-defaults"],
296
297 cflags: [
298 "-DC2COMPONENTNAME=\"c2.android.raw.decoder\"",
299 ],
300
301 static_libs: [
302 "libcodec2_soft_rawdec",
303 ],
304}
305
306cc_fuzz {
307 name: "C2FuzzerVorbisDec",
308 defaults: ["C2Fuzzer-defaults"],
309
310 cflags: [
311 "-DC2COMPONENTNAME=\"c2.android.vorbis.decoder\"",
312 ],
313
314 static_libs: [
315 "libvorbisidec",
316 "libcodec2_soft_vorbisdec",
317 ],
318}
319
320cc_fuzz {
321 name: "C2FuzzerXaacDec",
322 defaults: ["C2Fuzzer-defaults"],
323
324 cflags: [
325 "-DC2COMPONENTNAME=\"c2.android.xaac.decoder\"",
326 ],
327
328 static_libs: [
329 "libxaacdec",
330 "libcodec2_soft_xaacdec",
331 ],
332}