1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// DO NOT ADD NEW USAGES OF THIS 16// See comments in header file. 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "frameworks_native_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["frameworks_native_license"], 24} 25 26cc_library_static { 27 name: "libbinderthreadstateutils", 28 double_loadable: true, 29 vendor_available: true, 30 host_supported: true, 31 target: { 32 darwin: { 33 enabled: false, 34 }, 35 }, 36 37 shared_libs: [ 38 "libbinder", 39 "libhidlbase", // libhwbinder is in here 40 ], 41 42 export_include_dirs: ["include"], 43 44 cflags: [ 45 "-Wall", 46 "-Werror", 47 ], 48 min_sdk_version: "29", 49 // static link, so it won't straddle a module boundary at runtime. 50 apex_available: [ 51 "//apex_available:platform", 52 "com.android.media.swcodec", 53 ], 54} 55 56hidl_package_root { 57 name: "binderthreadstateutilstest", 58} 59 60aidl_interface { 61 name: "binderthreadstateutilstest.aidl", 62 unstable: true, 63 srcs: ["IAidlStuff.aidl"], 64} 65 66cc_test { 67 name: "libbinderthreadstateutils_test", 68 srcs: ["test.cpp"], 69 static_libs: [ 70 "binderthreadstateutilstest@1.0", 71 "binderthreadstateutilstest.aidl-cpp", 72 "libbinderthreadstateutils", 73 ], 74 shared_libs: [ 75 "libbase", 76 "libbinder", 77 "libcutils", 78 "libhidlbase", 79 "libutils", 80 "liblog", 81 ], 82 test_suites: [ 83 "general-tests", 84 ], 85 require_root: true, 86} 87