1*795d594fSAndroid Build Coastguard Worker// 2*795d594fSAndroid Build Coastguard Worker// Copyright (C) 2017 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 Worker 17*795d594fSAndroid Build Coastguard Worker// Build variants {target,host} x {debug,ndebug} x {32,64} 18*795d594fSAndroid Build Coastguard Worker 19*795d594fSAndroid Build Coastguard Workerpackage { 20*795d594fSAndroid Build Coastguard Worker default_applicable_licenses: ["art_dt_fd_forward_license"], 21*795d594fSAndroid Build Coastguard Worker default_team: "trendy_team_art_performance", 22*795d594fSAndroid Build Coastguard Worker} 23*795d594fSAndroid Build Coastguard Worker 24*795d594fSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 25*795d594fSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 26*795d594fSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 27*795d594fSAndroid Build Coastguard Worker// 28*795d594fSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 29*795d594fSAndroid Build Coastguard Worker// 30*795d594fSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 31*795d594fSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 32*795d594fSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 33*795d594fSAndroid Build Coastguard Worker// 34*795d594fSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 35*795d594fSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 36*795d594fSAndroid Build Coastguard Worker// used in the current project. 37*795d594fSAndroid Build Coastguard Worker// See: http://go/android-license-faq 38*795d594fSAndroid Build Coastguard Workerlicense { 39*795d594fSAndroid Build Coastguard Worker name: "art_dt_fd_forward_license", 40*795d594fSAndroid Build Coastguard Worker visibility: [":__subpackages__"], 41*795d594fSAndroid Build Coastguard Worker license_kinds: [ 42*795d594fSAndroid Build Coastguard Worker "SPDX-license-identifier-Apache-2.0", 43*795d594fSAndroid Build Coastguard Worker "SPDX-license-identifier-GPL-2.0-with-classpath-exception", 44*795d594fSAndroid Build Coastguard Worker ], 45*795d594fSAndroid Build Coastguard Worker license_text: [ 46*795d594fSAndroid Build Coastguard Worker "LICENSE", 47*795d594fSAndroid Build Coastguard Worker ], 48*795d594fSAndroid Build Coastguard Worker} 49*795d594fSAndroid Build Coastguard Worker 50*795d594fSAndroid Build Coastguard Workerart_cc_library { 51*795d594fSAndroid Build Coastguard Worker name: "libdt_fd_forward", 52*795d594fSAndroid Build Coastguard Worker host_supported: true, 53*795d594fSAndroid Build Coastguard Worker srcs: ["dt_fd_forward.cc"], 54*795d594fSAndroid Build Coastguard Worker defaults: ["art_defaults"], 55*795d594fSAndroid Build Coastguard Worker 56*795d594fSAndroid Build Coastguard Worker // Note that this tool needs to be built for both 32-bit and 64-bit since it needs to be same 57*795d594fSAndroid Build Coastguard Worker // ISA as what it is attached to. 58*795d594fSAndroid Build Coastguard Worker compile_multilib: "both", 59*795d594fSAndroid Build Coastguard Worker 60*795d594fSAndroid Build Coastguard Worker shared_libs: [ 61*795d594fSAndroid Build Coastguard Worker "libbase", 62*795d594fSAndroid Build Coastguard Worker ], 63*795d594fSAndroid Build Coastguard Worker target: { 64*795d594fSAndroid Build Coastguard Worker android: { 65*795d594fSAndroid Build Coastguard Worker }, 66*795d594fSAndroid Build Coastguard Worker host: { 67*795d594fSAndroid Build Coastguard Worker }, 68*795d594fSAndroid Build Coastguard Worker darwin: { 69*795d594fSAndroid Build Coastguard Worker enabled: false, 70*795d594fSAndroid Build Coastguard Worker }, 71*795d594fSAndroid Build Coastguard Worker }, 72*795d594fSAndroid Build Coastguard Worker header_libs: [ 73*795d594fSAndroid Build Coastguard Worker "javavm_headers", 74*795d594fSAndroid Build Coastguard Worker "dt_fd_forward_export", 75*795d594fSAndroid Build Coastguard Worker "art_libartbase_headers", // For strlcpy emulation. 76*795d594fSAndroid Build Coastguard Worker ], 77*795d594fSAndroid Build Coastguard Worker 78*795d594fSAndroid Build Coastguard Worker apex_available: [ 79*795d594fSAndroid Build Coastguard Worker "com.android.art", 80*795d594fSAndroid Build Coastguard Worker "com.android.art.debug", 81*795d594fSAndroid Build Coastguard Worker ], 82*795d594fSAndroid Build Coastguard Worker} 83