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 "[email protected]", 40 ], 41 componentid: 155276, 42 hotlists: [ 43 "4593311", 44 ], 45 description: "The fuzzer targets the APIs of libopus", 46 vector: "remote", 47 service_privilege: "constrained", 48 users: "multi_user", 49 fuzzed_code_usage: "shipped", 50 }, 51} 52 53cc_fuzz { 54 name: "opus_dec_fuzzer", 55 56 srcs: [ 57 "opus_dec_fuzzer.cpp", 58 ], 59 60 defaults: [ 61 "opus_fuzz_defaults", 62 ], 63} 64 65cc_fuzz { 66 name: "opus_multistream_dec_fuzzer", 67 68 srcs: [ 69 "opus_dec_fuzzer.cpp", 70 ], 71 72 cflags: [ 73 "-DMULTISTREAM", 74 ], 75 76 defaults: [ 77 "opus_fuzz_defaults", 78 ], 79} 80 81cc_fuzz { 82 name: "opus_enc_fuzzer", 83 84 srcs: [ 85 "opus_enc_fuzzer.cpp", 86 ], 87 88 defaults: [ 89 "opus_fuzz_defaults" 90 ], 91} 92 93cc_fuzz { 94 name: "opus_multistream_enc_fuzzer", 95 96 srcs: [ 97 "opus_enc_fuzzer.cpp", 98 ], 99 100 defaults: [ 101 "opus_fuzz_defaults" 102 ], 103 104 cflags: [ 105 "-DMULTISTREAM", 106 ], 107} 108