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