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 15cc_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", 41 "libhidlbase", 42 ], 43 srcs: [ 44 "HidlMemoryCache.cpp", 45 "MemoryDealer.cpp", 46 "mapping.cpp", 47 ], 48} 49 50cc_test { 51 name: "libhidlcache_test", 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} 72