blob: 48606136eb9b3f6ec04e6b9f70972e6ae03668f3 [file] [log] [blame]
Jayant Chowdharydac6dc82018-10-01 22:52:44 +00001// 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
Steven Moreland39d887d2020-01-31 14:56:45 -080015// DO NOT ADD NEW USAGES OF THIS
16// See comments in header file.
Bob Badour3306e492021-02-25 15:35:37 -080017package {
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
Steven Moreland39d887d2020-01-31 14:56:45 -080026cc_library_static {
27 name: "libbinderthreadstateutils",
28 double_loadable: true,
29 vendor_available: true,
30 host_supported: true,
Yifan Hongf856a982020-10-30 14:51:17 -070031 target: {
32 darwin: {
33 enabled: false,
Ray Essickb6e99982022-01-26 10:38:31 -080034 },
Yifan Hongf856a982020-10-30 14:51:17 -070035 },
Steven Moreland39d887d2020-01-31 14:56:45 -080036
37 shared_libs: [
38 "libbinder",
Jooyung Hana395c8d2020-04-16 18:48:32 +090039 "libhidlbase", // libhwbinder is in here
Steven Moreland39d887d2020-01-31 14:56:45 -080040 ],
41
42 export_include_dirs: ["include"],
43
44 cflags: [
45 "-Wall",
46 "-Werror",
47 ],
Jooyung Hana395c8d2020-04-16 18:48:32 +090048 min_sdk_version: "29",
Ray Essickb6e99982022-01-26 10:38:31 -080049 // 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 ],
Steven Moreland39d887d2020-01-31 14:56:45 -080054}
55
56hidl_package_root {
57 name: "binderthreadstateutilstest",
58}
59
60aidl_interface {
61 name: "binderthreadstateutilstest.aidl",
Jiyong Park701fa1a2020-04-13 12:55:44 +090062 unstable: true,
Steven Moreland39d887d2020-01-31 14:56:45 -080063 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}