1// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
16//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
17//     DEPENDING ON IT IN YOUR PROJECT. ***
18package {
19    default_applicable_licenses: [
20        "device_linaro_poplar_proprietary_hisilicon_license",
21    ],
22}
23
24// Added automatically by a large-scale-change that took the approach of
25// 'apply every license found to every target'. While this makes sure we respect
26// every license restriction, it may not be entirely correct.
27//
28// e.g. GPL in an MIT project might only apply to the contrib/ directory.
29//
30// Please consider splitting the single license below into multiple licenses,
31// taking care not to lose any license_kind information, and overriding the
32// default license using the 'licenses: [...]' property on targets as needed.
33//
34// For unused files, consider creating a 'fileGroup' with "//visibility:private"
35// to attach the license to, and including a comment whether the files may be
36// used in the current project.
37// See: http://go/android-license-faq
38license {
39    name: "device_linaro_poplar_proprietary_hisilicon_license",
40    visibility: [":__subpackages__"],
41    license_kinds: [
42        "legacy_by_exception_only", // by exception only
43        "legacy_proprietary", // by exception only
44    ],
45    license_text: [
46        "LICENSE",
47    ],
48}
49
50cc_prebuilt_library_shared {
51    name: "gralloc.poplar",
52    srcs: ["gralloc.poplar.so"],
53    shared_libs: [
54        "libhardware",
55        "liblog",
56        "libcutils",
57        "libGLESv1_CM",
58        "libion",
59        "libion_ext",
60        "libsync",
61        "libutils",
62        "libc++",
63        "libc",
64        "libm",
65        "libdl",
66    ],
67    compile_multilib: "32",
68    relative_install_path: "hw",
69    vendor: true,
70    strip: {
71        none: true,
72    },
73    allow_undefined_symbols: true,
74}
75
76cc_prebuilt_binary {
77    name: "hiavplayer",
78    srcs: ["hiavplayer"],
79    shared_libs: [
80        "libbinder",
81        "libutils",
82        "liblog",
83        "libhiavplayerservice",
84        "libc++",
85        "libc",
86        "libm",
87        "libdl",
88    ],
89    compile_multilib: "32",
90    vendor: true,
91    strip: {
92        none: true,
93    },
94}
95
96cc_prebuilt_library_shared {
97    name: "hwcomposer.poplar",
98    srcs: ["hwcomposer.poplar.so"],
99    shared_libs: [
100        "liblog",
101        "libEGL",
102        "libhardware",
103        "libhi_gfx2d",
104        "libhi_msp",
105        "libutils",
106        "libcutils",
107        "libGLESv2",
108        "libui",
109        "android.hardware.graphics.allocator@2.0",
110        "libsync",
111        "libc++",
112        "libc",
113        "libm",
114        "libdl",
115    ],
116    compile_multilib: "32",
117    relative_install_path: "hw",
118    vendor: true,
119    strip: {
120        none: true,
121    },
122}
123
124cc_prebuilt_library_shared {
125    name: "libGLES_mali",
126    srcs: ["libGLES_mali.so"],
127    shared_libs: [
128        "android.hardware.graphics.common@1.0",
129        "liblog",
130        "libz",
131        "libc++",
132        "libm",
133        "libc",
134        "libdl",
135    ],
136    compile_multilib: "32",
137    relative_install_path: "egl",
138    vendor: true,
139    strip: {
140        none: true,
141    },
142}
143
144cc_prebuilt_library_shared {
145    name: "libhiavplayer_adp",
146    srcs: ["libhiavplayer_adp.so"],
147    shared_libs: [
148        "libhiavplayer",
149        "libhiavplayerservice",
150        "libbinder",
151        "libutils",
152        "liblog",
153        "libc++",
154        "libc",
155        "libm",
156        "libdl",
157    ],
158    compile_multilib: "32",
159    vendor: true,
160    strip: {
161        none: true,
162    },
163}
164
165cc_prebuilt_library_shared {
166    name: "libhiavplayerservice",
167    srcs: ["libhiavplayerservice.so"],
168    shared_libs: [
169        "libbinder",
170        "libutils",
171        "liblog",
172        "libhiavplayer",
173        "libc++",
174        "libc",
175        "libm",
176        "libdl",
177    ],
178    compile_multilib: "32",
179    vendor: true,
180    strip: {
181        none: true,
182    },
183}
184
185cc_prebuilt_library_shared {
186    name: "libhiavplayer",
187    srcs: ["libhiavplayer.so"],
188    shared_libs: [
189        "libbinder",
190        "libutils",
191        "libhi_msp",
192        "libhi_common",
193        "liblog",
194        "libc++",
195        "libc",
196        "libm",
197        "libdl",
198    ],
199    compile_multilib: "32",
200    vendor: true,
201    strip: {
202        none: true,
203    },
204}
205
206cc_prebuilt_library_shared {
207    name: "libhi_common",
208    srcs: ["libhi_common.so"],
209    shared_libs: [
210        "libcutils",
211        "libutils",
212        "liblog",
213        "libc++",
214        "libc",
215        "libm",
216        "libdl",
217    ],
218    compile_multilib: "32",
219    vendor: true,
220    strip: {
221        none: true,
222    },
223}
224
225cc_prebuilt_library_shared {
226    name: "libhi_gfx2d",
227    srcs: ["libhi_gfx2d.so"],
228    shared_libs: [
229        "libc++",
230        "libc",
231        "libm",
232        "libdl",
233    ],
234    compile_multilib: "32",
235    vendor: true,
236    strip: {
237        none: true,
238    },
239}
240
241cc_prebuilt_library_shared {
242    name: "libhi_msp",
243    srcs: ["libhi_msp.so"],
244    shared_libs: [
245        "libhi_common",
246        "libcutils",
247        "libutils",
248        "liblog",
249        "libc++",
250        "libc",
251        "libm",
252        "libdl",
253    ],
254    compile_multilib: "32",
255    vendor: true,
256    strip: {
257        none: true,
258    },
259}
260
261cc_prebuilt_library_shared {
262    name: "libhi_vfmw",
263    srcs: ["libhi_vfmw.so"],
264    shared_libs: [
265        "libutils",
266        "liblog",
267        "libhi_common",
268        "libhi_msp",
269        "libcutils",
270        "libc++",
271        "libc",
272        "libm",
273        "libdl",
274    ],
275    compile_multilib: "32",
276    vendor: true,
277    strip: {
278        none: true,
279    },
280}
281
282cc_prebuilt_library_shared {
283    name: "libion_ext",
284    srcs: ["libion_ext.so"],
285    shared_libs: [
286        "liblog",
287        "libion",
288        "libc++",
289        "libc",
290        "libm",
291        "libdl",
292    ],
293    compile_multilib: "32",
294    vendor: true,
295    strip: {
296        none: true,
297    },
298}
299
300cc_prebuilt_library_shared {
301    name: "libOMX_Core",
302    srcs: ["libOMX_Core.so"],
303    shared_libs: [
304        "liblog",
305        "libc++",
306        "libc",
307        "libm",
308        "libdl",
309    ],
310    compile_multilib: "32",
311    vendor: true,
312    strip: {
313        none: true,
314    },
315}
316
317cc_prebuilt_library_shared {
318    name: "libOMX.hisi.video.decoder",
319    srcs: ["libOMX.hisi.video.decoder.so"],
320    shared_libs: [
321        "libutils",
322        "liblog",
323        "libhi_common",
324        "libhi_msp",
325        "libcutils",
326        "libhiavplayer_adp",
327        "libc++",
328        "libc",
329        "libm",
330        "libdl",
331    ],
332    compile_multilib: "32",
333    vendor: true,
334    strip: {
335        none: true,
336    },
337}
338
339cc_prebuilt_library_shared {
340    name: "libstagefrighthw",
341    srcs: ["libstagefrighthw.so"],
342    shared_libs: [
343        "libbinder",
344        "libutils",
345        "libcutils",
346        "libui",
347        "libdl",
348        "liblog",
349        "libc++",
350        "libc",
351        "libm",
352    ],
353    compile_multilib: "32",
354    vendor: true,
355    strip: {
356        none: true,
357    },
358}
359
360cc_prebuilt_library_shared {
361    name: "overlay.poplar",
362    srcs: ["overlay.poplar.so"],
363    shared_libs: [
364        "libEGL",
365        "liblog",
366        "libhardware",
367        "libutils",
368        "libcutils",
369        "libsync",
370        "libhidlbase",
371        "libhi_msp",
372        "libui",
373        "libc++",
374        "libc",
375        "libm",
376        "libdl",
377    ],
378    compile_multilib: "32",
379    relative_install_path: "hw",
380    vendor: true,
381    strip: {
382        none: true,
383    },
384}
385