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. |
| 17 | cc_library_static { |
| 18 | name: "libbinderthreadstateutils", |
| 19 | double_loadable: true, |
| 20 | vendor_available: true, |
| 21 | host_supported: true, |
| 22 | |
| 23 | shared_libs: [ |
| 24 | "libbinder", |
| 25 | "libhidlbase", // libhwbinder is in here |
| 26 | ], |
| 27 | |
| 28 | export_include_dirs: ["include"], |
| 29 | |
| 30 | cflags: [ |
| 31 | "-Wall", |
| 32 | "-Werror", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | hidl_package_root { |
| 37 | name: "binderthreadstateutilstest", |
| 38 | } |
| 39 | |
| 40 | aidl_interface { |
| 41 | name: "binderthreadstateutilstest.aidl", |
| 42 | srcs: ["IAidlStuff.aidl"], |
| 43 | } |
| 44 | |
| 45 | cc_test { |
| 46 | name: "libbinderthreadstateutils_test", |
| 47 | srcs: ["test.cpp"], |
| 48 | static_libs: [ |
| 49 | "binderthreadstateutilstest@1.0", |
| 50 | "binderthreadstateutilstest.aidl-cpp", |
| 51 | "libbinderthreadstateutils", |
| 52 | ], |
| 53 | shared_libs: [ |
| 54 | "libbase", |
| 55 | "libbinder", |
| 56 | "libcutils", |
| 57 | "libhidlbase", |
| 58 | "libutils", |
| 59 | "liblog", |
| 60 | ], |
| 61 | test_suites: [ |
| 62 | "general-tests", |
| 63 | ], |
| 64 | require_root: true, |
| 65 | } |
| 66 | |
| 67 | // TODO(b/148692216): remove empty lib |
Jayant Chowdhary | dac6dc8 | 2018-10-01 22:52:44 +0000 | [diff] [blame] | 68 | cc_library { |
| 69 | name: "libbinderthreadstate", |
| 70 | recovery_available: true, |
| 71 | vendor_available: false, |
| 72 | vndk: { |
| 73 | enabled: true, |
| 74 | support_system_process: true, |
| 75 | }, |
Steven Moreland | 28723ae | 2019-04-01 18:52:30 -0700 | [diff] [blame] | 76 | host_supported: true, |
Jayant Chowdhary | dac6dc8 | 2018-10-01 22:52:44 +0000 | [diff] [blame] | 77 | } |