xref: /aosp_15_r20/external/ply/Android.bp (revision 09948d41d6b3b06d4f51351d12c4c470db0bfb8f)
1*09948d41SKrzysztof Kosiński//
2*09948d41SKrzysztof Kosiński// Copyright (C) 2021 The Android Open Source Project
3*09948d41SKrzysztof Kosiński//
4*09948d41SKrzysztof Kosiński// Licensed under the Apache License, Version 2.0 (the "License");
5*09948d41SKrzysztof Kosiński// you may not use this file except in compliance with the License.
6*09948d41SKrzysztof Kosiński// You may obtain a copy of the License at
7*09948d41SKrzysztof Kosiński//
8*09948d41SKrzysztof Kosiński//      http://www.apache.org/licenses/LICENSE-2.0
9*09948d41SKrzysztof Kosiński//
10*09948d41SKrzysztof Kosiński// Unless required by applicable law or agreed to in writing, software
11*09948d41SKrzysztof Kosiński// distributed under the License is distributed on an "AS IS" BASIS,
12*09948d41SKrzysztof Kosiński// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*09948d41SKrzysztof Kosiński// See the License for the specific language governing permissions and
14*09948d41SKrzysztof Kosiński// limitations under the License.
15*09948d41SKrzysztof Kosiński
16*09948d41SKrzysztof Kosińskipackage {
17*09948d41SKrzysztof Kosiński    default_applicable_licenses: ["external_ply_license"],
18*09948d41SKrzysztof Kosiński}
19*09948d41SKrzysztof Kosiński
20*09948d41SKrzysztof Kosiński// Added automatically by a large-scale-change that took the approach of
21*09948d41SKrzysztof Kosiński// 'apply every license found to every target'. While this makes sure we respect
22*09948d41SKrzysztof Kosiński// every license restriction, it may not be entirely correct.
23*09948d41SKrzysztof Kosiński//
24*09948d41SKrzysztof Kosiński// e.g. GPL in an MIT project might only apply to the contrib/ directory.
25*09948d41SKrzysztof Kosiński//
26*09948d41SKrzysztof Kosiński// Please consider splitting the single license below into multiple licenses,
27*09948d41SKrzysztof Kosiński// taking care not to lose any license_kind information, and overriding the
28*09948d41SKrzysztof Kosiński// default license using the 'licenses: [...]' property on targets as needed.
29*09948d41SKrzysztof Kosiński//
30*09948d41SKrzysztof Kosiński// For unused files, consider creating a 'fileGroup' with "//visibility:private"
31*09948d41SKrzysztof Kosiński// to attach the license to, and including a comment whether the files may be
32*09948d41SKrzysztof Kosiński// used in the current project.
33*09948d41SKrzysztof Kosiński// See: http://go/android-license-faq
34*09948d41SKrzysztof Kosińskilicense {
35*09948d41SKrzysztof Kosiński    name: "external_ply_license",
36*09948d41SKrzysztof Kosiński    visibility: [":__subpackages__"],
37*09948d41SKrzysztof Kosiński    license_kinds: [
38*09948d41SKrzysztof Kosiński        "SPDX-license-identifier-BSD",
39*09948d41SKrzysztof Kosiński        "legacy_unencumbered",
40*09948d41SKrzysztof Kosiński    ],
41*09948d41SKrzysztof Kosiński    license_text: [
42*09948d41SKrzysztof Kosiński        "LICENSE",
43*09948d41SKrzysztof Kosiński    ],
44*09948d41SKrzysztof Kosiński}
45