xref: /aosp_15_r20/external/aac/fuzzer/Android.bp (revision e54365361535b070c2db7374cec45c159c7d0e7a)
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 "external_aac_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["external_aac_license"],
28}
29
30cc_defaults {
31    name: "aac_fuzz_defaults",
32    host_supported: true,
33
34    static_libs: [
35        "libFraunhoferAAC",
36    ],
37
38    target: {
39        darwin: {
40            enabled: false,
41        },
42    },
43
44    fuzz_config: {
45        cc: [
46            "[email protected]",
47        ],
48        componentid: 155276,
49        hotlists: [
50            "4593311",
51        ],
52        description: "The fuzzer targets the APIs of libFraunhoferAAC",
53        vector: "remote",
54        service_privilege: "privileged",
55        users: "multi_user",
56        fuzzed_code_usage: "shipped",
57    },
58}
59
60cc_fuzz {
61    name: "aac_dec_fuzzer",
62
63    srcs: [
64        "aac_dec_fuzzer.cpp",
65    ],
66
67    static_libs: [
68        "liblog",
69    ],
70
71    defaults: [
72        "aac_fuzz_defaults"
73    ],
74}
75
76cc_fuzz {
77    name: "aac_enc_fuzzer",
78
79    srcs: [
80        "aac_enc_fuzzer.cpp",
81    ],
82
83    defaults: [
84        "aac_fuzz_defaults"
85    ],
86
87    include_dirs: [
88        "external/aac/libAACenc/"
89    ],
90}
91