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