Alistair Delva | a428139 | 2020-07-21 10:36:47 -0700 | [diff] [blame] | 1 | // |
| 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 Badour | f777564 | 2021-02-12 14:50:38 -0800 | [diff] [blame] | 17 | package { |
| 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 |
| 35 | license { |
| 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 Delva | 3189a09 | 2020-08-28 13:39:15 -0700 | [diff] [blame] | 48 | cc_library { |
Alistair Delva | a428139 | 2020-07-21 10:36:47 -0700 | [diff] [blame] | 49 | name: "libepoxy", |
Alistair Delva | 3189a09 | 2020-08-28 13:39:15 -0700 | [diff] [blame] | 50 | host_supported: true, |
Alistair Delva | a428139 | 2020-07-21 10:36:47 -0700 | [diff] [blame] | 51 | 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 Park | 891be28 | 2020-12-07 15:08:47 +0900 | [diff] [blame] | 66 | apex_available: [ |
| 67 | "//apex_available:platform", |
| 68 | "com.android.virt", |
| 69 | ], |
Alistair Delva | a428139 | 2020-07-21 10:36:47 -0700 | [diff] [blame] | 70 | } |