• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 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
16// Core dependencies
17
18package {
19    default_applicable_licenses: ["device_ti_beagle_x15_gpu_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35// See: http://go/android-license-faq
36license {
37    name: "device_ti_beagle_x15_gpu_license",
38    visibility: [":__subpackages__"],
39    license_kinds: [
40        "SPDX-license-identifier-BSD",
41        "SPDX-license-identifier-MIT",
42    ],
43    license_text: [
44        "NOTICE",
45    ],
46}
47
48cc_prebuilt_library_shared {
49    name: "libIMGegl",
50    srcs: ["libIMGegl.so"],
51    shared_libs: ["libc", "libhardware", "libsrv_um"],
52    required: ["libpvrANDROID_WSEGL"],
53    strip: { none: true, },
54    vendor: true,
55    allow_undefined_symbols: true,  // LIBC_PRIVATE
56}
57
58cc_prebuilt_library_shared {
59    name: "libglslcompiler",
60    srcs: ["libglslcompiler.so"],
61    shared_libs: ["libc", "libm", "libsrv_um", "libusc"],
62    strip: { none: true, },
63    vendor: true,
64    allow_undefined_symbols: true,  // LIBC_PRIVATE
65}
66
67cc_prebuilt_library_shared {
68    name: "libpvr2d",
69    srcs: ["libpvr2d.so"],
70    shared_libs: ["libc", "libsrv_um"],
71    strip: { none: true, },
72    vendor: true,
73    allow_undefined_symbols: true,  // LIBC_PRIVATE
74}
75
76cc_prebuilt_library_shared {
77    name: "libpvrANDROID_WSEGL",
78    srcs: ["libpvrANDROID_WSEGL.so"],
79    shared_libs: ["libc", "libcutils", "libhardware", "libsrv_um", "libsync"],
80    strip: { none: true, },
81    vendor: true,
82    allow_undefined_symbols: true,  // LIBC_PRIVATE
83}
84
85cc_prebuilt_library_shared {
86    name: "libsrv_init",
87    srcs: ["libsrv_init.so"],
88    shared_libs: ["libc", "libsrv_um"],
89    strip: { none: true, },
90    vendor: true,
91    allow_undefined_symbols: true,  // LIBC_PRIVATE
92}
93
94cc_prebuilt_library_shared {
95    name: "libsrv_um",
96    srcs: ["libsrv_um.so"],
97    shared_libs: ["libc", "libdl", "libhardware", "liblog"],
98    strip: { none: true, },
99    vendor: true,
100    allow_undefined_symbols: true,  // LIBC_PRIVATE
101}
102
103cc_prebuilt_library_shared {
104    name: "libusc",
105    srcs: ["libusc.so"],
106    shared_libs: ["libc"],
107    strip: { none: true, },
108    vendor: true,
109    allow_undefined_symbols: true,  // LIBC_PRIVATE
110}
111
112// Pulled in as-needed
113
114cc_prebuilt_library_shared {
115    name: "gralloc.am57x",
116    srcs: ["gralloc.am57x.so"],
117    shared_libs: ["libc", "libcutils", "libdl", "libdrm_omap", "liblog", "libpvr2d", "libsrv_um", "libsync"],
118    relative_install_path: "hw",
119    strip: { none: true, },
120    vendor: true,
121    allow_undefined_symbols: true,  // LIBC_PRIVATE
122}
123
124cc_prebuilt_library_shared {
125    name: "libEGL_POWERVR_SGX544_116",
126    srcs: ["libEGL_POWERVR_SGX544_116.so"],
127    shared_libs: ["libIMGegl", "libc"],
128    relative_install_path: "egl",
129    strip: { none: true, },
130    vendor: true,
131    allow_undefined_symbols: true,  // LIBC_PRIVATE
132}
133
134cc_prebuilt_library_shared {
135    name: "libGLESv1_CM_POWERVR_SGX544_116",
136    srcs: ["libGLESv1_CM_POWERVR_SGX544_116.so"],
137    shared_libs: ["libIMGegl", "libc", "libm", "libsrv_um", "libusc"],
138    relative_install_path: "egl",
139    strip: { none: true, },
140    vendor: true,
141    allow_undefined_symbols: true,  // LIBC_PRIVATE
142}
143
144cc_prebuilt_library_shared {
145    name: "libGLESv2_POWERVR_SGX544_116",
146    srcs: ["libGLESv2_POWERVR_SGX544_116.so"],
147    shared_libs: ["libIMGegl", "libc", "libm", "libsrv_um"],
148    required: ["libglslcompiler"],
149    relative_install_path: "egl",
150    strip: { none: true, },
151    vendor: true,
152    allow_undefined_symbols: true,  // LIBC_PRIVATE
153}
154
155cc_prebuilt_library_shared {
156    name: "libPVRScopeServices",
157    srcs: ["libPVRScopeServices.so"],
158    shared_libs: ["libc++", "libc", "libsrv_um"],
159    strip: { none: true, },
160    vendor: true,
161    allow_undefined_symbols: true,  // LIBC_PRIVATE, _Znaj, _Znwj
162}
163
164cc_prebuilt_library_shared {
165    name: "memtrack.am57x",
166    srcs: ["memtrack.am57x.so"],
167    shared_libs: ["libc", "libhardware", "libm", "libsrv_um"],
168    relative_install_path: "hw",
169    strip: { none: true, },
170    vendor: true,
171    allow_undefined_symbols: true,  // LIBC_PRIVATE
172}
173
174cc_prebuilt_binary {
175    name: "pvrsrvctl",
176    srcs: ["pvrsrvctl"],
177    shared_libs: ["libc", "libsrv_init", "libsrv_um"],
178    strip: { none: true, },
179    vendor: true,
180    allow_undefined_symbols: true,  // LIBC_PRIVATE
181}
182