blob: fee57053d0b93a9935aea0e1b59d1e1ea5f0ee9c [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
17cc_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
53cc_fuzz {
54 name: "ndk_crypto_fuzzer",
55 srcs: ["ndk_crypto_fuzzer.cpp"],
56 defaults: ["libmediandk_fuzzer_defaults"],
57}
kunal rai78809382022-05-18 11:51:21 +053058
59cc_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}