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 /boot | |
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 'boot')
-rw-r--r-- | boot/1.0/Android.bp | 168 |
1 files changed, 11 insertions, 157 deletions
diff --git a/boot/1.0/Android.bp b/boot/1.0/Android.bp index 98db2abc..85c3b613 100644 --- a/boot/1.0/Android.bp +++ b/boot/1.0/Android.bp | |||
@@ -1,168 +1,22 @@ | |||
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.boot@1.0_hal", | ||
5 | srcs: [ | ||
6 | "types.hal", | ||
7 | "IBootControl.hal", | ||
8 | ], | ||
9 | } | ||
10 | |||
11 | genrule { | ||
12 | name: "android.hardware.boot@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.boot@1.0", | ||
15 | srcs: [ | ||
16 | ":android.hardware.boot@1.0_hal", | ||
17 | ], | ||
18 | out: [ | ||
19 | "android/hardware/boot/1.0/types.cpp", | ||
20 | "android/hardware/boot/1.0/BootControlAll.cpp", | ||
21 | ], | ||
22 | } | ||
23 | |||
24 | genrule { | ||
25 | name: "android.hardware.boot@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.boot@1.0", | ||
28 | srcs: [ | ||
29 | ":android.hardware.boot@1.0_hal", | ||
30 | ], | ||
31 | out: [ | ||
32 | "android/hardware/boot/1.0/types.h", | ||
33 | "android/hardware/boot/1.0/hwtypes.h", | ||
34 | "android/hardware/boot/1.0/IBootControl.h", | ||
35 | "android/hardware/boot/1.0/IHwBootControl.h", | ||
36 | "android/hardware/boot/1.0/BnHwBootControl.h", | ||
37 | "android/hardware/boot/1.0/BpHwBootControl.h", | ||
38 | "android/hardware/boot/1.0/BsBootControl.h", | ||
39 | ], | ||
40 | } | ||
41 | |||
42 | cc_library { | ||
43 | name: "android.hardware.boot@1.0", | 4 | name: "android.hardware.boot@1.0", |
44 | defaults: ["hidl-module-defaults"], | 5 | root: "android.hardware", |
45 | generated_sources: ["android.hardware.boot@1.0_genc++"], | ||
46 | generated_headers: ["android.hardware.boot@1.0_genc++_headers"], | ||
47 | export_generated_headers: ["android.hardware.boot@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.boot-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.boot@1.0", | ||
72 | srcs: [ | 9 | srcs: [ |
73 | ":android.hardware.boot@1.0_hal", | 10 | "types.hal", |
74 | ], | 11 | "IBootControl.hal", |
75 | out: [ | ||
76 | "android/hardware/boot/V1_0/BoolResult.java", | ||
77 | "android/hardware/boot/V1_0/CommandResult.java", | ||
78 | "android/hardware/boot/V1_0/IBootControl.java", | ||
79 | ], | ||
80 | } | ||
81 | |||
82 | java_library { | ||
83 | name: "android.hardware.boot-V1.0-java", | ||
84 | no_framework_libs: true, | ||
85 | defaults: ["hidl-java-module-defaults"], | ||
86 | srcs: [":android.hardware.boot-V1.0-java_gen_java"], | ||
87 | libs: [ | ||
88 | "hwbinder", | ||
89 | "android.hidl.base-V1.0-java", | ||
90 | ] | ||
91 | } | ||
92 | |||
93 | // This package does not export any types. Not creating java constants export. | ||
94 | |||
95 | |||
96 | genrule { | ||
97 | name: "android.hardware.boot@1.0-adapter-helper_genc++", | ||
98 | tools: ["hidl-gen"], | ||
99 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0", | ||
100 | srcs: [ | ||
101 | ":android.hardware.boot@1.0_hal", | ||
102 | ], | ||
103 | out: [ | ||
104 | "android/hardware/boot/1.0/ABootControl.cpp", | ||
105 | ], | ||
106 | } | ||
107 | |||
108 | genrule { | ||
109 | name: "android.hardware.boot@1.0-adapter-helper_genc++_headers", | ||
110 | tools: ["hidl-gen"], | ||
111 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0", | ||
112 | srcs: [ | ||
113 | ":android.hardware.boot@1.0_hal", | ||
114 | ], | ||
115 | out: [ | ||
116 | "android/hardware/boot/1.0/ABootControl.h", | ||
117 | ], | 12 | ], |
118 | } | 13 | interfaces: [ |
119 | 14 | "android.hidl.base@1.0", | |
120 | cc_library { | ||
121 | name: "android.hardware.boot@1.0-adapter-helper", | ||
122 | defaults: ["hidl-module-defaults"], | ||
123 | generated_sources: ["android.hardware.boot@1.0-adapter-helper_genc++"], | ||
124 | generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"], | ||
125 | export_generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"], | ||
126 | vendor_available: true, | ||
127 | shared_libs: [ | ||
128 | "libhidlbase", | ||
129 | "libhidltransport", | ||
130 | "libhwbinder", | ||
131 | "liblog", | ||
132 | "libutils", | ||
133 | "libcutils", | ||
134 | "libhidladapter", | ||
135 | "android.hardware.boot@1.0", | ||
136 | "android.hidl.base@1.0-adapter-helper", | ||
137 | ], | 15 | ], |
138 | export_shared_lib_headers: [ | 16 | types: [ |
139 | "libhidlbase", | 17 | "BoolResult", |
140 | "libhidltransport", | 18 | "CommandResult", |
141 | "libhwbinder", | ||
142 | "libutils", | ||
143 | "libhidladapter", | ||
144 | "android.hardware.boot@1.0", | ||
145 | "android.hidl.base@1.0-adapter-helper", | ||
146 | ], | 19 | ], |
20 | gen_java: true, | ||
147 | } | 21 | } |
148 | 22 | ||
149 | genrule { | ||
150 | name: "android.hardware.boot@1.0-adapter_genc++", | ||
151 | tools: ["hidl-gen"], | ||
152 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0", | ||
153 | out: ["main.cpp"] | ||
154 | } | ||
155 | |||
156 | cc_test { | ||
157 | name: "android.hardware.boot@1.0-adapter", | ||
158 | defaults: ["hidl-module-defaults"], | ||
159 | shared_libs: [ | ||
160 | "libhidladapter", | ||
161 | "libhidlbase", | ||
162 | "libhidltransport", | ||
163 | "libutils", | ||
164 | "android.hardware.boot@1.0", | ||
165 | "android.hardware.boot@1.0-adapter-helper", | ||
166 | ], | ||
167 | generated_sources: ["android.hardware.boot@1.0-adapter_genc++"], | ||
168 | } | ||