Akshatha Mohan | fac19e5 | 2022-05-25 10:01:14 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 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 | cc_defaults { |
| 18 | name: "libmediandk_fuzzer_defaults", |
| 19 | shared_libs: [ |
| 20 | "libandroid_runtime_lazy", |
| 21 | "libbase", |
| 22 | "libdatasource", |
| 23 | "libmedia", |
| 24 | "libmediadrm", |
| 25 | "libmedia_omx", |
| 26 | "libmedia_jni_utils", |
| 27 | "libstagefright", |
| 28 | "libstagefright_foundation", |
| 29 | "liblog", |
| 30 | "libutils", |
| 31 | "libcutils", |
| 32 | "libnativewindow", |
| 33 | "libhidlbase", |
| 34 | "libgui", |
| 35 | "libui", |
| 36 | "libmediandk", |
| 37 | ], |
| 38 | static_libs: [ |
| 39 | "libmediandk_utils", |
| 40 | "libnativehelper_lazy", |
| 41 | ], |
| 42 | header_libs: [ |
| 43 | "media_ndk_headers", |
| 44 | ], |
| 45 | fuzz_config: { |
| 46 | cc: [ |
| 47 | "android-media-fuzzing-reports@google.com", |
| 48 | ], |
| 49 | componentid: 155276, |
| 50 | }, |
| 51 | } |
| 52 | |
| 53 | cc_fuzz { |
| 54 | name: "ndk_crypto_fuzzer", |
| 55 | srcs: ["ndk_crypto_fuzzer.cpp"], |
| 56 | defaults: ["libmediandk_fuzzer_defaults"], |
| 57 | } |
kunal rai | 7880938 | 2022-05-18 11:51:21 +0530 | [diff] [blame] | 58 | |
| 59 | cc_fuzz { |
| 60 | name: "ndk_image_reader_fuzzer", |
| 61 | srcs: [ |
| 62 | "ndk_image_reader_fuzzer.cpp", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "android.hidl.token@1.0-utils", |
| 66 | "android.hardware.graphics.bufferqueue@1.0", |
| 67 | ], |
| 68 | cflags: [ |
| 69 | "-D__ANDROID_VNDK__", |
| 70 | ], |
| 71 | defaults: ["libmediandk_fuzzer_defaults"], |
| 72 | } |
Devendra Singhi | d8d908d | 2022-05-31 11:26:57 +0530 | [diff] [blame] | 73 | |
| 74 | cc_fuzz { |
| 75 | name: "ndk_extractor_fuzzer", |
| 76 | srcs: ["ndk_extractor_fuzzer.cpp"], |
| 77 | defaults: ["libmediandk_fuzzer_defaults"], |
| 78 | shared_libs: ["libbinder_ndk",], |
| 79 | corpus: ["corpus/*"], |
| 80 | } |
Aditya Wazir | 321b7c7 | 2022-05-18 11:12:36 +0530 | [diff] [blame] | 81 | |
| 82 | cc_fuzz { |
| 83 | name: "ndk_mediaformat_fuzzer", |
| 84 | srcs: ["ndk_mediaformat_fuzzer.cpp"], |
| 85 | defaults: ["libmediandk_fuzzer_defaults",], |
| 86 | } |
Akshata Kadam | e9eca47 | 2022-05-23 13:15:11 +0530 | [diff] [blame] | 87 | |
| 88 | cc_fuzz { |
| 89 | name: "ndk_drm_fuzzer", |
| 90 | srcs: ["ndk_drm_fuzzer.cpp"], |
| 91 | defaults: ["libmediandk_fuzzer_defaults",], |
| 92 | } |
Aditya Wazir | 18b6f5a | 2022-05-16 11:13:16 +0530 | [diff] [blame] | 93 | |
| 94 | cc_fuzz { |
| 95 | name: "ndk_mediamuxer_fuzzer", |
| 96 | srcs: ["ndk_mediamuxer_fuzzer.cpp"], |
| 97 | defaults: ["libmediandk_fuzzer_defaults"], |
| 98 | shared_libs: ["libbinder_ndk",], |
| 99 | } |
Akshata Kadam | 2595635 | 2022-06-08 18:43:03 +0530 | [diff] [blame^] | 100 | |
| 101 | cc_fuzz { |
| 102 | name: "ndk_sync_codec_fuzzer", |
| 103 | srcs: [ |
| 104 | "ndk_sync_codec_fuzzer.cpp", |
| 105 | "NdkMediaCodecFuzzerBase.cpp", |
| 106 | ], |
| 107 | header_libs: ["libnativewindow_headers",], |
| 108 | defaults: ["libmediandk_fuzzer_defaults",], |
| 109 | } |