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}
50
51hidl_package_root {
52    name: "binderthreadstateutilstest",
53}
54
55aidl_interface {
56    name: "binderthreadstateutilstest.aidl",
57    unstable: true,
58    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}
82