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 | a46371d | 2019-06-05 18:29:06 -0700 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "libhidlbase-impl-shared-libs", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 17 | shared_libs: [ |
| 18 | "libbase", |
Yifan Hong | 44c0e57 | 2017-01-20 15:41:52 -0800 | [diff] [blame] | 19 | "libcutils", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 20 | "liblog", |
| 21 | "libutils", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 22 | ], |
| 23 | export_shared_lib_headers: [ |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 24 | "libutils", |
Steven Moreland | 686f611 | 2017-04-13 18:46:35 -0700 | [diff] [blame] | 25 | "libcutils", // for native_handle.h |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 26 | ], |
Steven Moreland | a46371d | 2019-06-05 18:29:06 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | cc_library { |
| 30 | name: "libhidlbase-impl-internal", |
Steven Moreland | 2056cf3 | 2019-09-17 17:41:02 -0700 | [diff] [blame] | 31 | host_supported: true, |
Steven Moreland | a46371d | 2019-06-05 18:29:06 -0700 | [diff] [blame] | 32 | recovery_available: true, |
Steven Moreland | 2056cf3 | 2019-09-17 17:41:02 -0700 | [diff] [blame] | 33 | vendor_available: true, |
Steven Moreland | a46371d | 2019-06-05 18:29:06 -0700 | [diff] [blame] | 34 | defaults: [ |
| 35 | "libhidlbase-impl-shared-libs", |
| 36 | "libhidl-defaults" |
| 37 | ], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 38 | local_include_dirs: ["include"], |
| 39 | export_include_dirs: ["include"], |
| 40 | |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 41 | sanitize: { |
| 42 | misc_undefined: ["integer"], |
| 43 | }, |
| 44 | |
| 45 | srcs: [ |
Steven Moreland | 337c3ae | 2016-11-22 13:37:32 -0800 | [diff] [blame] | 46 | "HidlInternal.cpp", |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 47 | "HidlSupport.cpp", |
| 48 | "Status.cpp", |
| 49 | "TaskRunner.cpp", |
| 50 | ], |
| 51 | |
| 52 | product_variables: { |
| 53 | debuggable: { |
| 54 | cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], |
| 55 | }, |
| 56 | }, |
Steven Moreland | c6df565 | 2019-09-05 15:08:41 -0700 | [diff] [blame] | 57 | |
| 58 | visibility: ["//system/libhidl:__subpackages__"], |
Yifan Hong | 00f4a39 | 2016-11-16 12:35:58 -0800 | [diff] [blame] | 59 | } |