1// 2// Copyright (C) 2016 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 16package { 17 default_applicable_licenses: ["art_openjdkjvmti_license"], 18 default_team: "trendy_team_art_performance", 19} 20 21// Added automatically by a large-scale-change that took the approach of 22// 'apply every license found to every target'. While this makes sure we respect 23// every license restriction, it may not be entirely correct. 24// 25// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26// 27// Please consider splitting the single license below into multiple licenses, 28// taking care not to lose any license_kind information, and overriding the 29// default license using the 'licenses: [...]' property on targets as needed. 30// 31// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32// to attach the license to, and including a comment whether the files may be 33// used in the current project. 34// See: http://go/android-license-faq 35license { 36 name: "art_openjdkjvmti_license", 37 visibility: [":__subpackages__"], 38 license_kinds: [ 39 "SPDX-license-identifier-Apache-2.0", 40 "SPDX-license-identifier-GPL-2.0-with-classpath-exception", 41 ], 42 license_text: [ 43 "LICENSE", 44 ], 45} 46 47cc_library_headers { 48 name: "libopenjdkjvmti_headers", 49 defaults: ["art_defaults"], 50 visibility: ["//visibility:public"], 51 header_libs: ["jni_headers"], 52 host_supported: true, 53 export_header_lib_headers: ["jni_headers"], 54 export_include_dirs: ["include"], 55 sdk_version: "current", 56 57 apex_available: [ 58 "//apex_available:platform", 59 "com.android.art", 60 "com.android.art.debug", 61 ], 62} 63 64cc_defaults { 65 name: "libopenjdkjvmti_defaults", 66 defaults: ["art_defaults"], 67 host_supported: true, 68 srcs: [ 69 "alloc_manager.cc", 70 "deopt_manager.cc", 71 "events.cc", 72 "object_tagging.cc", 73 "OpenjdkJvmTi.cc", 74 "ti_allocator.cc", 75 "ti_breakpoint.cc", 76 "ti_class.cc", 77 "ti_class_definition.cc", 78 "ti_class_loader.cc", 79 "ti_ddms.cc", 80 "ti_dump.cc", 81 "ti_extension.cc", 82 "ti_field.cc", 83 "ti_heap.cc", 84 "ti_jni.cc", 85 "ti_logging.cc", 86 "ti_method.cc", 87 "ti_monitor.cc", 88 "ti_object.cc", 89 "ti_phase.cc", 90 "ti_properties.cc", 91 "ti_search.cc", 92 "ti_stack.cc", 93 "ti_redefine.cc", 94 "ti_thread.cc", 95 "ti_threadgroup.cc", 96 "ti_timers.cc", 97 "transform.cc", 98 ], 99 header_libs: [ 100 "art_cmdlineparser_headers", 101 "libnativehelper_header_only", 102 "libopenjdkjvmti_headers", 103 ], 104 shared_libs: [ 105 "libbase", 106 ], 107} 108 109art_cc_library { 110 name: "libopenjdkjvmti", 111 defaults: ["libopenjdkjvmti_defaults"], 112 shared_libs: [ 113 "libart", 114 "libdexfile", 115 "libartbase", 116 ], 117 apex_available: [ 118 "com.android.art", 119 "com.android.art.debug", 120 "test_broken_com.android.art", 121 ], 122} 123 124art_cc_library { 125 name: "libopenjdkjvmtid", 126 defaults: [ 127 "art_debug_defaults", 128 "libopenjdkjvmti_defaults", 129 ], 130 shared_libs: [ 131 "libartd", 132 "libdexfiled", 133 "libartbased", 134 ], 135 apex_available: [ 136 "com.android.art.debug", 137 ], 138} 139