Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [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 | |
Yifan Hong | 602b85a | 2016-10-24 13:40:01 -0700 | [diff] [blame] | 15 | subdirs = [ |
| 16 | "test", |
| 17 | ] |
| 18 | |
Steven Moreland | 5d5ef7f | 2016-10-20 19:19:55 -0700 | [diff] [blame^] | 19 | genrule { |
| 20 | name: "android.hidl.manager@1.0_genc++", |
| 21 | tool: "hidl-gen", |
| 22 | cmd: "$tool -o $genDir -Lc++ -randroid.hidl:system/libhidl android.hidl.manager@1.0", |
| 23 | srcs: [ |
| 24 | "manager/1.0/IServiceManager.hal", |
| 25 | ], |
| 26 | out: [ |
| 27 | "android/hidl/manager/1.0/ServiceManagerAll.cpp", |
| 28 | ], |
| 29 | } |
| 30 | |
| 31 | genrule { |
| 32 | name: "android.hidl.manager@1.0_genc++_headers", |
| 33 | tool: "hidl-gen", |
| 34 | cmd: "$tool -o $genDir -Lc++ -randroid.hidl:system/libhidl android.hidl.manager@1.0", |
| 35 | srcs: [ |
| 36 | "manager/1.0/IServiceManager.hal", |
| 37 | ], |
| 38 | out: [ |
| 39 | "android/hidl/manager/1.0/IServiceManager.h", |
| 40 | "android/hidl/manager/1.0/IHwServiceManager.h", |
| 41 | "android/hidl/manager/1.0/BnServiceManager.h", |
| 42 | "android/hidl/manager/1.0/BpServiceManager.h", |
| 43 | "android/hidl/manager/1.0/BsServiceManager.h", |
| 44 | ], |
| 45 | } |
| 46 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 47 | cc_library_shared { |
| 48 | name: "libhidl", |
| 49 | shared_libs: [ |
| 50 | "libbase", |
| 51 | "liblog", |
| 52 | "libutils", |
| 53 | "libhwbinder", |
| 54 | "libcutils", |
| 55 | ], |
| 56 | export_shared_lib_headers: [ |
| 57 | "libbase", |
| 58 | "libutils", |
| 59 | ], |
| 60 | local_include_dirs: ["include"], |
| 61 | export_include_dirs: ["include"], |
| 62 | |
| 63 | clang: true, |
| 64 | sanitize: { |
| 65 | misc_undefined: ["integer"], |
| 66 | }, |
Steven Moreland | 5d5ef7f | 2016-10-20 19:19:55 -0700 | [diff] [blame^] | 67 | |
| 68 | generated_sources: ["android.hidl.manager@1.0_genc++"], |
| 69 | generated_headers: ["android.hidl.manager@1.0_genc++_headers"], |
| 70 | export_generated_headers: ["android.hidl.manager@1.0_genc++_headers"], |
| 71 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 72 | srcs: [ |
| 73 | "HidlSupport.cpp", |
Steven Moreland | 5d5ef7f | 2016-10-20 19:19:55 -0700 | [diff] [blame^] | 74 | "ServiceManagement.cpp", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 75 | "Static.cpp", |
| 76 | "Status.cpp", |
Yifan Hong | 5e2318c | 2016-10-27 17:19:21 -0700 | [diff] [blame] | 77 | "TaskRunner.cpp", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 78 | ], |
| 79 | |
| 80 | product_variables: { |
| 81 | debuggable: { |
| 82 | cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], |
| 83 | }, |
| 84 | }, |
| 85 | } |