xref: /aosp_15_r20/frameworks/native/opengl/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1*38e8c45fSAndroid Build Coastguard Worker// Copyright (C) 2016 The Android Open Source Project
2*38e8c45fSAndroid Build Coastguard Worker//
3*38e8c45fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*38e8c45fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*38e8c45fSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*38e8c45fSAndroid Build Coastguard Worker//
7*38e8c45fSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*38e8c45fSAndroid Build Coastguard Worker//
9*38e8c45fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*38e8c45fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*38e8c45fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*38e8c45fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*38e8c45fSAndroid Build Coastguard Worker// limitations under the License.
14*38e8c45fSAndroid Build Coastguard Worker
15*38e8c45fSAndroid Build Coastguard Workerpackage {
16*38e8c45fSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
17*38e8c45fSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
18*38e8c45fSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "frameworks_native_license"
19*38e8c45fSAndroid Build Coastguard Worker    // to get the below license kinds:
20*38e8c45fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
21*38e8c45fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-BSD
22*38e8c45fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-MIT
23*38e8c45fSAndroid Build Coastguard Worker    //   legacy_notice
24*38e8c45fSAndroid Build Coastguard Worker    default_applicable_licenses: ["frameworks_native_license"],
25*38e8c45fSAndroid Build Coastguard Worker}
26*38e8c45fSAndroid Build Coastguard Worker
27*38e8c45fSAndroid Build Coastguard Workerndk_headers {
28*38e8c45fSAndroid Build Coastguard Worker    name: "libEGL_headers",
29*38e8c45fSAndroid Build Coastguard Worker    from: "include",
30*38e8c45fSAndroid Build Coastguard Worker    to: "",
31*38e8c45fSAndroid Build Coastguard Worker    srcs: ["include/EGL/**/*.h"],
32*38e8c45fSAndroid Build Coastguard Worker    license: "include/EGL/NOTICE",
33*38e8c45fSAndroid Build Coastguard Worker    // eglext.h is not self-contained. Safe to skip C-compat verification
34*38e8c45fSAndroid Build Coastguard Worker    // though since upstream also cares about C compatibility, and the header is
35*38e8c45fSAndroid Build Coastguard Worker    // auto-generated anyway.
36*38e8c45fSAndroid Build Coastguard Worker    skip_verification: true,
37*38e8c45fSAndroid Build Coastguard Worker}
38*38e8c45fSAndroid Build Coastguard Worker
39*38e8c45fSAndroid Build Coastguard Workerndk_headers {
40*38e8c45fSAndroid Build Coastguard Worker    name: "libGLESv1_CM_headers",
41*38e8c45fSAndroid Build Coastguard Worker    from: "include",
42*38e8c45fSAndroid Build Coastguard Worker    to: "",
43*38e8c45fSAndroid Build Coastguard Worker    srcs: ["include/GLES/**/*.h"],
44*38e8c45fSAndroid Build Coastguard Worker    license: "include/GLES/NOTICE",
45*38e8c45fSAndroid Build Coastguard Worker    // glext.h is not self-contained. Safe to skip C-compat verification
46*38e8c45fSAndroid Build Coastguard Worker    // though since upstream also cares about C compatibility, and the header is
47*38e8c45fSAndroid Build Coastguard Worker    // auto-generated anyway.
48*38e8c45fSAndroid Build Coastguard Worker    skip_verification: true,
49*38e8c45fSAndroid Build Coastguard Worker}
50*38e8c45fSAndroid Build Coastguard Worker
51*38e8c45fSAndroid Build Coastguard Workerndk_headers {
52*38e8c45fSAndroid Build Coastguard Worker    name: "libGLESv2_headers",
53*38e8c45fSAndroid Build Coastguard Worker    from: "include",
54*38e8c45fSAndroid Build Coastguard Worker    to: "",
55*38e8c45fSAndroid Build Coastguard Worker    srcs: ["include/GLES2/**/*.h"],
56*38e8c45fSAndroid Build Coastguard Worker    license: "include/GLES2/NOTICE",
57*38e8c45fSAndroid Build Coastguard Worker    // gl2ext.h is not self-contained. Safe to skip C-compat verification
58*38e8c45fSAndroid Build Coastguard Worker    // though since upstream also cares about C compatibility, and the header is
59*38e8c45fSAndroid Build Coastguard Worker    // auto-generated anyway.
60*38e8c45fSAndroid Build Coastguard Worker    skip_verification: true,
61*38e8c45fSAndroid Build Coastguard Worker}
62*38e8c45fSAndroid Build Coastguard Worker
63*38e8c45fSAndroid Build Coastguard Workerndk_headers {
64*38e8c45fSAndroid Build Coastguard Worker    name: "libGLESv3_headers",
65*38e8c45fSAndroid Build Coastguard Worker    from: "include",
66*38e8c45fSAndroid Build Coastguard Worker    to: "",
67*38e8c45fSAndroid Build Coastguard Worker    srcs: ["include/GLES3/**/*.h"],
68*38e8c45fSAndroid Build Coastguard Worker    license: "include/GLES3/NOTICE",
69*38e8c45fSAndroid Build Coastguard Worker}
70*38e8c45fSAndroid Build Coastguard Worker
71*38e8c45fSAndroid Build Coastguard Workerndk_headers {
72*38e8c45fSAndroid Build Coastguard Worker    name: "khr_headers",
73*38e8c45fSAndroid Build Coastguard Worker    from: "include",
74*38e8c45fSAndroid Build Coastguard Worker    to: "",
75*38e8c45fSAndroid Build Coastguard Worker    srcs: ["include/KHR/**/*.h"],
76*38e8c45fSAndroid Build Coastguard Worker    license: "include/KHR/NOTICE",
77*38e8c45fSAndroid Build Coastguard Worker}
78*38e8c45fSAndroid Build Coastguard Worker
79*38e8c45fSAndroid Build Coastguard Workercc_library_headers {
80*38e8c45fSAndroid Build Coastguard Worker    name: "gl_headers",
81*38e8c45fSAndroid Build Coastguard Worker    host_supported: true,
82*38e8c45fSAndroid Build Coastguard Worker    vendor_available: true,
83*38e8c45fSAndroid Build Coastguard Worker    export_include_dirs: ["include"],
84*38e8c45fSAndroid Build Coastguard Worker    llndk: {
85*38e8c45fSAndroid Build Coastguard Worker        llndk_headers: true,
86*38e8c45fSAndroid Build Coastguard Worker    },
87*38e8c45fSAndroid Build Coastguard Worker    apex_available: [
88*38e8c45fSAndroid Build Coastguard Worker        "//apex_available:platform",
89*38e8c45fSAndroid Build Coastguard Worker        "com.android.virt",
90*38e8c45fSAndroid Build Coastguard Worker    ],
91*38e8c45fSAndroid Build Coastguard Worker}
92*38e8c45fSAndroid Build Coastguard Worker
93*38e8c45fSAndroid Build Coastguard Workersubdirs = [
94*38e8c45fSAndroid Build Coastguard Worker    "*",
95*38e8c45fSAndroid Build Coastguard Worker]
96