• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-with-classpath-exception",
40    ],
41    license_text: [
42        "LICENSE",
43    ],
44}
45
46cc_library_headers {
47    name: "libopenjdkjvmti_headers",
48    defaults: ["art_defaults"],
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}
62
63cc_defaults {
64    name: "libopenjdkjvmti_defaults",
65    defaults: ["art_defaults"],
66    host_supported: true,
67    srcs: [
68        "alloc_manager.cc",
69        "deopt_manager.cc",
70        "events.cc",
71        "object_tagging.cc",
72        "OpenjdkJvmTi.cc",
73        "ti_allocator.cc",
74        "ti_breakpoint.cc",
75        "ti_class.cc",
76        "ti_class_definition.cc",
77        "ti_class_loader.cc",
78        "ti_ddms.cc",
79        "ti_dump.cc",
80        "ti_extension.cc",
81        "ti_field.cc",
82        "ti_heap.cc",
83        "ti_jni.cc",
84        "ti_logging.cc",
85        "ti_method.cc",
86        "ti_monitor.cc",
87        "ti_object.cc",
88        "ti_phase.cc",
89        "ti_properties.cc",
90        "ti_search.cc",
91        "ti_stack.cc",
92        "ti_redefine.cc",
93        "ti_thread.cc",
94        "ti_threadgroup.cc",
95        "ti_timers.cc",
96        "transform.cc",
97    ],
98    header_libs: [
99        "art_cmdlineparser_headers",
100        "libnativehelper_header_only",
101        "libopenjdkjvmti_headers",
102    ],
103    shared_libs: [
104        "libbase",
105    ],
106}
107
108art_cc_library {
109    name: "libopenjdkjvmti",
110    defaults: ["libopenjdkjvmti_defaults"],
111    shared_libs: [
112        "libart",
113        "libart-compiler",
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        "libartd-compiler",
133        "libdexfiled",
134        "libartbased",
135    ],
136    apex_available: [
137        "com.android.art.debug",
138    ],
139}
140