blob: 0a82463feb151edaf217039735e356cdecc03c2e [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,
34 }
35 },
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",
Steven Moreland39d887d2020-01-31 14:56:45 -080049}
50
51hidl_package_root {
52 name: "binderthreadstateutilstest",
53}
54
55aidl_interface {
56 name: "binderthreadstateutilstest.aidl",
Jiyong Park701fa1a2020-04-13 12:55:44 +090057 unstable: true,
Steven Moreland39d887d2020-01-31 14:56:45 -080058 srcs: ["IAidlStuff.aidl"],
59}
60
61cc_test {
62 name: "libbinderthreadstateutils_test",
63 srcs: ["test.cpp"],
64 static_libs: [
65 "binderthreadstateutilstest@1.0",
66 "binderthreadstateutilstest.aidl-cpp",
67 "libbinderthreadstateutils",
68 ],
69 shared_libs: [
70 "libbase",
71 "libbinder",
72 "libcutils",
73 "libhidlbase",
74 "libutils",
75 "liblog",
76 ],
77 test_suites: [
78 "general-tests",
79 ],
80 require_root: true,
81}