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