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