1// 2// Copyright (C) 2020 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} 18cc_defaults { 19 name: "enablevlog-base-defaults", 20 srcs: ["enablevlog.cc"], 21 defaults: ["art_defaults"], 22 23 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires 24 // to be same ISA as what it is attached to. 25 compile_multilib: "both", 26 header_libs: [ 27 "libopenjdkjvmti_headers", 28 "libnativehelper_header_only", 29 "jni_headers", 30 ], 31} 32 33cc_defaults { 34 name: "enablevlog-defaults", 35 host_supported: true, 36 shared_libs: [ 37 "libbase", 38 ], 39 defaults: ["enablevlog-base-defaults"], 40} 41 42cc_defaults { 43 name: "enablevlog-static-defaults", 44 host_supported: false, 45 defaults: ["enablevlog-base-defaults"], 46 47 shared_libs: [ 48 "liblog", 49 ], 50 static_libs: [ 51 "libbase_ndk", 52 ], 53 sdk_version: "current", 54 stl: "c++_static", 55} 56 57art_cc_library { 58 name: "libenablevlogs", 59 defaults: ["enablevlog-static-defaults"], 60} 61 62art_cc_library { 63 name: "libenablevlog", 64 defaults: ["enablevlog-defaults"], 65} 66 67art_cc_library { 68 name: "libenablevlogd", 69 defaults: [ 70 "art_debug_defaults", 71 "enablevlog-defaults", 72 ], 73} 74