1// 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 15package { 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 27ndk_headers { 28 name: "libEGL_headers", 29 from: "include", 30 to: "", 31 srcs: ["include/EGL/**/*.h"], 32 license: "include/EGL/NOTICE", 33 // 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, 37} 38 39ndk_headers { 40 name: "libGLESv1_CM_headers", 41 from: "include", 42 to: "", 43 srcs: ["include/GLES/**/*.h"], 44 license: "include/GLES/NOTICE", 45 // 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, 49} 50 51ndk_headers { 52 name: "libGLESv2_headers", 53 from: "include", 54 to: "", 55 srcs: ["include/GLES2/**/*.h"], 56 license: "include/GLES2/NOTICE", 57 // 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, 61} 62 63ndk_headers { 64 name: "libGLESv3_headers", 65 from: "include", 66 to: "", 67 srcs: ["include/GLES3/**/*.h"], 68 license: "include/GLES3/NOTICE", 69} 70 71ndk_headers { 72 name: "khr_headers", 73 from: "include", 74 to: "", 75 srcs: ["include/KHR/**/*.h"], 76 license: "include/KHR/NOTICE", 77} 78 79cc_library_headers { 80 name: "gl_headers", 81 host_supported: true, 82 vendor_available: true, 83 export_include_dirs: ["include"], 84 llndk: { 85 llndk_headers: true, 86 }, 87 apex_available: [ 88 "//apex_available:platform", 89 "com.android.virt", 90 ], 91} 92 93subdirs = [ 94 "*", 95] 96