blob: fa79d5a894542cc3efe95bd8c14d5121003716e0 [file] [log] [blame]
Paul Duffinc241d6a2019-06-25 15:40:29 +01001// Copyright (C) 2017 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
15package {
Orion Hodson9e54acd2022-10-27 12:55:56 +010016 default_visibility: [":__subpackages__"],
Bob Badour4f70e802021-02-03 19:03:54 -080017 default_applicable_licenses: ["libcore_license"],
18}
19
20// Added automatically by a large-scale-change that took the approach of
21// 'apply every license found to every target'. While this makes sure we respect
22// every license restriction, it may not be entirely correct.
23//
24// e.g. GPL in an MIT project might only apply to the contrib/ directory.
25//
26// Please consider splitting the single license below into multiple licenses,
27// taking care not to lose any license_kind information, and overriding the
28// default license using the 'licenses: [...]' property on targets as needed.
29//
30// For unused files, consider creating a 'filegroup' with "//visibility:private"
31// to attach the license to, and including a comment whether the files may be
32// used in the current project.
33//
34// large-scale-change included anything that looked like it might be a license
35// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
36//
37// Please consider removing redundant or irrelevant files from 'license_text:'.
38// http://go/android-license-faq
39license {
40 name: "libcore_license",
41 visibility: [":__subpackages__"],
42 license_kinds: [
43 "SPDX-license-identifier-Apache-2.0",
44 "SPDX-license-identifier-BSD",
Orion Hodson9e54acd2022-10-27 12:55:56 +010045 "SPDX-license-identifier-GPL-2.0-with-classpath-exception",
Bob Badour4f70e802021-02-03 19:03:54 -080046 "SPDX-license-identifier-MIT",
47 "SPDX-license-identifier-OpenSSL",
48 "SPDX-license-identifier-Unicode-DFS",
49 "SPDX-license-identifier-W3C",
50 "legacy_unencumbered",
51 ],
52 license_text: [
53 "LICENSE",
54 "NOTICE",
Orion Hodson950c9c32022-11-02 15:32:49 +000055 "ojluni/src/main/NOTICE",
Bob Badour4f70e802021-02-03 19:03:54 -080056 ],
Paul Duffinc241d6a2019-06-25 15:40:29 +010057}
58
Colin Cross09975c32017-08-29 15:01:05 -070059build = [
Colin Crossaf0b54c2017-09-27 17:22:32 -070060 "JavaLibrary.bp",
Colin Cross09975c32017-08-29 15:01:05 -070061 "NativeCode.bp",
Giulio Fiscella1e5336c2022-03-31 11:14:07 +000062 "Extras.bp",
Colin Cross09975c32017-08-29 15:01:05 -070063]
Nan Zhang65f27a32018-01-05 10:41:46 -080064
Orion Hodsoncce98f92022-11-09 15:00:36 +000065gen_notice {
66 name: "libcore-library-notices",
67 for: [
68 "core-oj",
69 "core-libart",
70 ],
71 stem: "libcore-NOTICES",
72 suffix: ".txt",
73}
74
Anton Hansson8a1d0f62021-04-21 16:33:35 +010075java_genrule {
76 name: "notices-for-stubs-jar",
77 tools: ["soong_zip"],
Orion Hodsoncce98f92022-11-09 15:00:36 +000078 srcs: [":libcore-library-notices"],
Anton Hansson8a1d0f62021-04-21 16:33:35 +010079 cmd: "mkdir $(genDir)/NOTICES && " +
Orion Hodsoncce98f92022-11-09 15:00:36 +000080 "cp -f $(in) $(genDir)/NOTICES && " +
Anton Hansson8a1d0f62021-04-21 16:33:35 +010081 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/NOTICES",
82 out: ["notices-for-stubs.jar"],
Justin Yunbbf9ea12023-07-18 09:54:10 +090083 write_if_changed: true,
Paul Duffinb7239842020-03-25 17:10:26 +000084}