blob: 93b3bf449145a991fb98efed650adb0ee8a13d7f [file] [log] [blame]
Ashutosh Joshi6104b272016-10-27 11:06:23 -07001// This file is autogenerated by hidl-gen. Do not edit manually.
2
Tri Voce608be2017-02-07 19:13:25 -08003filegroup {
4 name: "android.hardware.contexthub@1.0_hal",
5 srcs: [
6 "types.hal",
7 "IContexthub.hal",
8 "IContexthubCallback.hal",
9 ],
10}
11
Ashutosh Joshi6104b272016-10-27 11:06:23 -070012genrule {
13 name: "android.hardware.contexthub@1.0_genc++",
14 tools: ["hidl-gen"],
Steven Morelandbc711242017-05-09 19:51:19 -070015 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070016 srcs: [
Tri Vo85120c92017-02-10 12:45:17 -080017 ":android.hardware.contexthub@1.0_hal",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070018 ],
19 out: [
20 "android/hardware/contexthub/1.0/types.cpp",
21 "android/hardware/contexthub/1.0/ContexthubAll.cpp",
22 "android/hardware/contexthub/1.0/ContexthubCallbackAll.cpp",
23 ],
24}
25
26genrule {
27 name: "android.hardware.contexthub@1.0_genc++_headers",
28 tools: ["hidl-gen"],
Steven Morelandbc711242017-05-09 19:51:19 -070029 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070030 srcs: [
Tri Vo85120c92017-02-10 12:45:17 -080031 ":android.hardware.contexthub@1.0_hal",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070032 ],
33 out: [
34 "android/hardware/contexthub/1.0/types.h",
Steven Moreland561b6022017-03-27 11:48:14 -070035 "android/hardware/contexthub/1.0/hwtypes.h",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070036 "android/hardware/contexthub/1.0/IContexthub.h",
37 "android/hardware/contexthub/1.0/IHwContexthub.h",
Yifan Honga18049a2017-01-11 13:14:59 -080038 "android/hardware/contexthub/1.0/BnHwContexthub.h",
39 "android/hardware/contexthub/1.0/BpHwContexthub.h",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070040 "android/hardware/contexthub/1.0/BsContexthub.h",
41 "android/hardware/contexthub/1.0/IContexthubCallback.h",
42 "android/hardware/contexthub/1.0/IHwContexthubCallback.h",
Yifan Honga18049a2017-01-11 13:14:59 -080043 "android/hardware/contexthub/1.0/BnHwContexthubCallback.h",
44 "android/hardware/contexthub/1.0/BpHwContexthubCallback.h",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070045 "android/hardware/contexthub/1.0/BsContexthubCallback.h",
46 ],
47}
48
Steven Morelanddfd82872017-08-10 15:15:40 -070049cc_library {
Ashutosh Joshi6104b272016-10-27 11:06:23 -070050 name: "android.hardware.contexthub@1.0",
Steven Moreland76cfb842017-05-19 15:52:22 -070051 defaults: ["hidl-module-defaults"],
Ashutosh Joshi6104b272016-10-27 11:06:23 -070052 generated_sources: ["android.hardware.contexthub@1.0_genc++"],
53 generated_headers: ["android.hardware.contexthub@1.0_genc++_headers"],
54 export_generated_headers: ["android.hardware.contexthub@1.0_genc++_headers"],
Steven Moreland3b36a832017-04-11 09:58:03 -070055 vendor_available: true,
Steven Morelanddfd82872017-08-10 15:15:40 -070056 vndk: {
57 enabled: true,
58 },
Ashutosh Joshi6104b272016-10-27 11:06:23 -070059 shared_libs: [
Yifan Hong6b920e42016-11-16 14:17:58 -080060 "libhidlbase",
61 "libhidltransport",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070062 "libhwbinder",
Steven Morelandf8d68ec2016-11-21 16:28:54 -080063 "liblog",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070064 "libutils",
65 "libcutils",
66 ],
67 export_shared_lib_headers: [
Yifan Hong6b920e42016-11-16 14:17:58 -080068 "libhidlbase",
69 "libhidltransport",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070070 "libhwbinder",
71 "libutils",
Ashutosh Joshi6104b272016-10-27 11:06:23 -070072 ],
73}
Steven Moreland26a0bb22017-09-22 14:10:47 -070074
75genrule {
Steven Morelandc3e80fa2017-10-10 11:05:20 -070076 name: "android.hardware.contexthub-V1.0-java_gen_java",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
79 srcs: [
80 ":android.hardware.contexthub@1.0_hal",
81 ],
82 out: [
83 "android/hardware/contexthub/V1_0/AsyncEventType.java",
84 "android/hardware/contexthub/V1_0/ContextHub.java",
85 "android/hardware/contexthub/V1_0/ContextHubMsg.java",
86 "android/hardware/contexthub/V1_0/HostEndPoint.java",
87 "android/hardware/contexthub/V1_0/HubAppInfo.java",
88 "android/hardware/contexthub/V1_0/HubMemoryFlag.java",
89 "android/hardware/contexthub/V1_0/HubMemoryType.java",
90 "android/hardware/contexthub/V1_0/MemRange.java",
91 "android/hardware/contexthub/V1_0/NanoAppBinary.java",
92 "android/hardware/contexthub/V1_0/NanoAppFlags.java",
93 "android/hardware/contexthub/V1_0/PhysicalSensor.java",
94 "android/hardware/contexthub/V1_0/Result.java",
95 "android/hardware/contexthub/V1_0/SensorType.java",
96 "android/hardware/contexthub/V1_0/TransactionResult.java",
97 "android/hardware/contexthub/V1_0/IContexthub.java",
98 "android/hardware/contexthub/V1_0/IContexthubCallback.java",
99 ],
100}
101
102java_library {
103 name: "android.hardware.contexthub-V1.0-java",
104 no_framework_libs: true,
105 defaults: ["hidl-java-module-defaults"],
106 srcs: [":android.hardware.contexthub-V1.0-java_gen_java"],
107 libs: [
108 "hwbinder",
109 "android.hidl.base-V1.0-java",
110 ]
111}
112
113// This package does not export any types. Not creating java constants export.
114
115
116genrule {
Steven Moreland26a0bb22017-09-22 14:10:47 -0700117 name: "android.hardware.contexthub@1.0-adapter-helper_genc++",
118 tools: ["hidl-gen"],
119 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
120 srcs: [
121 ":android.hardware.contexthub@1.0_hal",
122 ],
123 out: [
124 "android/hardware/contexthub/1.0/AContexthub.cpp",
125 "android/hardware/contexthub/1.0/AContexthubCallback.cpp",
126 ],
127}
128
129genrule {
130 name: "android.hardware.contexthub@1.0-adapter-helper_genc++_headers",
131 tools: ["hidl-gen"],
132 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
133 srcs: [
134 ":android.hardware.contexthub@1.0_hal",
135 ],
136 out: [
137 "android/hardware/contexthub/1.0/AContexthub.h",
138 "android/hardware/contexthub/1.0/AContexthubCallback.h",
139 ],
140}
141
Steven Moreland26a0bb22017-09-22 14:10:47 -0700142cc_library {
143 name: "android.hardware.contexthub@1.0-adapter-helper",
144 defaults: ["hidl-module-defaults"],
145 generated_sources: ["android.hardware.contexthub@1.0-adapter-helper_genc++"],
146 generated_headers: ["android.hardware.contexthub@1.0-adapter-helper_genc++_headers"],
147 export_generated_headers: ["android.hardware.contexthub@1.0-adapter-helper_genc++_headers"],
148 vendor_available: true,
149 shared_libs: [
150 "libhidlbase",
151 "libhidltransport",
152 "libhwbinder",
153 "liblog",
154 "libutils",
155 "libcutils",
156 "libhidladapter",
157 "android.hardware.contexthub@1.0",
158 "android.hidl.base@1.0-adapter-helper",
159 ],
160 export_shared_lib_headers: [
161 "libhidlbase",
162 "libhidltransport",
163 "libhwbinder",
164 "libutils",
165 "libhidladapter",
166 "android.hardware.contexthub@1.0",
167 "android.hidl.base@1.0-adapter-helper",
168 ],
169}
170
171genrule {
172 name: "android.hardware.contexthub@1.0-adapter_genc++",
173 tools: ["hidl-gen"],
174 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
Steven Morelanda5299ee2017-09-26 12:54:42 -0700175 out: ["main.cpp"]
176}
Steven Moreland26a0bb22017-09-22 14:10:47 -0700177
178cc_test {
179 name: "android.hardware.contexthub@1.0-adapter",
Steven Moreland527fd762017-10-04 12:47:03 -0700180 defaults: ["hidl-module-defaults"],
Steven Moreland26a0bb22017-09-22 14:10:47 -0700181 shared_libs: [
182 "libhidladapter",
183 "libhidlbase",
184 "libhidltransport",
185 "libutils",
186 "android.hardware.contexthub@1.0",
187 "android.hardware.contexthub@1.0-adapter-helper",
188 ],
189 generated_sources: ["android.hardware.contexthub@1.0-adapter_genc++"],
190}