1*795d594fSAndroid Build Coastguard Worker// 2*795d594fSAndroid Build Coastguard Worker// Copyright (C) 2016 The Android Open Source Project 3*795d594fSAndroid Build Coastguard Worker// 4*795d594fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*795d594fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*795d594fSAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*795d594fSAndroid Build Coastguard Worker// 8*795d594fSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*795d594fSAndroid Build Coastguard Worker// 10*795d594fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*795d594fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*795d594fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*795d594fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*795d594fSAndroid Build Coastguard Worker// limitations under the License. 15*795d594fSAndroid Build Coastguard Worker 16*795d594fSAndroid Build Coastguard Workerpackage { 17*795d594fSAndroid Build Coastguard Worker default_applicable_licenses: ["art_openjdkjvm_license"], 18*795d594fSAndroid Build Coastguard Worker default_team: "trendy_team_art_performance", 19*795d594fSAndroid Build Coastguard Worker} 20*795d594fSAndroid Build Coastguard Worker 21*795d594fSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 22*795d594fSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 23*795d594fSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 24*795d594fSAndroid Build Coastguard Worker// 25*795d594fSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26*795d594fSAndroid Build Coastguard Worker// 27*795d594fSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 28*795d594fSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 29*795d594fSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 30*795d594fSAndroid Build Coastguard Worker// 31*795d594fSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32*795d594fSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 33*795d594fSAndroid Build Coastguard Worker// used in the current project. 34*795d594fSAndroid Build Coastguard Worker// See: http://go/android-license-faq 35*795d594fSAndroid Build Coastguard Workerlicense { 36*795d594fSAndroid Build Coastguard Worker name: "art_openjdkjvm_license", 37*795d594fSAndroid Build Coastguard Worker visibility: [":__subpackages__"], 38*795d594fSAndroid Build Coastguard Worker license_kinds: [ 39*795d594fSAndroid Build Coastguard Worker "SPDX-license-identifier-GPL-2.0-with-classpath-exception", 40*795d594fSAndroid Build Coastguard Worker ], 41*795d594fSAndroid Build Coastguard Worker license_text: [ 42*795d594fSAndroid Build Coastguard Worker "LICENSE", 43*795d594fSAndroid Build Coastguard Worker ], 44*795d594fSAndroid Build Coastguard Worker} 45*795d594fSAndroid Build Coastguard Worker 46*795d594fSAndroid Build Coastguard Workercc_defaults { 47*795d594fSAndroid Build Coastguard Worker name: "libopenjdkjvm_defaults", 48*795d594fSAndroid Build Coastguard Worker defaults: ["art_defaults"], 49*795d594fSAndroid Build Coastguard Worker visibility: ["//libcore"], 50*795d594fSAndroid Build Coastguard Worker host_supported: true, 51*795d594fSAndroid Build Coastguard Worker srcs: ["OpenjdkJvm.cc"], 52*795d594fSAndroid Build Coastguard Worker shared_libs: [ 53*795d594fSAndroid Build Coastguard Worker "libbase", 54*795d594fSAndroid Build Coastguard Worker ], 55*795d594fSAndroid Build Coastguard Worker header_libs: [ 56*795d594fSAndroid Build Coastguard Worker "libnativehelper_header_only", 57*795d594fSAndroid Build Coastguard Worker ], 58*795d594fSAndroid Build Coastguard Worker} 59*795d594fSAndroid Build Coastguard Worker 60*795d594fSAndroid Build Coastguard Workerart_cc_library { 61*795d594fSAndroid Build Coastguard Worker name: "libopenjdkjvm", 62*795d594fSAndroid Build Coastguard Worker defaults: ["libopenjdkjvm_defaults"], 63*795d594fSAndroid Build Coastguard Worker shared_libs: [ 64*795d594fSAndroid Build Coastguard Worker "libart", 65*795d594fSAndroid Build Coastguard Worker "libartbase", 66*795d594fSAndroid Build Coastguard Worker ], 67*795d594fSAndroid Build Coastguard Worker apex_available: [ 68*795d594fSAndroid Build Coastguard Worker "com.android.art", 69*795d594fSAndroid Build Coastguard Worker "com.android.art.debug", 70*795d594fSAndroid Build Coastguard Worker ], 71*795d594fSAndroid Build Coastguard Worker} 72*795d594fSAndroid Build Coastguard Worker 73*795d594fSAndroid Build Coastguard Workerart_cc_library { 74*795d594fSAndroid Build Coastguard Worker name: "libopenjdkjvmd", 75*795d594fSAndroid Build Coastguard Worker defaults: [ 76*795d594fSAndroid Build Coastguard Worker "art_debug_defaults", 77*795d594fSAndroid Build Coastguard Worker "libopenjdkjvm_defaults", 78*795d594fSAndroid Build Coastguard Worker ], 79*795d594fSAndroid Build Coastguard Worker shared_libs: [ 80*795d594fSAndroid Build Coastguard Worker "libartd", 81*795d594fSAndroid Build Coastguard Worker "libartbased", 82*795d594fSAndroid Build Coastguard Worker ], 83*795d594fSAndroid Build Coastguard Worker apex_available: [ 84*795d594fSAndroid Build Coastguard Worker "com.android.art.debug", 85*795d594fSAndroid Build Coastguard Worker ], 86*795d594fSAndroid Build Coastguard Worker} 87