• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    // http://go/android-license-faq
23    // A large-scale-change added 'default_applicable_licenses' to import
24    // the below license kinds from "external_libopus_license":
25    //   SPDX-license-identifier-Apache-2.0
26    default_applicable_licenses: ["external_libopus_license"],
27}
28
29cc_defaults {
30    name: "opus_fuzz_defaults",
31    host_supported: true,
32
33    static_libs: [
34        "libopus",
35    ],
36
37    fuzz_config: {
38        cc: [
39            "android-media-fuzzing-reports@google.com",
40        ],
41        componentid: 155276,
42    },
43}
44
45cc_fuzz {
46    name: "opus_dec_fuzzer",
47
48    srcs: [
49        "opus_dec_fuzzer.cpp",
50    ],
51
52    defaults: [
53        "opus_fuzz_defaults",
54    ],
55}
56
57cc_fuzz {
58    name: "opus_multistream_dec_fuzzer",
59
60    srcs: [
61        "opus_dec_fuzzer.cpp",
62    ],
63
64    cflags: [
65        "-DMULTISTREAM",
66    ],
67
68    defaults: [
69        "opus_fuzz_defaults",
70    ],
71}
72
73cc_fuzz {
74    name: "opus_enc_fuzzer",
75
76    srcs: [
77        "opus_enc_fuzzer.cpp",
78    ],
79
80    defaults: [
81        "opus_fuzz_defaults"
82    ],
83}
84
85cc_fuzz {
86    name: "opus_multistream_enc_fuzzer",
87
88    srcs: [
89        "opus_enc_fuzzer.cpp",
90    ],
91
92    defaults: [
93        "opus_fuzz_defaults"
94    ],
95
96    cflags: [
97        "-DMULTISTREAM",
98    ],
99}
100