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 | |
Steven Moreland | 30b8a42 | 2017-07-18 22:03:52 -0700 | [diff] [blame] | 15 | hidl_package_root { |
| 16 | name: "android.hidl", |
| 17 | path: "system/libhidl/transport", |
| 18 | } |
| 19 | |
Yifan Hong | 0abe5aa | 2017-11-08 10:42:55 -0800 | [diff] [blame] | 20 | cc_library { |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 21 | name: "libhidltransport", |
Jerry Zhang | 86ae999 | 2018-05-30 17:11:09 -0700 | [diff] [blame^] | 22 | recovery_available: true, |
Steven Moreland | 647c0af | 2017-04-11 09:39:24 -0700 | [diff] [blame] | 23 | vendor_available: true, |
Justin Yun | 74f6593 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 24 | vndk: { |
| 25 | enabled: true, |
| 26 | support_system_process: true, |
| 27 | }, |
Steven Moreland | c75fc62 | 2017-08-04 11:04:39 -0700 | [diff] [blame] | 28 | defaults: [ |
| 29 | "libhidl-defaults", |
| 30 | "hidl-module-defaults", |
| 31 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 32 | shared_libs: [ |
| 33 | "libbase", |
| 34 | "liblog", |
| 35 | "libutils", |
| 36 | "libhidlbase", |
| 37 | "libhwbinder", |
| 38 | "libcutils", |
Jiyong Park | ba8ace1 | 2017-05-15 15:44:39 +0900 | [diff] [blame] | 39 | "libvndksupport", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 40 | ], |
| 41 | export_shared_lib_headers: [ |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 42 | "libutils", |
| 43 | "libhidlbase", |
| 44 | ], |
| 45 | |
| 46 | export_include_dirs: ["include"], |
| 47 | |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 48 | generated_sources: [ |
| 49 | "android.hidl.manager@1.0_genc++", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 50 | "android.hidl.manager@1.1_genc++", |
Steven Moreland | 8990969 | 2018-05-30 14:11:19 -0700 | [diff] [blame] | 51 | "android.hidl.manager@1.2_genc++", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 52 | "android.hidl.base@1.0_genc++" |
| 53 | ], |
| 54 | generated_headers: [ |
| 55 | "android.hidl.manager@1.0_genc++_headers", |
Steven Moreland | 2a2678e | 2017-07-21 18:07:38 -0700 | [diff] [blame] | 56 | "android.hidl.manager@1.1_genc++_headers", |
Steven Moreland | 8990969 | 2018-05-30 14:11:19 -0700 | [diff] [blame] | 57 | "android.hidl.manager@1.2_genc++_headers", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 58 | "android.hidl.base@1.0_genc++_headers" |
| 59 | ], |
| 60 | export_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", |
Steven Moreland | 8990969 | 2018-05-30 14:11:19 -0700 | [diff] [blame] | 63 | "android.hidl.manager@1.2_genc++_headers", |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 64 | "android.hidl.base@1.0_genc++_headers" |
| 65 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 66 | |
| 67 | srcs: [ |
| 68 | "HidlBinderSupport.cpp", |
Steven Moreland | 0b1e62a | 2017-10-09 13:03:17 -0700 | [diff] [blame] | 69 | "HidlPassthroughSupport.cpp", |
Steven Moreland | 11a732a | 2017-03-07 17:44:17 -0800 | [diff] [blame] | 70 | "HidlTransportSupport.cpp", |
Steven Moreland | 108d09d | 2017-05-05 16:15:38 -0700 | [diff] [blame] | 71 | "HidlTransportUtils.cpp", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 72 | "ServiceManagement.cpp", |
| 73 | "Static.cpp" |
| 74 | ], |
| 75 | |
| 76 | product_variables: { |
| 77 | debuggable: { |
| 78 | cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], |
| 79 | }, |
Steven Moreland | 757394b | 2017-12-13 14:09:24 -0800 | [diff] [blame] | 80 | enforce_vintf_manifest: { |
| 81 | cflags: ["-DENFORCE_VINTF_MANIFEST"] |
Steven Moreland | a15479f | 2017-10-06 16:06:26 -0700 | [diff] [blame] | 82 | }, |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 83 | }, |
Jerry Zhang | 86ae999 | 2018-05-30 17:11:09 -0700 | [diff] [blame^] | 84 | |
| 85 | target: { |
| 86 | recovery: { |
| 87 | exclude_shared_libs: ["libvndksupport"], |
| 88 | }, |
| 89 | }, |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 90 | } |
Steven Moreland | 6a0c66b | 2018-03-29 13:27:49 -0700 | [diff] [blame] | 91 | |
| 92 | // deprecated/legacy (already removed in mainline Android) |
| 93 | // use android-hidl-base-V1-0-java instead! |
| 94 | java_library_static { |
| 95 | name: "android.hidl.base-V1.0-java-static", |
| 96 | no_framework_libs: true, |
| 97 | defaults: ["hidl-java-module-defaults"], |
| 98 | srcs: [":android.hidl.base-V1.0-java_gen_java"], |
| 99 | libs: [ |
| 100 | "hwbinder", |
| 101 | ], |
| 102 | product_variables: { |
| 103 | pdk: { |
| 104 | enabled: false, |
| 105 | }, |
| 106 | }, |
| 107 | } |