blob: a3d6a965f9e4cfa384585a33f31cedeea06aaf45 [file] [log] [blame]
Akshatha Mohanfac19e52022-05-25 10:01:14 +05301/*
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 Badour3df7c102022-06-08 11:23:42 -070017package {
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 Mohanfac19e52022-05-25 10:01:14 +053026cc_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
62cc_fuzz {
63 name: "ndk_crypto_fuzzer",
64 srcs: ["ndk_crypto_fuzzer.cpp"],
65 defaults: ["libmediandk_fuzzer_defaults"],
66}
kunal rai78809382022-05-18 11:51:21 +053067
68cc_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 Singhid8d908d2022-05-31 11:26:57 +053082
83cc_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 Wazir321b7c72022-05-18 11:12:36 +053090
91cc_fuzz {
92 name: "ndk_mediaformat_fuzzer",
93 srcs: ["ndk_mediaformat_fuzzer.cpp"],
94 defaults: ["libmediandk_fuzzer_defaults",],
95}
Akshata Kadame9eca472022-05-23 13:15:11 +053096
97cc_fuzz {
98 name: "ndk_drm_fuzzer",
99 srcs: ["ndk_drm_fuzzer.cpp"],
100 defaults: ["libmediandk_fuzzer_defaults",],
101}
Aditya Wazir18b6f5a2022-05-16 11:13:16 +0530102
103cc_fuzz {
104 name: "ndk_mediamuxer_fuzzer",
105 srcs: ["ndk_mediamuxer_fuzzer.cpp"],
106 defaults: ["libmediandk_fuzzer_defaults"],
107 shared_libs: ["libbinder_ndk",],
108}
Akshata Kadam25956352022-06-08 18:43:03 +0530109
110cc_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}