1// Copyright (C) 2019 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 { 16 default_applicable_licenses: ["libcore_ojluni_src_main_license"], 17} 18 19// License for OpenJDK source files. The tests from OpenJDK have a 20// separate license in ojluni/src/test/Android.bp. 21// 22// For general tips, see http://go/android-license-faq. 23license { 24 name: "libcore_ojluni_src_main_license", 25 visibility: ["//libcore:__subpackages__"], 26 license_kinds: [ 27 "SPDX-license-identifier-Apache-2.0", 28 "SPDX-license-identifier-GPL-2.0-with-classpath-exception", 29 ], 30 license_text: [ 31 "LICENSE", 32 "NOTICE", 33 ], 34} 35 36// Phony target that causes the build to check the license file in this 37// directory, detect that it is a GPL+classpath license and then copy all 38// the files from this directory and its subdirectories in to the 39// ${OUT}/obj/PACKAGING/gpl_source_intermediates/gpl_source.tgz file. 40phony { 41 name: "ojluni-phony", 42 43 // A phony module must have at least one dependency. 44 required: [ 45 "core-all", 46 ], 47} 48 49filegroup { 50 name: "ojluni-AbstractCollection", 51 srcs: [ 52 "java/java/util/AbstractCollection.java", 53 ], 54 visibility: [ 55 "//art/test:__subpackages__", 56 ], 57} 58