blob: 08c62df0728907fd976ed363ea78a9e4b9b18657 [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.
17cc_library_static {
18 name: "libbinderthreadstateutils",
19 double_loadable: true,
20 vendor_available: true,
21 host_supported: true,
Yifan Hongf856a982020-10-30 14:51:17 -070022 target: {
23 darwin: {
24 enabled: false,
25 }
26 },
Steven Moreland39d887d2020-01-31 14:56:45 -080027
28 shared_libs: [
29 "libbinder",
Jooyung Hana395c8d2020-04-16 18:48:32 +090030 "libhidlbase", // libhwbinder is in here
Steven Moreland39d887d2020-01-31 14:56:45 -080031 ],
32
33 export_include_dirs: ["include"],
34
35 cflags: [
36 "-Wall",
37 "-Werror",
38 ],
Jooyung Hana395c8d2020-04-16 18:48:32 +090039 min_sdk_version: "29",
Steven Moreland39d887d2020-01-31 14:56:45 -080040}
41
42hidl_package_root {
43 name: "binderthreadstateutilstest",
44}
45
46aidl_interface {
47 name: "binderthreadstateutilstest.aidl",
Jiyong Park701fa1a2020-04-13 12:55:44 +090048 unstable: true,
Steven Moreland39d887d2020-01-31 14:56:45 -080049 srcs: ["IAidlStuff.aidl"],
50}
51
52cc_test {
53 name: "libbinderthreadstateutils_test",
54 srcs: ["test.cpp"],
55 static_libs: [
56 "binderthreadstateutilstest@1.0",
57 "binderthreadstateutilstest.aidl-cpp",
58 "libbinderthreadstateutils",
59 ],
60 shared_libs: [
61 "libbase",
62 "libbinder",
63 "libcutils",
64 "libhidlbase",
65 "libutils",
66 "liblog",
67 ],
68 test_suites: [
69 "general-tests",
70 ],
71 require_root: true,
72}