Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | subdirs = [ |
Steven Moreland | 346cf51 | 2017-02-16 19:23:24 -0800 | [diff] [blame] | 16 | "allocator/1.0", |
| 17 | "allocator/1.0/default", |
Steven Moreland | 2ef31d8 | 2016-12-21 14:38:23 -0800 | [diff] [blame] | 18 | "base/1.0", |
Martijn Coenen | 3079100 | 2016-12-01 15:40:46 +0100 | [diff] [blame] | 19 | "manager/1.0", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 20 | "manager/1.1", |
Martijn Coenen | 3079100 | 2016-12-01 15:40:46 +0100 | [diff] [blame] | 21 | "memory/1.0", |
| 22 | "memory/1.0/default", |
Steven Moreland | 2ef31d8 | 2016-12-21 14:38:23 -0800 | [diff] [blame] | 23 | "token/1.0", |
Pawin Vongmasa | 155e9d3 | 2017-03-09 06:38:22 -0800 | [diff] [blame] | 24 | "token/1.0/utils", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 25 | ] |
| 26 | |
| 27 | cc_library_shared { |
| 28 | name: "libhidltransport", |
Steven Moreland | 647c0af | 2017-04-11 09:39:24 -0700 | [diff] [blame] | 29 | vendor_available: true, |
Justin Yun | 74f6593 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 30 | vndk: { |
| 31 | enabled: true, |
| 32 | support_system_process: true, |
| 33 | }, |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 34 | defaults: [ |
| 35 | "libhidl-defaults", |
| 36 | "hidl-module-defaults", |
| 37 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 38 | shared_libs: [ |
| 39 | "libbase", |
| 40 | "liblog", |
| 41 | "libutils", |
| 42 | "libhidlbase", |
| 43 | "libhwbinder", |
| 44 | "libcutils", |
Jiyong Park | ba8ace1 | 2017-05-15 15:44:39 +0900 | [diff] [blame^] | 45 | "libvndksupport", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 46 | ], |
| 47 | export_shared_lib_headers: [ |
| 48 | "libbase", |
| 49 | "libutils", |
| 50 | "libhidlbase", |
| 51 | ], |
| 52 | |
| 53 | export_include_dirs: ["include"], |
| 54 | |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 55 | generated_sources: [ |
| 56 | "android.hidl.manager@1.0_genc++", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 57 | "android.hidl.manager@1.1_genc++", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 58 | "android.hidl.base@1.0_genc++" |
| 59 | ], |
| 60 | generated_headers: [ |
| 61 | "android.hidl.manager@1.0_genc++_headers", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 62 | "android.hidl.manager@1.1_genc++_headers", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 63 | "android.hidl.base@1.0_genc++_headers" |
| 64 | ], |
| 65 | export_generated_headers: [ |
| 66 | "android.hidl.manager@1.0_genc++_headers", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 67 | "android.hidl.manager@1.1_genc++_headers", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 68 | "android.hidl.base@1.0_genc++_headers" |
| 69 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 70 | |
| 71 | srcs: [ |
| 72 | "HidlBinderSupport.cpp", |
Steven Moreland | 11a732a | 2017-03-07 17:44:17 -0800 | [diff] [blame] | 73 | "HidlTransportSupport.cpp", |
Steven Moreland | 108d09d | 2017-05-05 16:15:38 -0700 | [diff] [blame] | 74 | "HidlTransportUtils.cpp", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 75 | "ServiceManagement.cpp", |
| 76 | "Static.cpp" |
| 77 | ], |
| 78 | |
| 79 | product_variables: { |
| 80 | debuggable: { |
| 81 | cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], |
| 82 | }, |
| 83 | }, |
| 84 | } |