blob: ae89cfeabd7605593a3fb041eb891064a90ee891 [file] [log] [blame]
Alistair Delvaa4281392020-07-21 10:36:47 -07001//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badourf7775642021-02-12 14:50:38 -080017package {
18 default_applicable_licenses: ["external_libepoxy_license"],
19}
20
21// Added automatically by a large-scale-change that took the approach of
22// 'apply every license found to every target'. While this makes sure we respect
23// every license restriction, it may not be entirely correct.
24//
25// e.g. GPL in an MIT project might only apply to the contrib/ directory.
26//
27// Please consider splitting the single license below into multiple licenses,
28// taking care not to lose any license_kind information, and overriding the
29// default license using the 'licenses: [...]' property on targets as needed.
30//
31// For unused files, consider creating a 'fileGroup' with "//visibility:private"
32// to attach the license to, and including a comment whether the files may be
33// used in the current project.
34// See: http://go/android-license-faq
35license {
36 name: "external_libepoxy_license",
37 visibility: [":__subpackages__"],
38 license_kinds: [
39 "SPDX-license-identifier-Apache-2.0",
40 "SPDX-license-identifier-BSD",
41 "SPDX-license-identifier-MIT",
42 ],
43 license_text: [
44 "COPYING",
45 ],
46}
47
Alistair Delva3189a092020-08-28 13:39:15 -070048cc_library {
Alistair Delvaa4281392020-07-21 10:36:47 -070049 name: "libepoxy",
Alistair Delva3189a092020-08-28 13:39:15 -070050 host_supported: true,
Alistair Delvaa4281392020-07-21 10:36:47 -070051 cflags: ["-Wno-unused-parameter"],
52 local_include_dirs: [
53 "prebuilt-intermediates",
54 "src",
55 ],
56 export_include_dirs: [
57 "include",
58 "prebuilt-intermediates/include"
59 ],
60 srcs: [
61 "prebuilt-intermediates/src/egl_generated_dispatch.c",
62 "prebuilt-intermediates/src/gl_generated_dispatch.c",
63 "src/dispatch_common.c",
64 "src/dispatch_egl.c",
65 ],
Jiyong Park891be282020-12-07 15:08:47 +090066 apex_available: [
67 "//apex_available:platform",
68 "com.android.virt",
69 ],
Alistair Delvaa4281392020-07-21 10:36:47 -070070}