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