blob: 37dc9314e2f0ad6cacfd4b8eecc53572702384e4 [file] [log] [blame]
Dan Albert49fbff42016-10-03 12:36:00 -07001// Copyright (C) 2016 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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 // SPDX-license-identifier-BSD
22 // SPDX-license-identifier-MIT
23 // legacy_notice
24 default_applicable_licenses: ["frameworks_native_license"],
25}
26
Dan Albert49fbff42016-10-03 12:36:00 -070027ndk_headers {
28 name: "libEGL_headers",
29 from: "include",
30 to: "",
31 srcs: ["include/EGL/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070032 license: "include/EGL/NOTICE",
Dan Albert965818a2024-08-13 22:01:23 +000033 // eglext.h is not self-contained. Safe to skip C-compat verification
34 // though since upstream also cares about C compatibility, and the header is
35 // auto-generated anyway.
36 skip_verification: true,
Dan Albert49fbff42016-10-03 12:36:00 -070037}
38
Dan Albert7facb1d2016-10-03 12:36:00 -070039ndk_headers {
40 name: "libGLESv1_CM_headers",
41 from: "include",
42 to: "",
43 srcs: ["include/GLES/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070044 license: "include/GLES/NOTICE",
Dan Albert965818a2024-08-13 22:01:23 +000045 // glext.h is not self-contained. Safe to skip C-compat verification
46 // though since upstream also cares about C compatibility, and the header is
47 // auto-generated anyway.
48 skip_verification: true,
Dan Albert7facb1d2016-10-03 12:36:00 -070049}
50
Dan Albert00500c72016-10-03 12:36:00 -070051ndk_headers {
52 name: "libGLESv2_headers",
53 from: "include",
54 to: "",
55 srcs: ["include/GLES2/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070056 license: "include/GLES2/NOTICE",
Dan Albert965818a2024-08-13 22:01:23 +000057 // gl2ext.h is not self-contained. Safe to skip C-compat verification
58 // though since upstream also cares about C compatibility, and the header is
59 // auto-generated anyway.
60 skip_verification: true,
Dan Albert00500c72016-10-03 12:36:00 -070061}
62
Dan Albertd7d8efa2016-10-03 12:36:00 -070063ndk_headers {
64 name: "libGLESv3_headers",
65 from: "include",
66 to: "",
67 srcs: ["include/GLES3/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070068 license: "include/GLES3/NOTICE",
Dan Albertd7d8efa2016-10-03 12:36:00 -070069}
70
Dan Albertc4390882016-10-04 17:49:33 -070071ndk_headers {
72 name: "khr_headers",
73 from: "include",
74 to: "",
75 srcs: ["include/KHR/**/*.h"],
Dan Albert96b55092016-10-20 10:14:30 -070076 license: "include/KHR/NOTICE",
Dan Albertc4390882016-10-04 17:49:33 -070077}
78
Jiyong Park5309d7d2017-06-21 12:26:51 +090079cc_library_headers {
80 name: "gl_headers",
Jason Macnak68316cf2021-05-24 11:00:01 -070081 host_supported: true,
Jiyong Park5309d7d2017-06-21 12:26:51 +090082 vendor_available: true,
83 export_include_dirs: ["include"],
Colin Crossed0e6e62021-04-26 17:19:59 -070084 llndk: {
85 llndk_headers: true,
86 },
Arve Hjønnevågc658ffa2023-11-08 16:17:47 -080087 apex_available: [
88 "//apex_available:platform",
89 "com.android.virt",
90 ],
Colin Cross88fd5242020-12-17 10:31:34 -080091}
92
Dan Albert49fbff42016-10-03 12:36:00 -070093subdirs = [
94 "*",
95]