diff options
author | Steven Moreland | 2017-11-13 11:20:37 -0600 |
---|---|---|
committer | Steven Moreland | 2017-11-13 12:00:18 -0600 |
commit | 8db261bc99e1e673d3eb6dad73278e8a5311aadd (patch) | |
tree | c722c5b2d801da80ea171ab03d1ae4d85059ec1c /thermal/1.0 | |
parent | 446e97afaf2619030c44b23a07c1074349ca816f (diff) | |
download | platform-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 'thermal/1.0')
-rw-r--r-- | thermal/1.0/Android.bp | 195 |
1 files changed, 17 insertions, 178 deletions
diff --git a/thermal/1.0/Android.bp b/thermal/1.0/Android.bp index 43a0f68c..e764e284 100644 --- a/thermal/1.0/Android.bp +++ b/thermal/1.0/Android.bp | |||
@@ -1,189 +1,28 @@ | |||
1 | // This file is autogenerated by hidl-gen. Do not edit manually. | 1 | // This file is autogenerated by hidl-gen -Landroidbp. |
2 | 2 | ||
3 | filegroup { | 3 | hidl_interface { |
4 | name: "android.hardware.thermal@1.0_hal", | ||
5 | srcs: [ | ||
6 | "types.hal", | ||
7 | "IThermal.hal", | ||
8 | ], | ||
9 | } | ||
10 | |||
11 | genrule { | ||
12 | name: "android.hardware.thermal@1.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.thermal@1.0", | ||
15 | srcs: [ | ||
16 | ":android.hardware.thermal@1.0_hal", | ||
17 | ], | ||
18 | out: [ | ||
19 | "android/hardware/thermal/1.0/types.cpp", | ||
20 | "android/hardware/thermal/1.0/ThermalAll.cpp", | ||
21 | ], | ||
22 | } | ||
23 | |||
24 | genrule { | ||
25 | name: "android.hardware.thermal@1.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.thermal@1.0", | ||
28 | srcs: [ | ||
29 | ":android.hardware.thermal@1.0_hal", | ||
30 | ], | ||
31 | out: [ | ||
32 | "android/hardware/thermal/1.0/types.h", | ||
33 | "android/hardware/thermal/1.0/hwtypes.h", | ||
34 | "android/hardware/thermal/1.0/IThermal.h", | ||
35 | "android/hardware/thermal/1.0/IHwThermal.h", | ||
36 | "android/hardware/thermal/1.0/BnHwThermal.h", | ||
37 | "android/hardware/thermal/1.0/BpHwThermal.h", | ||
38 | "android/hardware/thermal/1.0/BsThermal.h", | ||
39 | ], | ||
40 | } | ||
41 | |||
42 | cc_library { | ||
43 | name: "android.hardware.thermal@1.0", | 4 | name: "android.hardware.thermal@1.0", |
44 | defaults: ["hidl-module-defaults"], | 5 | root: "android.hardware", |
45 | generated_sources: ["android.hardware.thermal@1.0_genc++"], | ||
46 | generated_headers: ["android.hardware.thermal@1.0_genc++_headers"], | ||
47 | export_generated_headers: ["android.hardware.thermal@1.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 | |||
68 | genrule { | ||
69 | name: "android.hardware.thermal-V1.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.thermal@1.0", | ||
72 | srcs: [ | ||
73 | ":android.hardware.thermal@1.0_hal", | ||
74 | ], | ||
75 | out: [ | ||
76 | "android/hardware/thermal/V1_0/CoolingDevice.java", | ||
77 | "android/hardware/thermal/V1_0/CoolingType.java", | ||
78 | "android/hardware/thermal/V1_0/CpuUsage.java", | ||
79 | "android/hardware/thermal/V1_0/Temperature.java", | ||
80 | "android/hardware/thermal/V1_0/TemperatureType.java", | ||
81 | "android/hardware/thermal/V1_0/ThermalStatus.java", | ||
82 | "android/hardware/thermal/V1_0/ThermalStatusCode.java", | ||
83 | "android/hardware/thermal/V1_0/IThermal.java", | ||
84 | ], | ||
85 | } | ||
86 | |||
87 | java_library { | ||
88 | name: "android.hardware.thermal-V1.0-java", | ||
89 | no_framework_libs: true, | ||
90 | defaults: ["hidl-java-module-defaults"], | ||
91 | srcs: [":android.hardware.thermal-V1.0-java_gen_java"], | ||
92 | libs: [ | ||
93 | "hwbinder", | ||
94 | "android.hidl.base-V1.0-java", | ||
95 | ] | ||
96 | } | ||
97 | |||
98 | genrule { | ||
99 | name: "android.hardware.thermal-V1.0-java-constants_gen_java", | ||
100 | tools: ["hidl-gen"], | ||
101 | cmd: "$(location hidl-gen) -o $(genDir) -Ljava-constants -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.0", | ||
102 | srcs: [ | ||
103 | ":android.hardware.thermal@1.0_hal", | ||
104 | ], | ||
105 | out: [ | ||
106 | "android/hardware/thermal/V1_0/Constants.java", | ||
107 | ], | ||
108 | } | ||
109 | |||
110 | java_library { | ||
111 | name: "android.hardware.thermal-V1.0-java-constants", | ||
112 | no_framework_libs: true, | ||
113 | defaults: ["hidl-java-module-defaults"], | ||
114 | srcs: [":android.hardware.thermal-V1.0-java-constants_gen_java"], | ||
115 | } | ||
116 | |||
117 | genrule { | ||
118 | name: "android.hardware.thermal@1.0-adapter-helper_genc++", | ||
119 | tools: ["hidl-gen"], | ||
120 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.0", | ||
121 | srcs: [ | ||
122 | ":android.hardware.thermal@1.0_hal", | ||
123 | ], | ||
124 | out: [ | ||
125 | "android/hardware/thermal/1.0/AThermal.cpp", | ||
126 | ], | ||
127 | } | ||
128 | |||
129 | genrule { | ||
130 | name: "android.hardware.thermal@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.thermal@1.0", | ||
133 | srcs: [ | 9 | srcs: [ |
134 | ":android.hardware.thermal@1.0_hal", | 10 | "types.hal", |
135 | ], | 11 | "IThermal.hal", |
136 | out: [ | ||
137 | "android/hardware/thermal/1.0/AThermal.h", | ||
138 | ], | 12 | ], |
139 | } | 13 | interfaces: [ |
140 | 14 | "android.hidl.base@1.0", | |
141 | cc_library { | ||
142 | name: "android.hardware.thermal@1.0-adapter-helper", | ||
143 | defaults: ["hidl-module-defaults"], | ||
144 | generated_sources: ["android.hardware.thermal@1.0-adapter-helper_genc++"], | ||
145 | generated_headers: ["android.hardware.thermal@1.0-adapter-helper_genc++_headers"], | ||
146 | export_generated_headers: ["android.hardware.thermal@1.0-adapter-helper_genc++_headers"], | ||
147 | vendor_available: true, | ||
148 | shared_libs: [ | ||
149 | "libhidlbase", | ||
150 | "libhidltransport", | ||
151 | "libhwbinder", | ||
152 | "liblog", | ||
153 | "libutils", | ||
154 | "libcutils", | ||
155 | "libhidladapter", | ||
156 | "android.hardware.thermal@1.0", | ||
157 | "android.hidl.base@1.0-adapter-helper", | ||
158 | ], | 15 | ], |
159 | export_shared_lib_headers: [ | 16 | types: [ |
160 | "libhidlbase", | 17 | "CoolingDevice", |
161 | "libhidltransport", | 18 | "CoolingType", |
162 | "libhwbinder", | 19 | "CpuUsage", |
163 | "libutils", | 20 | "Temperature", |
164 | "libhidladapter", | 21 | "TemperatureType", |
165 | "android.hardware.thermal@1.0", | 22 | "ThermalStatus", |
166 | "android.hidl.base@1.0-adapter-helper", | 23 | "ThermalStatusCode", |
167 | ], | 24 | ], |
25 | gen_java: true, | ||
26 | gen_java_constants: true, | ||
168 | } | 27 | } |
169 | 28 | ||
170 | genrule { | ||
171 | name: "android.hardware.thermal@1.0-adapter_genc++", | ||
172 | tools: ["hidl-gen"], | ||
173 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.0", | ||
174 | out: ["main.cpp"] | ||
175 | } | ||
176 | |||
177 | cc_test { | ||
178 | name: "android.hardware.thermal@1.0-adapter", | ||
179 | defaults: ["hidl-module-defaults"], | ||
180 | shared_libs: [ | ||
181 | "libhidladapter", | ||
182 | "libhidlbase", | ||
183 | "libhidltransport", | ||
184 | "libutils", | ||
185 | "android.hardware.thermal@1.0", | ||
186 | "android.hardware.thermal@1.0-adapter-helper", | ||
187 | ], | ||
188 | generated_sources: ["android.hardware.thermal@1.0-adapter_genc++"], | ||
189 | } | ||