Jayant Chowdhary | dac6dc8 | 2018-10-01 22:52:44 +0000 | [diff] [blame] | 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 | |
Steven Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 15 | // DO NOT ADD NEW USAGES OF THIS |
| 16 | // See comments in header file. |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 17 | package { |
| 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 Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 26 | cc_library_static { |
| 27 | name: "libbinderthreadstateutils", |
| 28 | double_loadable: true, |
| 29 | vendor_available: true, |
| 30 | host_supported: true, |
Yifan Hong | f856a98 | 2020-10-30 14:51:17 -0700 | [diff] [blame] | 31 | target: { |
| 32 | darwin: { |
| 33 | enabled: false, |
Ray Essick | b6e9998 | 2022-01-26 10:38:31 -0800 | [diff] [blame] | 34 | }, |
Yifan Hong | f856a98 | 2020-10-30 14:51:17 -0700 | [diff] [blame] | 35 | }, |
Steven Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 36 | |
| 37 | shared_libs: [ |
| 38 | "libbinder", |
Jooyung Han | a395c8d | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 39 | "libhidlbase", // libhwbinder is in here |
Steven Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | export_include_dirs: ["include"], |
| 43 | |
| 44 | cflags: [ |
| 45 | "-Wall", |
| 46 | "-Werror", |
| 47 | ], |
Jooyung Han | a395c8d | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 48 | min_sdk_version: "29", |
Ray Essick | b6e9998 | 2022-01-26 10:38:31 -0800 | [diff] [blame] | 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 | ], |
Steven Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | hidl_package_root { |
| 57 | name: "binderthreadstateutilstest", |
| 58 | } |
| 59 | |
| 60 | aidl_interface { |
| 61 | name: "binderthreadstateutilstest.aidl", |
Jiyong Park | 701fa1a | 2020-04-13 12:55:44 +0900 | [diff] [blame] | 62 | unstable: true, |
Steven Moreland | 39d887d | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 63 | srcs: ["IAidlStuff.aidl"], |
| 64 | } |
| 65 | |
| 66 | cc_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 | } |