blob: d070d76349a63c3db466ae10bee29819918308bc [file] [log] [blame]
Colin Cross6b22aa52016-09-12 14:35:39 -07001//
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//
16
17art_cc_defaults {
Colin Cross6e95dd52016-09-12 15:37:10 -070018 name: "art_test_defaults",
19 host_supported: true,
Colin Crossafd3c9e2016-09-16 13:47:21 -070020 target: {
21 android_arm: {
22 relative_install_path: "art/arm",
23 },
24 android_arm64: {
25 relative_install_path: "art/arm64",
26 },
27 android_mips: {
28 relative_install_path: "art/mips",
29 },
30 android_mips64: {
31 relative_install_path: "art/mips64",
32 },
33 android_x86: {
34 relative_install_path: "art/x86",
35 },
36 android_x86_64: {
37 relative_install_path: "art/x86_64",
38 },
Colin Crossfd5428b2016-09-19 10:40:05 -070039 darwin: {
40 enabled: false,
41 },
Colin Crossafd3c9e2016-09-16 13:47:21 -070042 },
Dan Albertb5d36de2016-09-21 14:56:51 -070043 cflags: [
44 "-Wno-frame-larger-than=",
45 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -070046}
47
48art_cc_defaults {
49 name: "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070050 test_per_src: true,
51 // These really are gtests, but the gtest library comes from libart-gtest.so
52 gtest: false,
53 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070054 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070055 "art_debug_defaults",
56 "art_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070057 ],
58
59 shared_libs: [
60 "libartd",
61 "libartd-disassembler",
Roland Levillain12dd9ae2018-11-06 13:32:06 +000062 "libvixld",
Colin Cross6e95dd52016-09-12 15:37:10 -070063 "libart-gtest",
David Sehrfcbe15c2018-02-15 09:41:13 -080064 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -070065 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -070066 "libartbased",
Colin Cross6e95dd52016-09-12 15:37:10 -070067
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070068 "libbase",
Colin Cross6e95dd52016-09-12 15:37:10 -070069 "libicuuc",
70 "libicui18n",
71 "libnativehelper",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000072 "libz",
Colin Cross6e95dd52016-09-12 15:37:10 -070073 ],
74 whole_static_libs: [
75 "libsigchain",
76 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070077
78 target: {
Dan Willemsen057f1e42017-10-03 14:11:48 -070079 linux: {
Colin Cross6e95dd52016-09-12 15:37:10 -070080 ldflags: [
81 // Allow jni_compiler_test to find Java_MyClassNatives_bar
82 // within itself using dlopen(NULL, ...).
83 // Mac OS linker doesn't understand --export-dynamic.
84 "-Wl,--export-dynamic",
85 "-Wl,-u,Java_MyClassNatives_bar",
86 "-Wl,-u,Java_MyClassNatives_sbar",
87 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070088 cflags: [
89 // gtest issue
90 "-Wno-used-but-marked-unused",
91 "-Wno-deprecated",
92 "-Wno-missing-noreturn",
93 ],
94 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000095 host: {
96 shared_libs: [
97 "libziparchive",
98 ],
99 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700100 android: {
Colin Cross6e95dd52016-09-12 15:37:10 -0700101 shared_libs: [
Dimitry Ivanov9642b1b2016-09-28 02:44:00 -0700102 "liblog",
Colin Cross6e95dd52016-09-12 15:37:10 -0700103 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700104 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700105 },
106}
107
108art_cc_defaults {
Colin Cross6b22aa52016-09-12 14:35:39 -0700109 name: "libart-gtest-defaults",
110 host_supported: true,
111 defaults: [
Colin Cross6b22aa52016-09-12 14:35:39 -0700112 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700113 "art_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700114 ],
115 shared_libs: [
116 "libartd",
117 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800118 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700119 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700120 "libartbased",
Colin Cross6b22aa52016-09-12 14:35:39 -0700121 ],
122 static_libs: [
123 "libgtest",
124 ],
125 target: {
126 android32: {
Colin Crossc5c71872016-09-15 21:07:29 -0700127 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
Colin Cross6b22aa52016-09-12 14:35:39 -0700128 },
129 android64: {
130 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
131 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700132 linux: {
Colin Cross6b22aa52016-09-12 14:35:39 -0700133 cflags: [
134 // gtest issue
135 "-Wno-used-but-marked-unused",
136 "-Wno-deprecated",
137 "-Wno-missing-noreturn",
138 ],
139 },
Colin Cross942036f2016-09-15 16:24:51 -0700140 darwin: {
141 enabled: false,
142 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700143 },
144}
145
146art_cc_library {
147 name: "libart-gtest",
148 host_supported: true,
149 whole_static_libs: [
150 "libart-compiler-gtest",
151 "libart-runtime-gtest",
David Sehrd5f8de82018-04-27 14:12:03 -0700152 "libartbase-art-gtest",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700153 "libgtest",
Colin Cross6b22aa52016-09-12 14:35:39 -0700154 ],
155 shared_libs: [
156 "libartd",
157 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800158 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700159 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700160 "libartbased",
Colin Crossf0af9062016-10-21 10:50:31 -0700161 "libbase",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700162 "libbacktrace",
Colin Cross6b22aa52016-09-12 14:35:39 -0700163 ],
164 target: {
Colin Cross942036f2016-09-15 16:24:51 -0700165 darwin: {
166 enabled: false,
167 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700168 },
169}
Colin Crossafd3c9e2016-09-16 13:47:21 -0700170
171cc_defaults {
172 name: "libartagent-defaults",
173 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700174 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700175 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700176 ],
177 shared_libs: [
178 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700179 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700180 "libnativehelper",
181 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700182}
183
184art_cc_test_library {
185 name: "libartagent",
186 srcs: ["900-hello-plugin/load_unload.cc"],
187 defaults: ["libartagent-defaults"],
Andreas Gampe9462a562018-02-20 09:35:21 -0800188 shared_libs: [
189 "libart",
190 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700191 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700192 "libartbase",
Andreas Gampe9462a562018-02-20 09:35:21 -0800193 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700194}
195
196art_cc_test_library {
197 name: "libartagentd",
198 srcs: ["900-hello-plugin/load_unload.cc"],
199 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700200 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700201 "libartagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700202 ],
Andreas Gampe9462a562018-02-20 09:35:21 -0800203 shared_libs: [
204 "libartd",
205 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700206 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700207 "libartbased",
Andreas Gampe9462a562018-02-20 09:35:21 -0800208 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700209}
210
Andreas Gampee54d9922016-10-11 19:55:37 -0700211art_cc_defaults {
Dan Willemsen2ca27802017-09-27 14:57:43 -0700212 name: "libtiagent-base-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800213 defaults: [
214 "art_test_defaults",
215 "art_defaults",
216 // Not derived from libartagent-defaults for NDK.
217 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700218 srcs: [
Andreas Gampe027444b2017-03-31 12:49:07 -0700219 // These are the ART-independent parts.
Andreas Gampe46651672017-04-07 09:00:04 -0700220 "ti-agent/agent_common.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700221 "ti-agent/agent_startup.cc",
Andreas Gampe3f46c962017-03-30 10:26:59 -0700222 "ti-agent/jni_binder.cc",
223 "ti-agent/jvmti_helper.cc",
224 "ti-agent/test_env.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700225 "ti-agent/breakpoint_helper.cc",
Alex Light78d63412017-04-14 16:20:53 -0700226 "ti-agent/common_helper.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700227 "ti-agent/frame_pop_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700228 "ti-agent/locals_helper.cc",
Alex Lightce568642017-09-05 16:54:25 -0700229 "ti-agent/monitors_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700230 "ti-agent/redefinition_helper.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700231 "ti-agent/suspension_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700232 "ti-agent/stack_trace_helper.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700233 "ti-agent/threads_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700234 "ti-agent/trace_helper.cc",
Alex Light9fb1ab12017-09-05 09:32:49 -0700235 "ti-agent/exceptions_helper.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700236 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
237 // on ART internals.
Andreas Gampe6dee92e2016-09-12 19:58:13 -0700238 "903-hello-tagging/tagging.cc",
Andreas Gampe27fa96c2016-10-07 15:05:24 -0700239 "904-object-allocation/tracking.cc",
Andreas Gampecc13b222016-10-10 19:09:09 -0700240 "905-object-free/tracking_free.cc",
Andreas Gampee54d9922016-10-11 19:55:37 -0700241 "906-iterate-heap/iterate_heap.cc",
Andreas Gampeaa8b60c2016-10-12 12:51:25 -0700242 "907-get-loaded-classes/get_loaded_classes.cc",
Andreas Gampe9b8c5882016-10-21 15:27:46 -0700243 "908-gc-start-finish/gc_callbacks.cc",
Andreas Gampe3c252f02016-10-27 18:25:17 -0700244 "910-methods/methods.cc",
Andreas Gampeb5eb94a2016-10-27 19:23:09 -0700245 "911-get-stack-trace/stack_trace.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700246 "912-classes/classes.cc",
Andreas Gampee0f8ed92017-04-13 16:52:23 -0700247 "913-heaps/heaps.cc",
Andreas Gampeab2f0d02017-01-05 17:23:45 -0800248 "918-fields/fields.cc",
Andreas Gampe50a4e492017-01-06 18:00:20 -0800249 "920-objects/objects.cc",
Andreas Gampe1bdaf732017-01-09 19:21:06 -0800250 "922-properties/properties.cc",
Andreas Gampe319dbe82017-01-09 16:42:21 -0800251 "923-monitors/monitors.cc",
Andreas Gampeaf13ab92017-01-11 20:57:40 -0800252 "924-threads/threads.cc",
Andreas Gamped18d9e22017-01-16 16:08:45 +0000253 "925-threadgroups/threadgroups.cc",
Andreas Gampe35bcf812017-01-13 16:24:17 -0800254 "927-timers/timers.cc",
Andreas Gampe6f8e4f02017-01-16 18:18:14 -0800255 "928-jni-table/jni_table.cc",
Andreas Gampece7732b2017-01-17 15:50:26 -0800256 "929-search/search.cc",
Andreas Gampe732b0ac2017-01-18 15:23:39 -0800257 "931-agent-thread/agent_thread.cc",
Andreas Gampeeb0cea12017-01-23 08:50:04 -0800258 "933-misc-events/misc_events.cc",
Alex Light78d63412017-04-14 16:20:53 -0700259 "945-obsolete-native/obsolete_native.cc",
Alex Light8fd08562018-02-13 10:09:03 -0800260 "983-source-transform-verify/source_transform.cc",
Alex Light78d63412017-04-14 16:20:53 -0700261 "984-obsolete-invoke/obsolete_invoke.cc",
Alex Lightd78ddec2017-04-18 15:20:38 -0700262 "986-native-method-bind/native_bind.cc",
Alex Light65af20b2017-04-20 09:15:08 -0700263 "987-agent-bind/agent_bind.cc",
Alex Lighte85595e2018-08-17 15:54:34 -0700264 "988-method-trace/trace_fib.cc",
Alex Lightb7edcda2017-04-27 13:20:31 -0700265 "989-method-trace-throw/method_trace.cc",
Alex Light7c958492017-06-16 08:59:19 -0700266 "991-field-trace-2/field_trace.cc",
Alex Light6fa7b812017-06-16 09:04:29 -0700267 "992-source-data/source_file.cc",
Alex Lightc38c3692017-06-27 15:45:14 -0700268 "993-breakpoints/breakpoints.cc",
269 "996-breakpoint-obsolete/obsolete_breakpoints.cc",
Alex Light8ddfd9f2017-07-05 16:33:46 -0700270 "1900-track-alloc/alloc.cc",
Alex Light4c174282017-07-05 10:18:18 -0700271 "1901-get-bytecodes/bytecodes.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700272 "1905-suspend-native/native_suspend.cc",
273 "1908-suspend-native-resume-self/native_suspend_resume.cc",
Alex Light092a4042017-07-12 08:46:44 -0700274 "1909-per-agent-tls/agent_tls.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700275 "1914-get-local-instance/local_instance.cc",
Alex Light1d8a9742017-08-17 11:12:06 -0700276 "1919-vminit-thread-start-timing/vminit.cc",
Alex Light23aa7482017-08-16 10:01:13 -0700277 "1920-suspend-native-monitor/native_suspend_monitor.cc",
278 "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc",
Alex Light88e1ddd2017-08-21 13:09:55 -0700279 "1922-owned-monitors-info/owned_monitors.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700280 "1924-frame-pop-toggle/frame_pop_toggle.cc",
281 "1926-missed-frame-pop/frame_pop_missed.cc",
Alex Lightce568642017-09-05 16:54:25 -0700282 "1927-exception-event/exception_event.cc",
283 "1930-monitor-info/monitor.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700284 "1932-monitor-events-misc/monitor_misc.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700285 "1934-jvmti-signal-thread/signal_threads.cc",
Alex Light3dea2122017-10-11 15:56:48 +0000286 "1939-proxy-frames/local_instance.cc",
Alex Lightb284f8d2017-11-21 00:00:48 +0000287 "1941-dispose-stress/dispose_stress.cc",
Alex Light4d77daf2018-01-04 11:51:14 -0800288 "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc",
289 "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc",
Alex Lightc7588752018-02-20 11:15:54 -0800290 "1946-list-descriptors/descriptors.cc",
Alex Light9e7859c2018-04-05 13:49:43 -0700291 "1950-unprepared-transform/unprepared_transform.cc",
Alex Lightc98f83e2018-07-26 08:28:36 -0700292 "1951-monitor-enter-no-suspend/raw_monitor.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000293 "1953-pop-frame/pop_frame.cc",
Alex Lightae45cbb2018-10-18 15:49:56 -0700294 "1957-error-ext/lasterror.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700295 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800296 // Use NDK-compatible headers for ctstiagent.
Alex Light8c2b9292017-11-09 13:21:01 -0800297 header_libs: [
Alex Light8c2b9292017-11-09 13:21:01 -0800298 "libopenjdkjvmti_headers",
299 ],
Andreas Gampe3f46c962017-03-30 10:26:59 -0700300 include_dirs: ["art/test/ti-agent"],
Andreas Gampee54d9922016-10-11 19:55:37 -0700301}
302
Andreas Gampe027444b2017-03-31 12:49:07 -0700303art_cc_defaults {
304 name: "libtiagent-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800305 defaults: [
306 "libtiagent-base-defaults",
307 "libartagent-defaults",
308 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700309 srcs: [
310 // This is to get the IsInterpreted native method.
311 "common/stack_inspect.cc",
312 "common/runtime_state.cc",
Alex Light78d63412017-04-14 16:20:53 -0700313 "ti-agent/common_load.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700314 // This includes the remaining test functions. We should try to refactor things to
315 // make this list smaller.
Andreas Gampe027444b2017-03-31 12:49:07 -0700316 "901-hello-ti-agent/basics.cc",
317 "909-attach-agent/attach.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700318 "912-classes/classes_art.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700319 "936-search-onload/search_onload.cc",
Alex Lightfbee3982018-05-24 10:28:46 -0700320 "980-redefine-object/redef_object.cc",
Andreas Gampe59484b92018-02-14 14:00:46 -0800321 "983-source-transform-verify/source_transform_art.cc",
Alex Light8c2b9292017-11-09 13:21:01 -0800322 "1940-ddms-ext/ddm_ext.cc",
Alex Light0e841182018-02-12 17:42:50 +0000323 "1944-sudden-exit/sudden_exit.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000324 // "1952-pop-frame-jit/pop_frame.cc",
Alex Lightfc81d802018-12-07 13:39:05 -0800325 "1959-redefine-object-instrument/fake_redef_object.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700326 ],
Alex Lightfbee3982018-05-24 10:28:46 -0700327 static_libs: [
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000328 "libz",
Alex Lightfbee3982018-05-24 10:28:46 -0700329 "slicer",
330 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700331}
332
Andreas Gampee54d9922016-10-11 19:55:37 -0700333art_cc_test_library {
334 name: "libtiagent",
335 defaults: ["libtiagent-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800336 shared_libs: [
337 "libart",
338 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700339 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700340 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800341 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700342}
343
344art_cc_test_library {
345 name: "libtiagentd",
346 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700347 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700348 "libtiagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700349 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800350 shared_libs: [
351 "libartd",
352 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700353 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700354 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800355 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700356}
357
Andreas Gampe59484b92018-02-14 14:00:46 -0800358cc_library_static {
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800359 name: "libctstiagent",
360 defaults: ["libtiagent-base-defaults"],
Andreas Gampe59484b92018-02-14 14:00:46 -0800361 host_supported: false,
362 srcs: [
363 "983-source-transform-verify/source_transform_slicer.cc",
364 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800365 whole_static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800366 "slicer_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800367 ],
368 static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800369 "libbase_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800370 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000371 shared_libs: [
372 "libz", // for slicer (using adler32).
373 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800374 sdk_version: "current",
375 stl: "c++_static",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800376 include_dirs: [
Alex Light8fd08562018-02-13 10:09:03 -0800377 // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are
378 // many problems with how we export headers that are making doing this the 'right' way
379 // difficult.
380 // TODO: move those headers to art/ rather than under runtime.
Andreas Gampecb5125d2018-02-20 09:36:54 -0800381 "art/runtime",
382 // NDK headers aren't available in platform NDK builds.
383 "libnativehelper/include_jni",
Alex Light8fd08562018-02-13 10:09:03 -0800384 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800385 export_include_dirs: ["ti-agent"],
386}
387
Alex Light8f2c6d42017-04-10 16:27:35 -0700388art_cc_defaults {
Alex Light88659142018-05-15 10:53:06 -0700389 name: "libtistress-srcs",
Alex Light8f2c6d42017-04-10 16:27:35 -0700390 defaults: ["libartagent-defaults"],
391 srcs: [
392 "ti-stress/stress.cc",
393 ],
Alex Light88659142018-05-15 10:53:06 -0700394 header_libs: ["libopenjdkjvmti_headers"],
395}
396
397art_cc_defaults {
398 name: "libtistress-defaults",
399 defaults: ["libtistress-srcs"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700400 shared_libs: [
401 "libbase",
Alex Lightceae9542017-09-07 13:28:00 -0700402 "slicer",
Alex Light8f2c6d42017-04-10 16:27:35 -0700403 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700404}
405
406art_cc_test_library {
407 name: "libtistress",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700408 defaults: ["libtistress-defaults"],
Alex Light88659142018-05-15 10:53:06 -0700409 shared_libs: ["libartbase"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700410}
411
412art_cc_test_library {
413 name: "libtistressd",
414 defaults: [
Alex Light8f2c6d42017-04-10 16:27:35 -0700415 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700416 "libtistress-defaults",
Alex Light8f2c6d42017-04-10 16:27:35 -0700417 ],
Alex Light88659142018-05-15 10:53:06 -0700418 shared_libs: ["libartbased"],
419}
420
421art_cc_defaults {
422 name: "libtistress-static-defaults",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800423 defaults: [
424 "libtistress-srcs",
425 "libart_static_defaults",
Alex Light88659142018-05-15 10:53:06 -0700426 ],
Andreas Gampeec5ed062018-01-26 16:20:02 -0800427 static_libs: ["slicer"],
Alex Light88659142018-05-15 10:53:06 -0700428}
429
430art_cc_test_library {
431 name: "libtistresss",
432 defaults: ["libtistress-static-defaults"],
433 static_libs: ["libartbase"],
434}
435
436art_cc_test_library {
437 name: "libtistressds",
438 defaults: [
439 "art_debug_defaults",
440 "libtistress-static-defaults"
441 ],
442 static_libs: ["libartbased"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700443}
444
Colin Crossafd3c9e2016-09-16 13:47:21 -0700445cc_defaults {
446 name: "libarttest-defaults",
447 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700448 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700449 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700450 ],
451 srcs: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700452 "004-JniTest/jni_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700453 "004-ReferenceMap/stack_walk_refmap_jni.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000454 "004-SignalTest/signaltest.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700455 "004-StackWalk/stack_walk_jni.cc",
456 "004-ThreadStress/thread_stress.cc",
457 "004-UnsafeTest/unsafe_test.cc",
458 "044-proxy/native_proxy.cc",
459 "051-thread/thread_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700460 "1337-gc-coverage/gc_coverage.cc",
461 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
462 "137-cfi/cfi.cc",
463 "139-register-natives/regnative.cc",
464 "141-class-unload/jni_unload.cc",
465 "148-multithread-gc-annotations/gc_coverage.cc",
466 "149-suspend-all-stress/suspend_all.cc",
Mathieu Chartier72a32892017-01-24 09:40:56 -0800467 "154-gc-loop/heap_interface.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800468 "167-visit-locks/visit_locks.cc",
Andreas Gampe56776012018-01-26 17:40:55 -0800469 "169-threadgroup-jni/jni_daemon_thread.cc",
Mathieu Chartieradc90862018-05-11 13:03:06 -0700470 "172-app-image-twice/debug_print_class.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000471 "1945-proxy-method-arguments/get_args.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800472 "203-multi-checkpoint/multi_checkpoint.cc",
Alex Lightf4ed7e82018-01-17 11:52:36 -0800473 "305-other-fault-handler/fault_handler.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700474 "454-get-vreg/get_vreg_jni.cc",
475 "457-regs/regs_jni.cc",
476 "461-get-reference-vreg/get_reference_vreg_jni.cc",
477 "466-get-live-vreg/get_live_vreg_jni.cc",
478 "497-inlining-and-class-loader/clear_dex_cache.cc",
479 "543-env-long-ref/env_long_ref.cc",
480 "566-polymorphic-inlining/polymorphic_inline.cc",
481 "570-checker-osr/osr.cc",
482 "595-profile-saving/profile-saving.cc",
483 "596-app-images/app_images.cc",
Hans Boehm6fe97e02016-05-04 18:35:57 -0700484 "596-monitor-inflation/monitor_inflation.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700485 "597-deopt-new-string/deopt.cc",
Alexey Grebenkinbe4c2bd2018-02-01 19:09:59 +0300486 "616-cha-unloading/cha_unload.cc",
Vladimir Markoc5798bf2016-12-09 10:20:54 +0000487 "626-const-class-linking/clear_dex_cache_types.cc",
Nicolas Geoffray13a797b2017-03-15 16:41:31 +0000488 "642-fp-callees/fp_callees.cc",
Vladimir Marko5fdd7782017-04-20 11:26:03 +0100489 "647-jni-get-field-id/get_field_id.cc",
Roland Levillain0d2323e2017-06-26 18:14:39 +0100490 "656-annotation-lookup-generic-jni/test.cc",
Igor Murashkin545412b2017-08-17 15:26:54 -0700491 "661-oat-writer-layout/oat_writer_layout.cc",
492 "664-aget-verifier/aget-verifier.cc",
Vladimir Marko2196c652017-11-30 16:16:07 +0000493 "667-jit-jni-stub/jit_jni_stub_test.cc",
David Brazdil11b67b22018-01-18 16:41:40 +0000494 "674-hiddenapi/hiddenapi.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700495 "708-jit-cache-churn/jit.cc",
Alexey Grebenkince750492018-05-31 23:42:20 +0300496 "800-smali/jni.cc",
Alex Lightf889c702018-02-23 15:25:45 -0800497 "909-attach-agent/disallow_debugging.cc",
Mathieu Chartier00fbe4f2019-01-02 16:52:38 -0800498 "1001-app-image-regions/app_image_regions.cc",
Alex Lighte34fe442018-02-21 17:35:55 -0800499 "1947-breakpoint-redefine-deopt/check_deopt.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000500 "common/runtime_state.cc",
501 "common/stack_inspect.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700502 ],
503 shared_libs: [
504 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700505 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700506 "libnativehelper",
507 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700508}
509
510art_cc_test_library {
511 name: "libarttest",
512 defaults: ["libarttest-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800513 shared_libs: [
514 "libart",
515 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700516 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700517 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800518 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700519}
520
521art_cc_test_library {
522 name: "libarttestd",
523 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700524 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700525 "libarttest-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700526 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800527 shared_libs: [
528 "libartd",
529 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700530 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700531 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800532 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700533}
534
535art_cc_test_library {
536 name: "libnativebridgetest",
537 shared_libs: ["libart"],
538 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700539 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700540 "art_debug_defaults",
541 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700542 ],
Jiyong Parkb756f702019-01-28 22:40:47 +0900543 header_libs: ["libnativebridge-headers"],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700544 srcs: ["115-native-bridge/nativebridge.cc"],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700545}