S Vasudev Prasad | 057f2f5 | 2020-04-09 15:41:38 +0530 | [diff] [blame] | 1 | /****************************************************************************** |
| 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 | |
| 21 | cc_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 Prasad | c87bbb0 | 2020-04-09 15:41:47 +0530 | [diff] [blame] | 54 | |
| 55 | cc_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 Joshi | f128fa2 | 2020-04-16 09:53:53 +0530 | [diff] [blame] | 84 | |
| 85 | cc_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 Joshi | 11ab23b | 2020-04-20 10:36:41 +0530 | [diff] [blame] | 113 | |
| 114 | cc_fuzz { |
Ayushi Khopkar | df491ae | 2020-04-29 11:15:10 +0530 | [diff] [blame] | 115 | name: "amr_extractor_fuzzer", |
| 116 | |
| 117 | srcs: [ |
| 118 | "amr_extractor_fuzzer.cpp", |
| 119 | ], |
| 120 | |
| 121 | include_dirs: [ |
| 122 | "frameworks/av/media/extractors/amr", |
| 123 | ], |
| 124 | |
| 125 | static_libs: [ |
| 126 | "liblog", |
| 127 | "libstagefright_foundation", |
| 128 | "libmedia", |
| 129 | "libextractorfuzzerbase", |
| 130 | "libamrextractor", |
| 131 | ], |
| 132 | |
| 133 | shared_libs: [ |
| 134 | "libutils", |
| 135 | "libmediandk", |
| 136 | "libbinder", |
| 137 | ], |
| 138 | |
| 139 | dictionary: "amr_extractor_fuzzer.dict", |
| 140 | } |
| 141 | |
| 142 | cc_fuzz { |
Ayushi Khopkar | 261d88f | 2020-04-29 11:17:48 +0530 | [diff] [blame] | 143 | name: "mkv_extractor_fuzzer", |
| 144 | |
| 145 | srcs: [ |
| 146 | "mkv_extractor_fuzzer.cpp", |
| 147 | ], |
| 148 | |
| 149 | include_dirs: [ |
| 150 | "frameworks/av/media/extractors/mkv", |
| 151 | ], |
| 152 | |
| 153 | static_libs: [ |
| 154 | "liblog", |
| 155 | "libstagefright_foundation", |
| 156 | "libmedia", |
| 157 | "libextractorfuzzerbase", |
| 158 | "libwebm", |
| 159 | "libstagefright_flacdec", |
| 160 | "libstagefright_metadatautils", |
| 161 | "libmkvextractor", |
| 162 | "libFLAC", |
| 163 | ], |
| 164 | |
| 165 | shared_libs: [ |
| 166 | "libutils", |
| 167 | "libmediandk", |
| 168 | "libbinder", |
| 169 | ], |
| 170 | |
| 171 | dictionary: "mkv_extractor_fuzzer.dict", |
| 172 | } |
| 173 | |
| 174 | cc_fuzz { |
Ayushi Khopkar | ca7174d | 2020-04-29 11:21:18 +0530 | [diff] [blame] | 175 | name: "ogg_extractor_fuzzer", |
| 176 | |
| 177 | srcs: [ |
| 178 | "ogg_extractor_fuzzer.cpp", |
| 179 | ], |
| 180 | |
| 181 | include_dirs: [ |
| 182 | "frameworks/av/media/extractors/ogg", |
| 183 | ], |
| 184 | |
| 185 | static_libs: [ |
| 186 | "liblog", |
| 187 | "libstagefright_foundation", |
| 188 | "libmedia", |
| 189 | "libextractorfuzzerbase", |
| 190 | "libstagefright_metadatautils", |
| 191 | "libvorbisidec", |
| 192 | "liboggextractor", |
| 193 | ], |
| 194 | |
| 195 | shared_libs: [ |
| 196 | "libutils", |
| 197 | "libmediandk", |
| 198 | "libbinder", |
| 199 | ], |
| 200 | |
| 201 | dictionary: "ogg_extractor_fuzzer.dict", |
| 202 | } |
| 203 | |
| 204 | cc_fuzz { |
Ayushi Khopkar | 71cdbdc | 2020-04-29 11:23:47 +0530 | [diff] [blame^] | 205 | name: "mpeg2ps_extractor_fuzzer", |
| 206 | |
| 207 | srcs: [ |
| 208 | "mpeg2_extractor_fuzzer.cpp", |
| 209 | ], |
| 210 | |
| 211 | include_dirs: [ |
| 212 | "frameworks/av/media/extractors/mpeg2", |
| 213 | "frameworks/av/media/libstagefright", |
| 214 | ], |
| 215 | |
| 216 | static_libs: [ |
| 217 | "liblog", |
| 218 | "libstagefright_foundation_without_imemory", |
| 219 | "libmedia", |
| 220 | "libextractorfuzzerbase", |
| 221 | "libstagefright_mpeg2support", |
| 222 | "libstagefright_mpeg2extractor", |
| 223 | "libstagefright_esds", |
| 224 | "libmpeg2extractor", |
| 225 | ], |
| 226 | |
| 227 | cflags: [ |
| 228 | "-DMPEG2PS", |
| 229 | ], |
| 230 | |
| 231 | shared_libs: [ |
| 232 | "libutils", |
| 233 | "libmediandk", |
| 234 | "libbinder", |
| 235 | "android.hardware.cas@1.0", |
| 236 | "android.hardware.cas.native@1.0", |
| 237 | "android.hidl.token@1.0-utils", |
| 238 | "android.hidl.allocator@1.0", |
| 239 | "libcrypto", |
| 240 | "libhidlmemory", |
| 241 | "libhidlbase", |
| 242 | ], |
| 243 | |
| 244 | dictionary: "mpeg2ps_extractor_fuzzer.dict", |
| 245 | } |
| 246 | |
| 247 | cc_fuzz { |
| 248 | name: "mpeg2ts_extractor_fuzzer", |
| 249 | |
| 250 | srcs: [ |
| 251 | "mpeg2_extractor_fuzzer.cpp", |
| 252 | ], |
| 253 | |
| 254 | include_dirs: [ |
| 255 | "frameworks/av/media/extractors/mpeg2", |
| 256 | "frameworks/av/media/libstagefright", |
| 257 | ], |
| 258 | |
| 259 | static_libs: [ |
| 260 | "liblog", |
| 261 | "libstagefright_foundation_without_imemory", |
| 262 | "libmedia", |
| 263 | "libextractorfuzzerbase", |
| 264 | "libstagefright_mpeg2support", |
| 265 | "libstagefright_mpeg2extractor", |
| 266 | "libstagefright_esds", |
| 267 | "libmpeg2extractor", |
| 268 | ], |
| 269 | |
| 270 | shared_libs: [ |
| 271 | "libutils", |
| 272 | "libmediandk", |
| 273 | "libbinder", |
| 274 | "android.hardware.cas@1.0", |
| 275 | "android.hardware.cas.native@1.0", |
| 276 | "android.hidl.token@1.0-utils", |
| 277 | "android.hidl.allocator@1.0", |
| 278 | "libcrypto", |
| 279 | "libhidlmemory", |
| 280 | "libhidlbase", |
| 281 | ], |
| 282 | |
| 283 | dictionary: "mpeg2ts_extractor_fuzzer.dict", |
| 284 | } |
| 285 | |
| 286 | cc_fuzz { |
Anuj Joshi | 11ab23b | 2020-04-20 10:36:41 +0530 | [diff] [blame] | 287 | name: "mp3_extractor_fuzzer", |
| 288 | |
| 289 | srcs: [ |
| 290 | "mp3_extractor_fuzzer.cpp", |
| 291 | ], |
| 292 | |
| 293 | include_dirs: [ |
| 294 | "frameworks/av/media/extractors/mp3", |
| 295 | ], |
| 296 | |
| 297 | static_libs: [ |
| 298 | "liblog", |
| 299 | "libstagefright_foundation", |
| 300 | "libmedia", |
| 301 | "libextractorfuzzerbase", |
| 302 | "libfifo", |
| 303 | "libmp3extractor", |
| 304 | "libstagefright_id3", |
| 305 | ], |
| 306 | |
| 307 | shared_libs: [ |
| 308 | "libutils", |
| 309 | "libmediandk", |
| 310 | "libbinder", |
| 311 | ], |
| 312 | } |
Anuj Joshi | e73e751 | 2020-04-20 12:48:51 +0530 | [diff] [blame] | 313 | |
| 314 | cc_fuzz { |
| 315 | name: "aac_extractor_fuzzer", |
| 316 | |
| 317 | srcs: [ |
| 318 | "aac_extractor_fuzzer.cpp", |
| 319 | ], |
| 320 | |
| 321 | include_dirs: [ |
| 322 | "frameworks/av/media/extractors/aac", |
| 323 | ], |
| 324 | |
| 325 | static_libs: [ |
| 326 | "liblog", |
| 327 | "libstagefright_foundation", |
| 328 | "libmedia", |
| 329 | "libextractorfuzzerbase", |
| 330 | "libaacextractor", |
| 331 | "libstagefright_metadatautils", |
| 332 | ], |
| 333 | |
| 334 | shared_libs: [ |
| 335 | "libutils", |
| 336 | "libmediandk", |
| 337 | "libbinder", |
| 338 | ], |
| 339 | } |