xref: /aosp_15_r20/prebuilts/tools/Android.bp (revision 6774467a9462441f7cd7fbc651979727f762377a)
1// Copyright (C) 2018 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
15// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
16//     CONSULT THE OWNERS AND [email protected] BEFORE
17//     DEPENDING ON IT IN YOUR PROJECT. ***
18package {
19    default_applicable_licenses: ["prebuilts_tools_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35// See: http://go/android-license-faq
36license {
37    name: "prebuilts_tools_license",
38    visibility: [":__subpackages__"],
39    license_kinds: [
40        "SPDX-license-identifier-Apache-2.0",
41        "SPDX-license-identifier-BSD",
42        "SPDX-license-identifier-EPL",
43        "SPDX-license-identifier-ICU",
44        "SPDX-license-identifier-ISC",
45        "SPDX-license-identifier-LGPL",
46        "SPDX-license-identifier-LGPL-2.1",
47        "SPDX-license-identifier-LGPL-3.0",
48        "SPDX-license-identifier-MIT",
49        "SPDX-license-identifier-MPL-1.1",
50        "SPDX-license-identifier-NCSA",
51        "legacy_by_exception_only", // by exception only
52        "legacy_notice",
53    ],
54    license_text: ["LICENSE"],
55}
56
57droiddoc_exported_dir {
58    name: "api-versions-jars-dir",
59    path: "common/api-versions",
60}
61