1 // 2 // Copyright (C) 2018 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 cc_defaults { 19 name: "tifast-defaults", 20 host_supported: true, 21 srcs: ["tifast.cc"], 22 defaults: ["art_defaults"], 23 24 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires 25 // to be same ISA as what it is attached to. 26 compile_multilib: "both", 27 28 shared_libs: [ 29 "libbase", 30 ], 31 header_libs: [ 32 "libopenjdkjvmti_headers", 33 ], 34 multilib: { 35 lib32: { 36 suffix: "32", 37 }, 38 lib64: { 39 suffix: "64", 40 }, 41 }, 42 symlink_preferred_arch: true, 43 } 44 45 art_cc_library { 46 name: "libtifast", 47 defaults: ["tifast-defaults"], 48 } 49 50 art_cc_library { 51 name: "libtifastd", 52 defaults: [ 53 "art_debug_defaults", 54 "tifast-defaults", 55 ], 56 } 57