diff options
author | Steven Moreland | 2017-11-13 11:20:49 -0600 |
---|---|---|
committer | Steven Moreland | 2017-11-13 13:39:07 -0600 |
commit | c2f829a1d2673f91add6bcd536c7d4fe753d0447 (patch) | |
tree | a586e3a4ea66f147f229a6b14a33291fa5182977 /media/omx/1.0 | |
parent | 7c2d2454de95db7429b30a7701581041889bb873 (diff) | |
download | platform-hardware-interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.tar.gz platform-hardware-interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.tar.xz platform-hardware-interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.zip |
Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Diffstat (limited to 'media/omx/1.0')
-rw-r--r-- | media/omx/1.0/Android.bp | 206 |
1 files changed, 16 insertions, 190 deletions
diff --git a/media/omx/1.0/Android.bp b/media/omx/1.0/Android.bp index 9cec144e..89709bdc 100644 --- a/media/omx/1.0/Android.bp +++ b/media/omx/1.0/Android.bp | |||
@@ -1,7 +1,11 @@ | |||
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.media.omx@1.0_hal", | 4 | name: "android.hardware.media.omx@1.0", |
5 | root: "android.hardware", | ||
6 | vndk: { | ||
7 | enabled: true, | ||
8 | }, | ||
5 | srcs: [ | 9 | srcs: [ |
6 | "types.hal", | 10 | "types.hal", |
7 | "IGraphicBufferSource.hal", | 11 | "IGraphicBufferSource.hal", |
@@ -11,197 +15,19 @@ filegroup { | |||
11 | "IOmxObserver.hal", | 15 | "IOmxObserver.hal", |
12 | "IOmxStore.hal", | 16 | "IOmxStore.hal", |
13 | ], | 17 | ], |
14 | } | 18 | interfaces: [ |
15 | |||
16 | genrule { | ||
17 | name: "android.hardware.media.omx@1.0_genc++", | ||
18 | tools: ["hidl-gen"], | ||
19 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
20 | srcs: [ | ||
21 | ":android.hardware.media.omx@1.0_hal", | ||
22 | ], | ||
23 | out: [ | ||
24 | "android/hardware/media/omx/1.0/types.cpp", | ||
25 | "android/hardware/media/omx/1.0/GraphicBufferSourceAll.cpp", | ||
26 | "android/hardware/media/omx/1.0/OmxAll.cpp", | ||
27 | "android/hardware/media/omx/1.0/OmxBufferSourceAll.cpp", | ||
28 | "android/hardware/media/omx/1.0/OmxNodeAll.cpp", | ||
29 | "android/hardware/media/omx/1.0/OmxObserverAll.cpp", | ||
30 | "android/hardware/media/omx/1.0/OmxStoreAll.cpp", | ||
31 | ], | ||
32 | } | ||
33 | |||
34 | genrule { | ||
35 | name: "android.hardware.media.omx@1.0_genc++_headers", | ||
36 | tools: ["hidl-gen"], | ||
37 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
38 | srcs: [ | ||
39 | ":android.hardware.media.omx@1.0_hal", | ||
40 | ], | ||
41 | out: [ | ||
42 | "android/hardware/media/omx/1.0/types.h", | ||
43 | "android/hardware/media/omx/1.0/hwtypes.h", | ||
44 | "android/hardware/media/omx/1.0/IGraphicBufferSource.h", | ||
45 | "android/hardware/media/omx/1.0/IHwGraphicBufferSource.h", | ||
46 | "android/hardware/media/omx/1.0/BnHwGraphicBufferSource.h", | ||
47 | "android/hardware/media/omx/1.0/BpHwGraphicBufferSource.h", | ||
48 | "android/hardware/media/omx/1.0/BsGraphicBufferSource.h", | ||
49 | "android/hardware/media/omx/1.0/IOmx.h", | ||
50 | "android/hardware/media/omx/1.0/IHwOmx.h", | ||
51 | "android/hardware/media/omx/1.0/BnHwOmx.h", | ||
52 | "android/hardware/media/omx/1.0/BpHwOmx.h", | ||
53 | "android/hardware/media/omx/1.0/BsOmx.h", | ||
54 | "android/hardware/media/omx/1.0/IOmxBufferSource.h", | ||
55 | "android/hardware/media/omx/1.0/IHwOmxBufferSource.h", | ||
56 | "android/hardware/media/omx/1.0/BnHwOmxBufferSource.h", | ||
57 | "android/hardware/media/omx/1.0/BpHwOmxBufferSource.h", | ||
58 | "android/hardware/media/omx/1.0/BsOmxBufferSource.h", | ||
59 | "android/hardware/media/omx/1.0/IOmxNode.h", | ||
60 | "android/hardware/media/omx/1.0/IHwOmxNode.h", | ||
61 | "android/hardware/media/omx/1.0/BnHwOmxNode.h", | ||
62 | "android/hardware/media/omx/1.0/BpHwOmxNode.h", | ||
63 | "android/hardware/media/omx/1.0/BsOmxNode.h", | ||
64 | "android/hardware/media/omx/1.0/IOmxObserver.h", | ||
65 | "android/hardware/media/omx/1.0/IHwOmxObserver.h", | ||
66 | "android/hardware/media/omx/1.0/BnHwOmxObserver.h", | ||
67 | "android/hardware/media/omx/1.0/BpHwOmxObserver.h", | ||
68 | "android/hardware/media/omx/1.0/BsOmxObserver.h", | ||
69 | "android/hardware/media/omx/1.0/IOmxStore.h", | ||
70 | "android/hardware/media/omx/1.0/IHwOmxStore.h", | ||
71 | "android/hardware/media/omx/1.0/BnHwOmxStore.h", | ||
72 | "android/hardware/media/omx/1.0/BpHwOmxStore.h", | ||
73 | "android/hardware/media/omx/1.0/BsOmxStore.h", | ||
74 | ], | ||
75 | } | ||
76 | |||
77 | cc_library { | ||
78 | name: "android.hardware.media.omx@1.0", | ||
79 | defaults: ["hidl-module-defaults"], | ||
80 | generated_sources: ["android.hardware.media.omx@1.0_genc++"], | ||
81 | generated_headers: ["android.hardware.media.omx@1.0_genc++_headers"], | ||
82 | export_generated_headers: ["android.hardware.media.omx@1.0_genc++_headers"], | ||
83 | vendor_available: true, | ||
84 | vndk: { | ||
85 | enabled: true, | ||
86 | }, | ||
87 | shared_libs: [ | ||
88 | "libhidlbase", | ||
89 | "libhidltransport", | ||
90 | "libhwbinder", | ||
91 | "liblog", | ||
92 | "libutils", | ||
93 | "libcutils", | ||
94 | "android.hardware.graphics.bufferqueue@1.0", | 19 | "android.hardware.graphics.bufferqueue@1.0", |
95 | "android.hardware.graphics.common@1.0", | 20 | "android.hardware.graphics.common@1.0", |
96 | "android.hardware.media@1.0", | 21 | "android.hardware.media@1.0", |
22 | "android.hidl.base@1.0", | ||
97 | ], | 23 | ], |
98 | export_shared_lib_headers: [ | 24 | types: [ |
99 | "libhidlbase", | 25 | "CodecBuffer", |
100 | "libhidltransport", | 26 | "ColorAspects", |
101 | "libhwbinder", | 27 | "Message", |
102 | "libutils", | 28 | "PortMode", |
103 | "android.hardware.graphics.bufferqueue@1.0", | 29 | "Status", |
104 | "android.hardware.graphics.common@1.0", | ||
105 | "android.hardware.media@1.0", | ||
106 | ], | 30 | ], |
31 | gen_java: false, | ||
107 | } | 32 | } |
108 | 33 | ||
109 | // This package is not java compatible. Not creating java target. | ||
110 | |||
111 | // This package does not export any types. Not creating java constants export. | ||
112 | |||
113 | |||
114 | genrule { | ||
115 | name: "android.hardware.media.omx@1.0-adapter-helper_genc++", | ||
116 | tools: ["hidl-gen"], | ||
117 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
118 | srcs: [ | ||
119 | ":android.hardware.media.omx@1.0_hal", | ||
120 | ], | ||
121 | out: [ | ||
122 | "android/hardware/media/omx/1.0/AGraphicBufferSource.cpp", | ||
123 | "android/hardware/media/omx/1.0/AOmx.cpp", | ||
124 | "android/hardware/media/omx/1.0/AOmxBufferSource.cpp", | ||
125 | "android/hardware/media/omx/1.0/AOmxNode.cpp", | ||
126 | "android/hardware/media/omx/1.0/AOmxObserver.cpp", | ||
127 | "android/hardware/media/omx/1.0/AOmxStore.cpp", | ||
128 | ], | ||
129 | } | ||
130 | |||
131 | genrule { | ||
132 | name: "android.hardware.media.omx@1.0-adapter-helper_genc++_headers", | ||
133 | tools: ["hidl-gen"], | ||
134 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
135 | srcs: [ | ||
136 | ":android.hardware.media.omx@1.0_hal", | ||
137 | ], | ||
138 | out: [ | ||
139 | "android/hardware/media/omx/1.0/AGraphicBufferSource.h", | ||
140 | "android/hardware/media/omx/1.0/AOmx.h", | ||
141 | "android/hardware/media/omx/1.0/AOmxBufferSource.h", | ||
142 | "android/hardware/media/omx/1.0/AOmxNode.h", | ||
143 | "android/hardware/media/omx/1.0/AOmxObserver.h", | ||
144 | "android/hardware/media/omx/1.0/AOmxStore.h", | ||
145 | ], | ||
146 | } | ||
147 | |||
148 | cc_library { | ||
149 | name: "android.hardware.media.omx@1.0-adapter-helper", | ||
150 | defaults: ["hidl-module-defaults"], | ||
151 | generated_sources: ["android.hardware.media.omx@1.0-adapter-helper_genc++"], | ||
152 | generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"], | ||
153 | export_generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"], | ||
154 | vendor_available: true, | ||
155 | shared_libs: [ | ||
156 | "libhidlbase", | ||
157 | "libhidltransport", | ||
158 | "libhwbinder", | ||
159 | "liblog", | ||
160 | "libutils", | ||
161 | "libcutils", | ||
162 | "libhidladapter", | ||
163 | "android.hardware.graphics.bufferqueue@1.0", | ||
164 | "android.hardware.graphics.common@1.0", | ||
165 | "android.hardware.media.omx@1.0", | ||
166 | "android.hardware.media@1.0", | ||
167 | "android.hardware.graphics.bufferqueue@1.0-adapter-helper", | ||
168 | "android.hidl.base@1.0-adapter-helper", | ||
169 | ], | ||
170 | export_shared_lib_headers: [ | ||
171 | "libhidlbase", | ||
172 | "libhidltransport", | ||
173 | "libhwbinder", | ||
174 | "libutils", | ||
175 | "libhidladapter", | ||
176 | "android.hardware.graphics.bufferqueue@1.0", | ||
177 | "android.hardware.graphics.common@1.0", | ||
178 | "android.hardware.media.omx@1.0", | ||
179 | "android.hardware.media@1.0", | ||
180 | "android.hardware.graphics.bufferqueue@1.0-adapter-helper", | ||
181 | "android.hidl.base@1.0-adapter-helper", | ||
182 | ], | ||
183 | } | ||
184 | |||
185 | genrule { | ||
186 | name: "android.hardware.media.omx@1.0-adapter_genc++", | ||
187 | tools: ["hidl-gen"], | ||
188 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
189 | out: ["main.cpp"] | ||
190 | } | ||
191 | |||
192 | cc_test { | ||
193 | name: "android.hardware.media.omx@1.0-adapter", | ||
194 | defaults: ["hidl-module-defaults"], | ||
195 | shared_libs: [ | ||
196 | "libhidladapter", | ||
197 | "libhidlbase", | ||
198 | "libhidltransport", | ||
199 | "libutils", | ||
200 | "android.hardware.graphics.bufferqueue@1.0", | ||
201 | "android.hardware.graphics.common@1.0", | ||
202 | "android.hardware.media.omx@1.0", | ||
203 | "android.hardware.media@1.0", | ||
204 | "android.hardware.media.omx@1.0-adapter-helper", | ||
205 | ], | ||
206 | generated_sources: ["android.hardware.media.omx@1.0-adapter_genc++"], | ||
207 | } | ||