blob: d28a4f1ee335c7fd07d0b67d1dec3b72ae5353dc [file] [log] [blame]
Howard Chen4904f962017-12-08 18:11:05 +08001// 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",
Howard Chen5a1767d2018-01-10 16:54:10 +080041 "libhidlbase",
Howard Chen4904f962017-12-08 18:11:05 +080042 ],
43 srcs: [
44 "HidlMemoryCache.cpp",
Howard Chen5a1767d2018-01-10 16:54:10 +080045 "MemoryDealer.cpp",
46 "mapping.cpp",
Howard Chen4904f962017-12-08 18:11:05 +080047 ],
48}
Howard Chen801e2612018-01-09 17:31:18 +080049
50cc_test {
Howard Chen5a1767d2018-01-10 16:54:10 +080051 name: "libhidlcache_test",
Howard Chen801e2612018-01-09 17:31:18 +080052 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}