summaryrefslogtreecommitdiffstats
path: root/ir
diff options
context:
space:
mode:
authorSteven Moreland2017-11-09 21:05:17 -0600
committerSteven Moreland2017-11-10 11:06:55 -0600
commita1169dd600091cc9a451b91e7b4573dc1d9049b3 (patch)
treee7b60403dc8cb464f2d9f9782c8bf06262e6bf74 /ir
parent771dff2a2d014df7118263d2c0a8cc8522cf480c (diff)
downloadplatform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.tar.gz
platform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.tar.xz
platform-hardware-interfaces-a1169dd600091cc9a451b91e7b4573dc1d9049b3.zip
Update makefiles for hidl_interface.
Bug: 35570956 Test: manual Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
Diffstat (limited to 'ir')
-rw-r--r--ir/1.0/Android.bp166
1 files changed, 10 insertions, 156 deletions
diff --git a/ir/1.0/Android.bp b/ir/1.0/Android.bp
index f5c93da7..272acb38 100644
--- a/ir/1.0/Android.bp
+++ b/ir/1.0/Android.bp
@@ -1,167 +1,21 @@
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.ir@1.0_hal",
5 srcs: [
6 "types.hal",
7 "IConsumerIr.hal",
8 ],
9}
10
11genrule {
12 name: "android.hardware.ir@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.ir@1.0",
15 srcs: [
16 ":android.hardware.ir@1.0_hal",
17 ],
18 out: [
19 "android/hardware/ir/1.0/types.cpp",
20 "android/hardware/ir/1.0/ConsumerIrAll.cpp",
21 ],
22}
23
24genrule {
25 name: "android.hardware.ir@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.ir@1.0",
28 srcs: [
29 ":android.hardware.ir@1.0_hal",
30 ],
31 out: [
32 "android/hardware/ir/1.0/types.h",
33 "android/hardware/ir/1.0/hwtypes.h",
34 "android/hardware/ir/1.0/IConsumerIr.h",
35 "android/hardware/ir/1.0/IHwConsumerIr.h",
36 "android/hardware/ir/1.0/BnHwConsumerIr.h",
37 "android/hardware/ir/1.0/BpHwConsumerIr.h",
38 "android/hardware/ir/1.0/BsConsumerIr.h",
39 ],
40}
41
42cc_library {
43 name: "android.hardware.ir@1.0", 4 name: "android.hardware.ir@1.0",
44 defaults: ["hidl-module-defaults"], 5 root: "android.hardware",
45 generated_sources: ["android.hardware.ir@1.0_genc++"],
46 generated_headers: ["android.hardware.ir@1.0_genc++_headers"],
47 export_generated_headers: ["android.hardware.ir@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
68genrule {
69 name: "android.hardware.ir-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.ir@1.0",
72 srcs: [ 9 srcs: [
73 ":android.hardware.ir@1.0_hal", 10 "types.hal",
74 ], 11 "IConsumerIr.hal",
75 out: [
76 "android/hardware/ir/V1_0/ConsumerIrFreqRange.java",
77 "android/hardware/ir/V1_0/IConsumerIr.java",
78 ],
79}
80
81java_library {
82 name: "android.hardware.ir-V1.0-java",
83 no_framework_libs: true,
84 defaults: ["hidl-java-module-defaults"],
85 srcs: [":android.hardware.ir-V1.0-java_gen_java"],
86 libs: [
87 "hwbinder",
88 "android.hidl.base-V1.0-java",
89 ]
90}
91
92// This package does not export any types. Not creating java constants export.
93
94
95genrule {
96 name: "android.hardware.ir@1.0-adapter-helper_genc++",
97 tools: ["hidl-gen"],
98 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
99 srcs: [
100 ":android.hardware.ir@1.0_hal",
101 ],
102 out: [
103 "android/hardware/ir/1.0/AConsumerIr.cpp",
104 ],
105}
106
107genrule {
108 name: "android.hardware.ir@1.0-adapter-helper_genc++_headers",
109 tools: ["hidl-gen"],
110 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
111 srcs: [
112 ":android.hardware.ir@1.0_hal",
113 ],
114 out: [
115 "android/hardware/ir/1.0/AConsumerIr.h",
116 ], 12 ],
117} 13 interfaces: [
118 14 "android.hidl.base@1.0",
119cc_library {
120 name: "android.hardware.ir@1.0-adapter-helper",
121 defaults: ["hidl-module-defaults"],
122 generated_sources: ["android.hardware.ir@1.0-adapter-helper_genc++"],
123 generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
124 export_generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
125 vendor_available: true,
126 shared_libs: [
127 "libhidlbase",
128 "libhidltransport",
129 "libhwbinder",
130 "liblog",
131 "libutils",
132 "libcutils",
133 "libhidladapter",
134 "android.hardware.ir@1.0",
135 "android.hidl.base@1.0-adapter-helper",
136 ], 15 ],
137 export_shared_lib_headers: [ 16 types: [
138 "libhidlbase", 17 "ConsumerIrFreqRange",
139 "libhidltransport",
140 "libhwbinder",
141 "libutils",
142 "libhidladapter",
143 "android.hardware.ir@1.0",
144 "android.hidl.base@1.0-adapter-helper",
145 ], 18 ],
19 gen_java: true,
146} 20}
147 21
148genrule {
149 name: "android.hardware.ir@1.0-adapter_genc++",
150 tools: ["hidl-gen"],
151 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
152 out: ["main.cpp"]
153}
154
155cc_test {
156 name: "android.hardware.ir@1.0-adapter",
157 defaults: ["hidl-module-defaults"],
158 shared_libs: [
159 "libhidladapter",
160 "libhidlbase",
161 "libhidltransport",
162 "libutils",
163 "android.hardware.ir@1.0",
164 "android.hardware.ir@1.0-adapter-helper",
165 ],
166 generated_sources: ["android.hardware.ir@1.0-adapter_genc++"],
167}