blob: ea846d85ee5087765ef5be8bd2ea827914021008 [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",
41 "libhidlbase"
42 ],
43 srcs: [
44 "HidlMemoryCache.cpp",
45 "mapping.cpp"
46 ],
47}
Howard Chen801e2612018-01-09 17:31:18 +080048
49cc_test {
50 name: "libhidlcache_test",
51 defaults: ["hidl-gen-defaults"],
52
53 shared_libs: [
54 "android.hidl.allocator@1.0",
55 "android.hidl.memory@1.0",
56 "android.hidl.memory.block@1.0",
57 "android.hidl.memory.token@1.0",
58 "libbase",
59 "libcutils",
60 "libhidlbase",
61 "libhidlmemory",
62 "libhidlcache",
63 "libhidltransport",
64 "libhwbinder",
65 "liblog",
66 "libutils",
67 ],
68
69 srcs: ["libhidlcache_test.cpp"],
70}