Howard Chen | 4904f96 | 2017-12-08 18:11:05 +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 | cc_library { |
| 16 | name: "libhidlcache", |
| 17 | vendor_available: true, |
| 18 | vndk: { |
| 19 | enabled: true, |
| 20 | }, |
| 21 | defaults: ["libhidl-defaults"], |
| 22 | shared_libs: [ |
| 23 | "libbase", |
| 24 | "liblog", |
| 25 | "libutils", |
| 26 | "libcutils", |
| 27 | "libhidlbase", |
| 28 | "libhidlmemory", |
| 29 | "libhwbinder", |
| 30 | "libhidltransport", |
| 31 | "android.hidl.memory@1.0", |
| 32 | "android.hidl.memory.block@1.0", |
| 33 | "android.hidl.memory.token@1.0", |
| 34 | ], |
| 35 | export_include_dirs: ["include"], |
| 36 | |
| 37 | export_shared_lib_headers: [ |
| 38 | "android.hidl.memory@1.0", |
| 39 | "android.hidl.memory.block@1.0", |
| 40 | "android.hidl.memory.token@1.0", |
Howard Chen | 5a1767d | 2018-01-10 16:54:10 +0800 | [diff] [blame] | 41 | "libhidlbase", |
Howard Chen | 4904f96 | 2017-12-08 18:11:05 +0800 | [diff] [blame] | 42 | ], |
| 43 | srcs: [ |
| 44 | "HidlMemoryCache.cpp", |
Howard Chen | 5a1767d | 2018-01-10 16:54:10 +0800 | [diff] [blame] | 45 | "MemoryDealer.cpp", |
| 46 | "mapping.cpp", |
Howard Chen | 4904f96 | 2017-12-08 18:11:05 +0800 | [diff] [blame] | 47 | ], |
| 48 | } |
Howard Chen | 801e261 | 2018-01-09 17:31:18 +0800 | [diff] [blame] | 49 | |
| 50 | cc_test { |
Howard Chen | 5a1767d | 2018-01-10 16:54:10 +0800 | [diff] [blame] | 51 | name: "libhidlcache_test", |
Howard Chen | 801e261 | 2018-01-09 17:31:18 +0800 | [diff] [blame] | 52 | defaults: ["hidl-gen-defaults"], |
| 53 | |
| 54 | shared_libs: [ |
| 55 | "android.hidl.allocator@1.0", |
| 56 | "android.hidl.memory@1.0", |
| 57 | "android.hidl.memory.block@1.0", |
| 58 | "android.hidl.memory.token@1.0", |
| 59 | "libbase", |
| 60 | "libcutils", |
| 61 | "libhidlbase", |
| 62 | "libhidlmemory", |
| 63 | "libhidlcache", |
| 64 | "libhidltransport", |
| 65 | "libhwbinder", |
| 66 | "liblog", |
| 67 | "libutils", |
| 68 | ], |
| 69 | |
| 70 | srcs: ["libhidlcache_test.cpp"], |
| 71 | } |