| // Copyright (C) 2019 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| default_applicable_licenses: ["libcore_ojluni_src_main_license"], |
| } |
| |
| // License for OpenJDK source files. The tests from OpenJDK have a |
| // separate license in ojluni/src/test/Android.bp. |
| // |
| // For general tips, see http://go/android-license-faq. |
| license { |
| name: "libcore_ojluni_src_main_license", |
| visibility: ["//libcore:__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-Apache-2.0", |
| "SPDX-license-identifier-GPL-2.0-with-classpath-exception", |
| ], |
| license_text: [ |
| "LICENSE", |
| "NOTICE", |
| ], |
| } |
| |
| // Phony target that causes the build to check the license file in this |
| // directory, detect that it is a GPL+classpath license and then copy all |
| // the files from this directory and its subdirectories in to the |
| // ${OUT}/obj/PACKAGING/gpl_source_intermediates/gpl_source.tgz file. |
| phony { |
| name: "ojluni-phony", |
| |
| // A phony module must have at least one dependency. |
| required: [ |
| "core-all", |
| ], |
| } |
| |
| filegroup { |
| name: "ojluni-AbstractCollection", |
| srcs: [ |
| "java/java/util/AbstractCollection.java", |
| ], |
| visibility: [ |
| "//art/test:__subpackages__", |
| ], |
| } |