xref: /aosp_15_r20/prebuilts/tools/Android.bp (revision 6774467a9462441f7cd7fbc651979727f762377a)
1*6774467aSAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
2*6774467aSAndroid Build Coastguard Worker//
3*6774467aSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*6774467aSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*6774467aSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*6774467aSAndroid Build Coastguard Worker//
7*6774467aSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*6774467aSAndroid Build Coastguard Worker//
9*6774467aSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*6774467aSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*6774467aSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6774467aSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*6774467aSAndroid Build Coastguard Worker// limitations under the License.
14*6774467aSAndroid Build Coastguard Worker
15*6774467aSAndroid Build Coastguard Worker// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
16*6774467aSAndroid Build Coastguard Worker//     CONSULT THE OWNERS AND [email protected] BEFORE
17*6774467aSAndroid Build Coastguard Worker//     DEPENDING ON IT IN YOUR PROJECT. ***
18*6774467aSAndroid Build Coastguard Workerpackage {
19*6774467aSAndroid Build Coastguard Worker    default_applicable_licenses: ["prebuilts_tools_license"],
20*6774467aSAndroid Build Coastguard Worker}
21*6774467aSAndroid Build Coastguard Worker
22*6774467aSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
23*6774467aSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
24*6774467aSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
25*6774467aSAndroid Build Coastguard Worker//
26*6774467aSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27*6774467aSAndroid Build Coastguard Worker//
28*6774467aSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
29*6774467aSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
30*6774467aSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
31*6774467aSAndroid Build Coastguard Worker//
32*6774467aSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33*6774467aSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
34*6774467aSAndroid Build Coastguard Worker// used in the current project.
35*6774467aSAndroid Build Coastguard Worker// See: http://go/android-license-faq
36*6774467aSAndroid Build Coastguard Workerlicense {
37*6774467aSAndroid Build Coastguard Worker    name: "prebuilts_tools_license",
38*6774467aSAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
39*6774467aSAndroid Build Coastguard Worker    license_kinds: [
40*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
41*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
42*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-EPL",
43*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-ICU",
44*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-ISC",
45*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-LGPL",
46*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-LGPL-2.1",
47*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-LGPL-3.0",
48*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-MIT",
49*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-MPL-1.1",
50*6774467aSAndroid Build Coastguard Worker        "SPDX-license-identifier-NCSA",
51*6774467aSAndroid Build Coastguard Worker        "legacy_by_exception_only", // by exception only
52*6774467aSAndroid Build Coastguard Worker        "legacy_notice",
53*6774467aSAndroid Build Coastguard Worker    ],
54*6774467aSAndroid Build Coastguard Worker    license_text: ["LICENSE"],
55*6774467aSAndroid Build Coastguard Worker}
56*6774467aSAndroid Build Coastguard Worker
57*6774467aSAndroid Build Coastguard Workerdroiddoc_exported_dir {
58*6774467aSAndroid Build Coastguard Worker    name: "api-versions-jars-dir",
59*6774467aSAndroid Build Coastguard Worker    path: "common/api-versions",
60*6774467aSAndroid Build Coastguard Worker}
61