diff options
Diffstat (limited to 'media/omx/1.0')
-rw-r--r-- | media/omx/1.0/Android.bp | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/media/omx/1.0/Android.bp b/media/omx/1.0/Android.bp index f8bed6ed..378c18e1 100644 --- a/media/omx/1.0/Android.bp +++ b/media/omx/1.0/Android.bp | |||
@@ -105,3 +105,98 @@ cc_library { | |||
105 | "android.hardware.media@1.0", | 105 | "android.hardware.media@1.0", |
106 | ], | 106 | ], |
107 | } | 107 | } |
108 | |||
109 | genrule { | ||
110 | name: "android.hardware.media.omx@1.0-adapter-helper_genc++", | ||
111 | tools: ["hidl-gen"], | ||
112 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
113 | srcs: [ | ||
114 | ":android.hardware.media.omx@1.0_hal", | ||
115 | ], | ||
116 | out: [ | ||
117 | "android/hardware/media/omx/1.0/AGraphicBufferSource.cpp", | ||
118 | "android/hardware/media/omx/1.0/AOmx.cpp", | ||
119 | "android/hardware/media/omx/1.0/AOmxBufferSource.cpp", | ||
120 | "android/hardware/media/omx/1.0/AOmxNode.cpp", | ||
121 | "android/hardware/media/omx/1.0/AOmxObserver.cpp", | ||
122 | "android/hardware/media/omx/1.0/AOmxStore.cpp", | ||
123 | ], | ||
124 | } | ||
125 | |||
126 | genrule { | ||
127 | name: "android.hardware.media.omx@1.0-adapter-helper_genc++_headers", | ||
128 | tools: ["hidl-gen"], | ||
129 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
130 | srcs: [ | ||
131 | ":android.hardware.media.omx@1.0_hal", | ||
132 | ], | ||
133 | out: [ | ||
134 | "android/hardware/media/omx/1.0/AGraphicBufferSource.h", | ||
135 | "android/hardware/media/omx/1.0/AOmx.h", | ||
136 | "android/hardware/media/omx/1.0/AOmxBufferSource.h", | ||
137 | "android/hardware/media/omx/1.0/AOmxNode.h", | ||
138 | "android/hardware/media/omx/1.0/AOmxObserver.h", | ||
139 | "android/hardware/media/omx/1.0/AOmxStore.h", | ||
140 | ], | ||
141 | } | ||
142 | |||
143 | |||
144 | cc_library { | ||
145 | name: "android.hardware.media.omx@1.0-adapter-helper", | ||
146 | defaults: ["hidl-module-defaults"], | ||
147 | generated_sources: ["android.hardware.media.omx@1.0-adapter-helper_genc++"], | ||
148 | generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"], | ||
149 | export_generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"], | ||
150 | vendor_available: true, | ||
151 | shared_libs: [ | ||
152 | "libhidlbase", | ||
153 | "libhidltransport", | ||
154 | "libhwbinder", | ||
155 | "liblog", | ||
156 | "libutils", | ||
157 | "libcutils", | ||
158 | "libhidladapter", | ||
159 | "android.hardware.graphics.bufferqueue@1.0", | ||
160 | "android.hardware.graphics.common@1.0", | ||
161 | "android.hardware.media.omx@1.0", | ||
162 | "android.hardware.media@1.0", | ||
163 | "android.hardware.graphics.bufferqueue@1.0-adapter-helper", | ||
164 | "android.hidl.base@1.0-adapter-helper", | ||
165 | ], | ||
166 | export_shared_lib_headers: [ | ||
167 | "libhidlbase", | ||
168 | "libhidltransport", | ||
169 | "libhwbinder", | ||
170 | "libutils", | ||
171 | "libhidladapter", | ||
172 | "android.hardware.graphics.bufferqueue@1.0", | ||
173 | "android.hardware.graphics.common@1.0", | ||
174 | "android.hardware.media.omx@1.0", | ||
175 | "android.hardware.media@1.0", | ||
176 | "android.hardware.graphics.bufferqueue@1.0-adapter-helper", | ||
177 | "android.hidl.base@1.0-adapter-helper", | ||
178 | ], | ||
179 | } | ||
180 | |||
181 | genrule { | ||
182 | name: "android.hardware.media.omx@1.0-adapter_genc++", | ||
183 | tools: ["hidl-gen"], | ||
184 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0", | ||
185 | out: ["main.cpp"] | ||
186 | } | ||
187 | |||
188 | cc_test { | ||
189 | name: "android.hardware.media.omx@1.0-adapter", | ||
190 | shared_libs: [ | ||
191 | "libhidladapter", | ||
192 | "libhidlbase", | ||
193 | "libhidltransport", | ||
194 | "libutils", | ||
195 | "android.hardware.graphics.bufferqueue@1.0", | ||
196 | "android.hardware.graphics.common@1.0", | ||
197 | "android.hardware.media.omx@1.0", | ||
198 | "android.hardware.media@1.0", | ||
199 | "android.hardware.media.omx@1.0-adapter-helper", | ||
200 | ], | ||
201 | generated_sources: ["android.hardware.media.omx@1.0-adapter_genc++"], | ||
202 | } | ||