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", |
Steven Moreland | 40ede2c | 2016-11-09 13:51:53 -0800 | [diff] [blame] | 17 | "manager/1.0" |
Yifan Hong | 602b85a | 2016-10-24 13:40:01 -0700 | [diff] [blame] | 18 | ] |
| 19 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 20 | cc_library_shared { |
| 21 | name: "libhidl", |
| 22 | shared_libs: [ |
| 23 | "libbase", |
| 24 | "liblog", |
| 25 | "libutils", |
| 26 | "libhwbinder", |
| 27 | "libcutils", |
| 28 | ], |
| 29 | export_shared_lib_headers: [ |
| 30 | "libbase", |
| 31 | "libutils", |
| 32 | ], |
| 33 | local_include_dirs: ["include"], |
| 34 | export_include_dirs: ["include"], |
| 35 | |
| 36 | clang: true, |
| 37 | sanitize: { |
| 38 | misc_undefined: ["integer"], |
| 39 | }, |
Steven Moreland | 5d5ef7f | 2016-10-20 19:19:55 -0700 | [diff] [blame] | 40 | |
| 41 | generated_sources: ["android.hidl.manager@1.0_genc++"], |
| 42 | generated_headers: ["android.hidl.manager@1.0_genc++_headers"], |
| 43 | export_generated_headers: ["android.hidl.manager@1.0_genc++_headers"], |
| 44 | |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 45 | srcs: [ |
| 46 | "HidlSupport.cpp", |
Yifan Hong | 7f97f44 | 2016-11-14 18:31:05 -0800 | [diff] [blame] | 47 | "HidlBinderSupport.cpp", |
Steven Moreland | 5d5ef7f | 2016-10-20 19:19:55 -0700 | [diff] [blame] | 48 | "ServiceManagement.cpp", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 49 | "Static.cpp", |
| 50 | "Status.cpp", |
Yifan Hong | 5e2318c | 2016-10-27 17:19:21 -0700 | [diff] [blame] | 51 | "TaskRunner.cpp", |
Dan Willemsen | 6365a87 | 2016-09-13 16:29:54 -0700 | [diff] [blame] | 52 | ], |
| 53 | |
| 54 | product_variables: { |
| 55 | debuggable: { |
| 56 | cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], |
| 57 | }, |
| 58 | }, |
| 59 | } |