1*495ae853SAndroid Build Coastguard Worker/* 2*495ae853SAndroid Build Coastguard Worker * Copyright (C) 2021 The Android Open Source Project 3*495ae853SAndroid Build Coastguard Worker * 4*495ae853SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*495ae853SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*495ae853SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*495ae853SAndroid Build Coastguard Worker * 8*495ae853SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*495ae853SAndroid Build Coastguard Worker * 10*495ae853SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*495ae853SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*495ae853SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*495ae853SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*495ae853SAndroid Build Coastguard Worker * limitations under the License. 15*495ae853SAndroid Build Coastguard Worker */ 16*495ae853SAndroid Build Coastguard Worker 17*495ae853SAndroid Build Coastguard Workerpackage { 18*495ae853SAndroid Build Coastguard Worker // See: http://go/android-license-faq 19*495ae853SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 20*495ae853SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_libavc_license" 21*495ae853SAndroid Build Coastguard Worker // to get the below license kinds: 22*495ae853SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 23*495ae853SAndroid Build Coastguard Worker default_applicable_licenses: ["external_libavc_license"], 24*495ae853SAndroid Build Coastguard Worker} 25*495ae853SAndroid Build Coastguard Worker 26*495ae853SAndroid Build Coastguard Workercc_test { 27*495ae853SAndroid Build Coastguard Worker name: "AvcEncTest", 28*495ae853SAndroid Build Coastguard Worker gtest: true, 29*495ae853SAndroid Build Coastguard Worker test_suites: ["device-tests"], 30*495ae853SAndroid Build Coastguard Worker 31*495ae853SAndroid Build Coastguard Worker srcs: ["AvcEncTest.cpp"], 32*495ae853SAndroid Build Coastguard Worker 33*495ae853SAndroid Build Coastguard Worker shared_libs: [ 34*495ae853SAndroid Build Coastguard Worker "libutils", 35*495ae853SAndroid Build Coastguard Worker "liblog", 36*495ae853SAndroid Build Coastguard Worker ], 37*495ae853SAndroid Build Coastguard Worker 38*495ae853SAndroid Build Coastguard Worker static_libs: [ 39*495ae853SAndroid Build Coastguard Worker "libavcenc", 40*495ae853SAndroid Build Coastguard Worker ], 41*495ae853SAndroid Build Coastguard Worker 42*495ae853SAndroid Build Coastguard Worker cflags: [ 43*495ae853SAndroid Build Coastguard Worker "-Wall", 44*495ae853SAndroid Build Coastguard Worker "-Werror", 45*495ae853SAndroid Build Coastguard Worker ], 46*495ae853SAndroid Build Coastguard Worker 47*495ae853SAndroid Build Coastguard Worker sanitize: { 48*495ae853SAndroid Build Coastguard Worker misc_undefined: [ 49*495ae853SAndroid Build Coastguard Worker "signed-integer-overflow", 50*495ae853SAndroid Build Coastguard Worker "unsigned-integer-overflow", 51*495ae853SAndroid Build Coastguard Worker ], 52*495ae853SAndroid Build Coastguard Worker //cfi: true, 53*495ae853SAndroid Build Coastguard Worker }, 54*495ae853SAndroid Build Coastguard Worker} 55