blob: 5cae39d1d06e50cc2094e9e7a2ad73fc1bf23be0 [file] [log] [blame]
S Vasudev Prasad057f2f52020-04-09 15:41:38 +05301/******************************************************************************
2 *
3 * Copyright (C) 2020 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *****************************************************************************
18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20
21cc_library {
22 name: "libextractorfuzzerbase",
23
24 srcs: [
25 "ExtractorFuzzerBase.cpp",
26 ],
27
28 local_include_dirs: [
29 "include",
30 ],
31
32 export_include_dirs: [
33 "include",
34 ],
35
36 static_libs: [
37 "liblog",
38 "libstagefright_foundation",
39 "libmedia",
40 ],
41
42 shared_libs: [
43 "libutils",
44 "libbinder",
45 "libmediandk",
46 ],
47
48 /* GETEXTRACTORDEF is not defined as extractor library is not linked in the
49 * base class. It will be included when the extractor fuzzer binary is
50 * generated.
51 */
52 allow_undefined_symbols: true,
53}
S Vasudev Prasadc87bbb02020-04-09 15:41:47 +053054
55cc_fuzz {
56 name: "mp4_extractor_fuzzer",
57
58 srcs: [
59 "mp4_extractor_fuzzer.cpp",
60 ],
61
62 include_dirs: [
63 "frameworks/av/media/extractors/mp4",
64 ],
65
66 static_libs: [
67 "liblog",
68 "libstagefright_foundation",
69 "libmedia",
70 "libextractorfuzzerbase",
71 "libstagefright_id3",
72 "libstagefright_esds",
73 "libmp4extractor",
74 ],
75
76 shared_libs: [
77 "libutils",
78 "libmediandk",
79 "libbinder",
80 ],
81
82 dictionary: "mp4_extractor_fuzzer.dict",
83}
Anuj Joshif128fa22020-04-16 09:53:53 +053084
85cc_fuzz {
86 name: "wav_extractor_fuzzer",
87
88 srcs: [
89 "wav_extractor_fuzzer.cpp",
90 ],
91
92 include_dirs: [
93 "frameworks/av/media/extractors/wav",
94 ],
95
96 static_libs: [
97 "liblog",
98 "libstagefright_foundation",
99 "libmedia",
100 "libextractorfuzzerbase",
101 "libfifo",
102 "libwavextractor",
103 ],
104
105 shared_libs: [
106 "libutils",
107 "libmediandk",
108 "libbinder",
109 "libbinder_ndk",
110 "libbase",
111 ],
112}
Anuj Joshi11ab23b2020-04-20 10:36:41 +0530113
114cc_fuzz {
115 name: "mp3_extractor_fuzzer",
116
117 srcs: [
118 "mp3_extractor_fuzzer.cpp",
119 ],
120
121 include_dirs: [
122 "frameworks/av/media/extractors/mp3",
123 ],
124
125 static_libs: [
126 "liblog",
127 "libstagefright_foundation",
128 "libmedia",
129 "libextractorfuzzerbase",
130 "libfifo",
131 "libmp3extractor",
132 "libstagefright_id3",
133 ],
134
135 shared_libs: [
136 "libutils",
137 "libmediandk",
138 "libbinder",
139 ],
140}
Anuj Joshie73e7512020-04-20 12:48:51 +0530141
142cc_fuzz {
143 name: "aac_extractor_fuzzer",
144
145 srcs: [
146 "aac_extractor_fuzzer.cpp",
147 ],
148
149 include_dirs: [
150 "frameworks/av/media/extractors/aac",
151 ],
152
153 static_libs: [
154 "liblog",
155 "libstagefright_foundation",
156 "libmedia",
157 "libextractorfuzzerbase",
158 "libaacextractor",
159 "libstagefright_metadatautils",
160 ],
161
162 shared_libs: [
163 "libutils",
164 "libmediandk",
165 "libbinder",
166 ],
167}