Paul Duffin | c241d6a | 2019-06-25 15:40:29 +0100 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
| 16 | default_visibility: ["//visibility:private"], |
Bob Badour | 4f70e80 | 2021-02-03 19:03:54 -0800 | [diff] [blame] | 17 | 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 |
| 39 | license { |
| 40 | name: "libcore_license", |
| 41 | visibility: [":__subpackages__"], |
| 42 | license_kinds: [ |
| 43 | "SPDX-license-identifier-Apache-2.0", |
| 44 | "SPDX-license-identifier-BSD", |
| 45 | "SPDX-license-identifier-GPL", |
| 46 | "SPDX-license-identifier-GPL-2.0", |
| 47 | "SPDX-license-identifier-LGPL", |
| 48 | "SPDX-license-identifier-MIT", |
| 49 | "SPDX-license-identifier-OpenSSL", |
| 50 | "SPDX-license-identifier-Unicode-DFS", |
| 51 | "SPDX-license-identifier-W3C", |
| 52 | "legacy_unencumbered", |
| 53 | ], |
| 54 | license_text: [ |
| 55 | "LICENSE", |
| 56 | "NOTICE", |
| 57 | ], |
Paul Duffin | c241d6a | 2019-06-25 15:40:29 +0100 | [diff] [blame] | 58 | } |
| 59 | |
Colin Cross | 09975c3 | 2017-08-29 15:01:05 -0700 | [diff] [blame] | 60 | build = [ |
Colin Cross | af0b54c | 2017-09-27 17:22:32 -0700 | [diff] [blame] | 61 | "JavaLibrary.bp", |
Colin Cross | 09975c3 | 2017-08-29 15:01:05 -0700 | [diff] [blame] | 62 | "NativeCode.bp", |
| 63 | ] |
Nan Zhang | 65f27a3 | 2018-01-05 10:41:46 -0800 | [diff] [blame] | 64 | |
Anton Hansson | 8a1d0f6 | 2021-04-21 16:33:35 +0100 | [diff] [blame] | 65 | java_genrule { |
| 66 | name: "notices-for-stubs-jar", |
| 67 | tools: ["soong_zip"], |
Nan Zhang | d55722b | 2018-02-27 15:08:20 -0800 | [diff] [blame] | 68 | tool_files: [ |
| 69 | "NOTICE", |
| 70 | "ojluni/NOTICE", |
| 71 | ], |
Anton Hansson | 8a1d0f6 | 2021-04-21 16:33:35 +0100 | [diff] [blame] | 72 | cmd: "mkdir $(genDir)/NOTICES && " + |
| 73 | "cp -f $(location NOTICE) $(genDir)/NOTICES/libcore-NOTICE && " + |
| 74 | "cp -f $(location ojluni/NOTICE) $(genDir)/NOTICES/ojluni-NOTICE && " + |
| 75 | "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/NOTICES", |
| 76 | out: ["notices-for-stubs.jar"], |
Paul Duffin | b723984 | 2020-03-25 17:10:26 +0000 | [diff] [blame] | 77 | } |