summaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorSteven Moreland2017-11-13 11:20:37 -0600
committerSteven Moreland2017-11-13 12:00:18 -0600
commit8db261bc99e1e673d3eb6dad73278e8a5311aadd (patch)
treec722c5b2d801da80ea171ab03d1ae4d85059ec1c /light
parent446e97afaf2619030c44b23a07c1074349ca816f (diff)
downloadplatform-hardware-interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.tar.gz
platform-hardware-interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.tar.xz
platform-hardware-interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.zip
Updating makefiles for hidl_interface.
Bug: 64487114 Test: manual Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812 Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Diffstat (limited to 'light')
-rw-r--r--light/2.0/Android.bp174
1 files changed, 14 insertions, 160 deletions
diff --git a/light/2.0/Android.bp b/light/2.0/Android.bp
index 2e7d84a6..ee58f939 100644
--- a/light/2.0/Android.bp
+++ b/light/2.0/Android.bp
@@ -1,171 +1,25 @@
1// This file is autogenerated by hidl-gen. Do not edit manually. 1// This file is autogenerated by hidl-gen -Landroidbp.
2 2
3filegroup { 3hidl_interface {
4 name: "android.hardware.light@2.0_hal",
5 srcs: [
6 "types.hal",
7 "ILight.hal",
8 ],
9}
10
11genrule {
12 name: "android.hardware.light@2.0_genc++",
13 tools: ["hidl-gen"],
14 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
15 srcs: [
16 ":android.hardware.light@2.0_hal",
17 ],
18 out: [
19 "android/hardware/light/2.0/types.cpp",
20 "android/hardware/light/2.0/LightAll.cpp",
21 ],
22}
23
24genrule {
25 name: "android.hardware.light@2.0_genc++_headers",
26 tools: ["hidl-gen"],
27 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
28 srcs: [
29 ":android.hardware.light@2.0_hal",
30 ],
31 out: [
32 "android/hardware/light/2.0/types.h",
33 "android/hardware/light/2.0/hwtypes.h",
34 "android/hardware/light/2.0/ILight.h",
35 "android/hardware/light/2.0/IHwLight.h",
36 "android/hardware/light/2.0/BnHwLight.h",
37 "android/hardware/light/2.0/BpHwLight.h",
38 "android/hardware/light/2.0/BsLight.h",
39 ],
40}
41
42cc_library {
43 name: "android.hardware.light@2.0", 4 name: "android.hardware.light@2.0",
44 defaults: ["hidl-module-defaults"], 5 root: "android.hardware",
45 generated_sources: ["android.hardware.light@2.0_genc++"],
46 generated_headers: ["android.hardware.light@2.0_genc++_headers"],
47 export_generated_headers: ["android.hardware.light@2.0_genc++_headers"],
48 vendor_available: true,
49 vndk: { 6 vndk: {
50 enabled: true, 7 enabled: true,
51 }, 8 },
52 shared_libs: [
53 "libhidlbase",
54 "libhidltransport",
55 "libhwbinder",
56 "liblog",
57 "libutils",
58 "libcutils",
59 ],
60 export_shared_lib_headers: [
61 "libhidlbase",
62 "libhidltransport",
63 "libhwbinder",
64 "libutils",
65 ],
66}
67
68genrule {
69 name: "android.hardware.light-V2.0-java_gen_java",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
72 srcs: [ 9 srcs: [
73 ":android.hardware.light@2.0_hal", 10 "types.hal",
74 ], 11 "ILight.hal",
75 out: [
76 "android/hardware/light/V2_0/Brightness.java",
77 "android/hardware/light/V2_0/Flash.java",
78 "android/hardware/light/V2_0/LightState.java",
79 "android/hardware/light/V2_0/Status.java",
80 "android/hardware/light/V2_0/Type.java",
81 "android/hardware/light/V2_0/ILight.java",
82 ],
83}
84
85java_library {
86 name: "android.hardware.light-V2.0-java",
87 no_framework_libs: true,
88 defaults: ["hidl-java-module-defaults"],
89 srcs: [":android.hardware.light-V2.0-java_gen_java"],
90 libs: [
91 "hwbinder",
92 "android.hidl.base-V1.0-java",
93 ]
94}
95
96// This package does not export any types. Not creating java constants export.
97
98
99genrule {
100 name: "android.hardware.light@2.0-adapter-helper_genc++",
101 tools: ["hidl-gen"],
102 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
103 srcs: [
104 ":android.hardware.light@2.0_hal",
105 ],
106 out: [
107 "android/hardware/light/2.0/ALight.cpp",
108 ],
109}
110
111genrule {
112 name: "android.hardware.light@2.0-adapter-helper_genc++_headers",
113 tools: ["hidl-gen"],
114 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
115 srcs: [
116 ":android.hardware.light@2.0_hal",
117 ],
118 out: [
119 "android/hardware/light/2.0/ALight.h",
120 ], 12 ],
121} 13 interfaces: [
122 14 "android.hidl.base@1.0",
123cc_library {
124 name: "android.hardware.light@2.0-adapter-helper",
125 defaults: ["hidl-module-defaults"],
126 generated_sources: ["android.hardware.light@2.0-adapter-helper_genc++"],
127 generated_headers: ["android.hardware.light@2.0-adapter-helper_genc++_headers"],
128 export_generated_headers: ["android.hardware.light@2.0-adapter-helper_genc++_headers"],
129 vendor_available: true,
130 shared_libs: [
131 "libhidlbase",
132 "libhidltransport",
133 "libhwbinder",
134 "liblog",
135 "libutils",
136 "libcutils",
137 "libhidladapter",
138 "android.hardware.light@2.0",
139 "android.hidl.base@1.0-adapter-helper",
140 ], 15 ],
141 export_shared_lib_headers: [ 16 types: [
142 "libhidlbase", 17 "Brightness",
143 "libhidltransport", 18 "Flash",
144 "libhwbinder", 19 "LightState",
145 "libutils", 20 "Status",
146 "libhidladapter", 21 "Type",
147 "android.hardware.light@2.0",
148 "android.hidl.base@1.0-adapter-helper",
149 ], 22 ],
23 gen_java: true,
150} 24}
151 25
152genrule {
153 name: "android.hardware.light@2.0-adapter_genc++",
154 tools: ["hidl-gen"],
155 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
156 out: ["main.cpp"]
157}
158
159cc_test {
160 name: "android.hardware.light@2.0-adapter",
161 defaults: ["hidl-module-defaults"],
162 shared_libs: [
163 "libhidladapter",
164 "libhidlbase",
165 "libhidltransport",
166 "libutils",
167 "android.hardware.light@2.0",
168 "android.hardware.light@2.0-adapter-helper",
169 ],
170 generated_sources: ["android.hardware.light@2.0-adapter_genc++"],
171}