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
21package {
22    // See: http://go/android-license-faq
23    // A large-scale-change added 'default_applicable_licenses' to import
24    // all of the 'license_kinds' from "frameworks_av_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["frameworks_av_license"],
28}
29
30cc_defaults {
31    name: "mpeg4_h263_dec_fuzz_defaults",
32
33    host_supported: true,
34
35    srcs: [
36        "mpeg4_h263_dec_fuzzer.cpp",
37    ],
38
39    static_libs: [
40        "libstagefright_m4vh263dec",
41        "liblog",
42    ],
43
44    cflags: [
45        "-DOSCL_IMPORT_REF=",
46    ],
47
48    fuzz_config: {
49        cc: [
50            "android-media-fuzzing-reports@google.com",
51        ],
52        componentid: 155276,
53    },
54}
55
56cc_fuzz {
57    name: "mpeg4_dec_fuzzer",
58
59    defaults: [
60        "mpeg4_h263_dec_fuzz_defaults",
61    ],
62
63    cflags: [
64        "-DMPEG4",
65    ],
66}
67
68cc_fuzz {
69    name: "h263_dec_fuzzer",
70
71    defaults: [
72        "mpeg4_h263_dec_fuzz_defaults",
73    ],
74}
75
76cc_defaults {
77    name: "mpeg4_h263_enc_fuzz_defaults",
78
79    host_supported: true,
80
81    srcs: ["mpeg4_h263_enc_fuzzer.cpp"],
82
83    shared_libs: [
84        "libutils",
85        "liblog",
86    ],
87
88    static_libs: [
89        "libstagefright_m4vh263enc",
90    ],
91
92    cflags: [
93        "-Wall",
94        "-Werror",
95    ],
96    fuzz_config: {
97        cc: [
98            "android-media-fuzzing-reports@google.com",
99        ],
100        componentid: 155276,
101    },
102}
103
104cc_fuzz {
105    name: "mpeg4_enc_fuzzer",
106
107    defaults: [
108        "mpeg4_h263_enc_fuzz_defaults",
109    ],
110
111    cflags: ["-DMPEG4"],
112}
113
114cc_fuzz {
115    name: "h263_enc_fuzzer",
116
117    defaults: [
118        "mpeg4_h263_enc_fuzz_defaults",
119    ],
120}
121