Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 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 | // |
| 16 | |
| 17 | art_cc_defaults { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 18 | name: "art_test_defaults", |
| 19 | host_supported: true, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 20 | 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 Cross | fd5428b | 2016-09-19 10:40:05 -0700 | [diff] [blame] | 39 | darwin: { |
| 40 | enabled: false, |
| 41 | }, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 42 | }, |
Dan Albert | b5d36de | 2016-09-21 14:56:51 -0700 | [diff] [blame] | 43 | cflags: [ |
| 44 | "-Wno-frame-larger-than=", |
| 45 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | art_cc_defaults { |
| 49 | name: "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 50 | test_per_src: true, |
| 51 | // These really are gtests, but the gtest library comes from libart-gtest.so |
| 52 | gtest: false, |
| 53 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 54 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 55 | "art_debug_defaults", |
| 56 | "art_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 57 | ], |
| 58 | |
| 59 | shared_libs: [ |
| 60 | "libartd", |
| 61 | "libartd-disassembler", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 62 | "libvixld", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 63 | "libart-gtest", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 64 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 65 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 66 | "libartbased", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 67 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 68 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 69 | "libicuuc", |
| 70 | "libicui18n", |
| 71 | "libnativehelper", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 72 | "libz", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 73 | ], |
| 74 | whole_static_libs: [ |
| 75 | "libsigchain", |
| 76 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 77 | |
| 78 | target: { |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 79 | linux: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 80 | 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 Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 88 | cflags: [ |
| 89 | // gtest issue |
| 90 | "-Wno-used-but-marked-unused", |
| 91 | "-Wno-deprecated", |
| 92 | "-Wno-missing-noreturn", |
| 93 | ], |
| 94 | }, |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 95 | host: { |
| 96 | shared_libs: [ |
| 97 | "libziparchive", |
| 98 | ], |
| 99 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 100 | android: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 101 | shared_libs: [ |
Dimitry Ivanov | 9642b1b | 2016-09-28 02:44:00 -0700 | [diff] [blame] | 102 | "liblog", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 103 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 104 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 105 | }, |
| 106 | } |
| 107 | |
| 108 | art_cc_defaults { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 109 | name: "libart-gtest-defaults", |
| 110 | host_supported: true, |
| 111 | defaults: [ |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 112 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 113 | "art_defaults", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 114 | ], |
| 115 | shared_libs: [ |
| 116 | "libartd", |
| 117 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 118 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 119 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 120 | "libartbased", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 121 | ], |
| 122 | static_libs: [ |
| 123 | "libgtest", |
| 124 | ], |
| 125 | target: { |
| 126 | android32: { |
Colin Cross | c5c7187 | 2016-09-15 21:07:29 -0700 | [diff] [blame] | 127 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 128 | }, |
| 129 | android64: { |
| 130 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"], |
| 131 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 132 | linux: { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 133 | cflags: [ |
| 134 | // gtest issue |
| 135 | "-Wno-used-but-marked-unused", |
| 136 | "-Wno-deprecated", |
| 137 | "-Wno-missing-noreturn", |
| 138 | ], |
| 139 | }, |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 140 | darwin: { |
| 141 | enabled: false, |
| 142 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 143 | }, |
| 144 | } |
| 145 | |
| 146 | art_cc_library { |
| 147 | name: "libart-gtest", |
| 148 | host_supported: true, |
| 149 | whole_static_libs: [ |
| 150 | "libart-compiler-gtest", |
| 151 | "libart-runtime-gtest", |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 152 | "libartbase-art-gtest", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 153 | "libgtest", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 154 | ], |
| 155 | shared_libs: [ |
| 156 | "libartd", |
| 157 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 158 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 159 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 160 | "libartbased", |
Colin Cross | f0af906 | 2016-10-21 10:50:31 -0700 | [diff] [blame] | 161 | "libbase", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 162 | "libbacktrace", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 163 | ], |
| 164 | target: { |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 165 | darwin: { |
| 166 | enabled: false, |
| 167 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 168 | }, |
| 169 | } |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 170 | |
| 171 | cc_defaults { |
| 172 | name: "libartagent-defaults", |
| 173 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 174 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 175 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 176 | ], |
| 177 | shared_libs: [ |
| 178 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 179 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 180 | "libnativehelper", |
| 181 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | art_cc_test_library { |
| 185 | name: "libartagent", |
| 186 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 187 | defaults: ["libartagent-defaults"], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 188 | shared_libs: [ |
| 189 | "libart", |
| 190 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 191 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 192 | "libartbase", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 193 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 194 | } |
| 195 | |
| 196 | art_cc_test_library { |
| 197 | name: "libartagentd", |
| 198 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 199 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 200 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 201 | "libartagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 202 | ], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 203 | shared_libs: [ |
| 204 | "libartd", |
| 205 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 206 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 207 | "libartbased", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 208 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 209 | } |
| 210 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 211 | art_cc_defaults { |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 212 | name: "libtiagent-base-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 213 | defaults: [ |
| 214 | "art_test_defaults", |
| 215 | "art_defaults", |
| 216 | // Not derived from libartagent-defaults for NDK. |
| 217 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 218 | srcs: [ |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 219 | // These are the ART-independent parts. |
Andreas Gampe | 4665167 | 2017-04-07 09:00:04 -0700 | [diff] [blame] | 220 | "ti-agent/agent_common.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 221 | "ti-agent/agent_startup.cc", |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 222 | "ti-agent/jni_binder.cc", |
| 223 | "ti-agent/jvmti_helper.cc", |
| 224 | "ti-agent/test_env.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 225 | "ti-agent/breakpoint_helper.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 226 | "ti-agent/common_helper.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 227 | "ti-agent/early_return_helper.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 228 | "ti-agent/frame_pop_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 229 | "ti-agent/locals_helper.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 230 | "ti-agent/monitors_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 231 | "ti-agent/redefinition_helper.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 232 | "ti-agent/suspension_helper.cc", |
Alex Light | b4e6507 | 2019-04-25 15:10:32 -0700 | [diff] [blame] | 233 | "ti-agent/suspend_event_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 234 | "ti-agent/stack_trace_helper.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 235 | "ti-agent/threads_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 236 | "ti-agent/trace_helper.cc", |
Alex Light | 9fb1ab1 | 2017-09-05 09:32:49 -0700 | [diff] [blame] | 237 | "ti-agent/exceptions_helper.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 238 | // This is the list of non-special OnLoad things and excludes BCI and anything that depends |
| 239 | // on ART internals. |
Andreas Gampe | 6dee92e | 2016-09-12 19:58:13 -0700 | [diff] [blame] | 240 | "903-hello-tagging/tagging.cc", |
Andreas Gampe | 27fa96c | 2016-10-07 15:05:24 -0700 | [diff] [blame] | 241 | "904-object-allocation/tracking.cc", |
Andreas Gampe | cc13b22 | 2016-10-10 19:09:09 -0700 | [diff] [blame] | 242 | "905-object-free/tracking_free.cc", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 243 | "906-iterate-heap/iterate_heap.cc", |
Andreas Gampe | aa8b60c | 2016-10-12 12:51:25 -0700 | [diff] [blame] | 244 | "907-get-loaded-classes/get_loaded_classes.cc", |
Andreas Gampe | 9b8c588 | 2016-10-21 15:27:46 -0700 | [diff] [blame] | 245 | "908-gc-start-finish/gc_callbacks.cc", |
Andreas Gampe | 3c252f0 | 2016-10-27 18:25:17 -0700 | [diff] [blame] | 246 | "910-methods/methods.cc", |
Andreas Gampe | b5eb94a | 2016-10-27 19:23:09 -0700 | [diff] [blame] | 247 | "911-get-stack-trace/stack_trace.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 248 | "912-classes/classes.cc", |
Andreas Gampe | e0f8ed9 | 2017-04-13 16:52:23 -0700 | [diff] [blame] | 249 | "913-heaps/heaps.cc", |
Andreas Gampe | ab2f0d0 | 2017-01-05 17:23:45 -0800 | [diff] [blame] | 250 | "918-fields/fields.cc", |
Andreas Gampe | 50a4e49 | 2017-01-06 18:00:20 -0800 | [diff] [blame] | 251 | "920-objects/objects.cc", |
Andreas Gampe | 1bdaf73 | 2017-01-09 19:21:06 -0800 | [diff] [blame] | 252 | "922-properties/properties.cc", |
Andreas Gampe | 319dbe8 | 2017-01-09 16:42:21 -0800 | [diff] [blame] | 253 | "923-monitors/monitors.cc", |
Andreas Gampe | af13ab9 | 2017-01-11 20:57:40 -0800 | [diff] [blame] | 254 | "924-threads/threads.cc", |
Andreas Gampe | d18d9e2 | 2017-01-16 16:08:45 +0000 | [diff] [blame] | 255 | "925-threadgroups/threadgroups.cc", |
Andreas Gampe | 35bcf81 | 2017-01-13 16:24:17 -0800 | [diff] [blame] | 256 | "927-timers/timers.cc", |
Andreas Gampe | 6f8e4f0 | 2017-01-16 18:18:14 -0800 | [diff] [blame] | 257 | "928-jni-table/jni_table.cc", |
Andreas Gampe | ce7732b | 2017-01-17 15:50:26 -0800 | [diff] [blame] | 258 | "929-search/search.cc", |
Andreas Gampe | 732b0ac | 2017-01-18 15:23:39 -0800 | [diff] [blame] | 259 | "931-agent-thread/agent_thread.cc", |
Andreas Gampe | eb0cea1 | 2017-01-23 08:50:04 -0800 | [diff] [blame] | 260 | "933-misc-events/misc_events.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 261 | "945-obsolete-native/obsolete_native.cc", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 262 | "983-source-transform-verify/source_transform.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 263 | "984-obsolete-invoke/obsolete_invoke.cc", |
Alex Light | d78ddec | 2017-04-18 15:20:38 -0700 | [diff] [blame] | 264 | "986-native-method-bind/native_bind.cc", |
Alex Light | 65af20b | 2017-04-20 09:15:08 -0700 | [diff] [blame] | 265 | "987-agent-bind/agent_bind.cc", |
Alex Light | e85595e | 2018-08-17 15:54:34 -0700 | [diff] [blame] | 266 | "988-method-trace/trace_fib.cc", |
Alex Light | b7edcda | 2017-04-27 13:20:31 -0700 | [diff] [blame] | 267 | "989-method-trace-throw/method_trace.cc", |
Alex Light | 7c95849 | 2017-06-16 08:59:19 -0700 | [diff] [blame] | 268 | "991-field-trace-2/field_trace.cc", |
Alex Light | 6fa7b81 | 2017-06-16 09:04:29 -0700 | [diff] [blame] | 269 | "992-source-data/source_file.cc", |
Alex Light | c38c369 | 2017-06-27 15:45:14 -0700 | [diff] [blame] | 270 | "993-breakpoints/breakpoints.cc", |
| 271 | "996-breakpoint-obsolete/obsolete_breakpoints.cc", |
Alex Light | 8ddfd9f | 2017-07-05 16:33:46 -0700 | [diff] [blame] | 272 | "1900-track-alloc/alloc.cc", |
Alex Light | 4c17428 | 2017-07-05 10:18:18 -0700 | [diff] [blame] | 273 | "1901-get-bytecodes/bytecodes.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 274 | "1905-suspend-native/native_suspend.cc", |
| 275 | "1908-suspend-native-resume-self/native_suspend_resume.cc", |
Alex Light | 092a404 | 2017-07-12 08:46:44 -0700 | [diff] [blame] | 276 | "1909-per-agent-tls/agent_tls.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 277 | "1914-get-local-instance/local_instance.cc", |
Alex Light | 1d8a974 | 2017-08-17 11:12:06 -0700 | [diff] [blame] | 278 | "1919-vminit-thread-start-timing/vminit.cc", |
Alex Light | 23aa748 | 2017-08-16 10:01:13 -0700 | [diff] [blame] | 279 | "1920-suspend-native-monitor/native_suspend_monitor.cc", |
| 280 | "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc", |
Alex Light | 88e1ddd | 2017-08-21 13:09:55 -0700 | [diff] [blame] | 281 | "1922-owned-monitors-info/owned_monitors.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 282 | "1924-frame-pop-toggle/frame_pop_toggle.cc", |
| 283 | "1926-missed-frame-pop/frame_pop_missed.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 284 | "1927-exception-event/exception_event.cc", |
| 285 | "1930-monitor-info/monitor.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 286 | "1932-monitor-events-misc/monitor_misc.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 287 | "1934-jvmti-signal-thread/signal_threads.cc", |
Alex Light | 3dea212 | 2017-10-11 15:56:48 +0000 | [diff] [blame] | 288 | "1939-proxy-frames/local_instance.cc", |
Alex Light | b284f8d | 2017-11-21 00:00:48 +0000 | [diff] [blame] | 289 | "1941-dispose-stress/dispose_stress.cc", |
Alex Light | 4d77daf | 2018-01-04 11:51:14 -0800 | [diff] [blame] | 290 | "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc", |
| 291 | "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc", |
Alex Light | c758875 | 2018-02-20 11:15:54 -0800 | [diff] [blame] | 292 | "1946-list-descriptors/descriptors.cc", |
Alex Light | 9e7859c | 2018-04-05 13:49:43 -0700 | [diff] [blame] | 293 | "1950-unprepared-transform/unprepared_transform.cc", |
Alex Light | c98f83e | 2018-07-26 08:28:36 -0700 | [diff] [blame] | 294 | "1951-monitor-enter-no-suspend/raw_monitor.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 295 | "1953-pop-frame/pop_frame.cc", |
Alex Light | ae45cbb | 2018-10-18 15:49:56 -0700 | [diff] [blame] | 296 | "1957-error-ext/lasterror.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 297 | // TODO Renumber |
Alex Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 298 | "1962-multi-thread-events/multi_thread_events.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 299 | "1963-add-to-dex-classloader-in-memory/add_to_loader.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 300 | "1968-force-early-return/force_early_return.cc", |
| 301 | "1969-force-early-return-void/force_early_return_void.cc", |
| 302 | "1970-force-early-return-long/force_early_return_long.cc", |
Alex Light | c14ec8f | 2019-07-18 16:08:41 -0700 | [diff] [blame^] | 303 | "1974-resize-array/resize_array.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 304 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 305 | // Use NDK-compatible headers for ctstiagent. |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 306 | header_libs: [ |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 307 | "libopenjdkjvmti_headers", |
| 308 | ], |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 309 | local_include_dirs: ["ti-agent"], |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 310 | } |
| 311 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 312 | art_cc_defaults { |
| 313 | name: "libtiagent-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 314 | defaults: [ |
| 315 | "libtiagent-base-defaults", |
| 316 | "libartagent-defaults", |
| 317 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 318 | srcs: [ |
| 319 | // This is to get the IsInterpreted native method. |
| 320 | "common/stack_inspect.cc", |
| 321 | "common/runtime_state.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 322 | "ti-agent/common_load.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 323 | // This includes the remaining test functions. We should try to refactor things to |
| 324 | // make this list smaller. |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 325 | "901-hello-ti-agent/basics.cc", |
| 326 | "909-attach-agent/attach.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 327 | "912-classes/classes_art.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 328 | "936-search-onload/search_onload.cc", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 329 | "980-redefine-object/redef_object.cc", |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 330 | "983-source-transform-verify/source_transform_art.cc", |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 331 | "1940-ddms-ext/ddm_ext.cc", |
Alex Light | 0e84118 | 2018-02-12 17:42:50 +0000 | [diff] [blame] | 332 | "1944-sudden-exit/sudden_exit.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 333 | // "1952-pop-frame-jit/pop_frame.cc", |
Alex Light | fc81d80 | 2018-12-07 13:39:05 -0800 | [diff] [blame] | 334 | "1959-redefine-object-instrument/fake_redef_object.cc", |
Alex Light | e7a3354 | 2019-04-10 14:22:49 -0700 | [diff] [blame] | 335 | "1960-obsolete-jit-multithread-native/native_say_hi.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 336 | "1964-add-to-dex-classloader-file/add_to_loader.cc", |
Alex Light | 098e7a6 | 2019-05-21 16:57:10 -0700 | [diff] [blame] | 337 | "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 338 | ], |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 339 | static_libs: [ |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 340 | "libz", |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 341 | "slicer_no_rtti", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 342 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 343 | } |
| 344 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 345 | art_cc_test_library { |
| 346 | name: "libtiagent", |
| 347 | defaults: ["libtiagent-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 348 | shared_libs: [ |
| 349 | "libart", |
| 350 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 351 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 352 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 353 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 354 | } |
| 355 | |
| 356 | art_cc_test_library { |
| 357 | name: "libtiagentd", |
| 358 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 359 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 360 | "libtiagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 361 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 362 | shared_libs: [ |
| 363 | "libartd", |
| 364 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 365 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 366 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 367 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 368 | } |
| 369 | |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 370 | cc_library_static { |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 371 | name: "libctstiagent", |
| 372 | defaults: ["libtiagent-base-defaults"], |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 373 | host_supported: false, |
| 374 | srcs: [ |
| 375 | "983-source-transform-verify/source_transform_slicer.cc", |
| 376 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 377 | whole_static_libs: [ |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 378 | "slicer_ndk_no_rtti", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 379 | ], |
| 380 | static_libs: [ |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 381 | "libbase_ndk", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 382 | ], |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 383 | shared_libs: [ |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 384 | "libz", // for slicer (using adler32). |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 385 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 386 | sdk_version: "current", |
| 387 | stl: "c++_static", |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 388 | header_libs: [ |
| 389 | "jni_headers", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 390 | // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are |
| 391 | // many problems with how we export headers that are making doing this the 'right' way |
| 392 | // difficult. |
| 393 | // TODO: move those headers to art/ rather than under runtime. |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 394 | "libart_runtime_headers_ndk", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 395 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 396 | export_include_dirs: ["ti-agent"], |
| 397 | } |
| 398 | |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 399 | art_cc_defaults { |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 400 | name: "libtistress-srcs", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 401 | defaults: ["libartagent-defaults"], |
| 402 | srcs: [ |
| 403 | "ti-stress/stress.cc", |
| 404 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 405 | header_libs: ["libopenjdkjvmti_headers"], |
| 406 | } |
| 407 | |
| 408 | art_cc_defaults { |
| 409 | name: "libtistress-defaults", |
| 410 | defaults: ["libtistress-srcs"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 411 | shared_libs: [ |
| 412 | "libbase", |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 413 | "slicer_no_rtti", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 414 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 415 | } |
| 416 | |
| 417 | art_cc_test_library { |
| 418 | name: "libtistress", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 419 | defaults: ["libtistress-defaults"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 420 | shared_libs: ["libartbase"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 421 | } |
| 422 | |
| 423 | art_cc_test_library { |
| 424 | name: "libtistressd", |
| 425 | defaults: [ |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 426 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 427 | "libtistress-defaults", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 428 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 429 | shared_libs: ["libartbased"], |
| 430 | } |
| 431 | |
| 432 | art_cc_defaults { |
| 433 | name: "libtistress-static-defaults", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 434 | defaults: [ |
| 435 | "libtistress-srcs", |
| 436 | "libart_static_defaults", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 437 | ], |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 438 | static_libs: ["slicer_no_rtti"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 439 | } |
| 440 | |
| 441 | art_cc_test_library { |
| 442 | name: "libtistresss", |
| 443 | defaults: ["libtistress-static-defaults"], |
| 444 | static_libs: ["libartbase"], |
| 445 | } |
| 446 | |
| 447 | art_cc_test_library { |
| 448 | name: "libtistressds", |
| 449 | defaults: [ |
| 450 | "art_debug_defaults", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 451 | "libtistress-static-defaults", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 452 | ], |
| 453 | static_libs: ["libartbased"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 454 | } |
| 455 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 456 | cc_defaults { |
| 457 | name: "libarttest-defaults", |
| 458 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 459 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 460 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 461 | ], |
| 462 | srcs: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 463 | "004-JniTest/jni_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 464 | "004-ReferenceMap/stack_walk_refmap_jni.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 465 | "004-SignalTest/signaltest.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 466 | "004-StackWalk/stack_walk_jni.cc", |
| 467 | "004-ThreadStress/thread_stress.cc", |
| 468 | "004-UnsafeTest/unsafe_test.cc", |
| 469 | "044-proxy/native_proxy.cc", |
| 470 | "051-thread/thread_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 471 | "1337-gc-coverage/gc_coverage.cc", |
| 472 | "136-daemon-jni-shutdown/daemon_jni_shutdown.cc", |
| 473 | "137-cfi/cfi.cc", |
| 474 | "139-register-natives/regnative.cc", |
| 475 | "141-class-unload/jni_unload.cc", |
| 476 | "148-multithread-gc-annotations/gc_coverage.cc", |
| 477 | "149-suspend-all-stress/suspend_all.cc", |
Mathieu Chartier | 72a3289 | 2017-01-24 09:40:56 -0800 | [diff] [blame] | 478 | "154-gc-loop/heap_interface.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 479 | "167-visit-locks/visit_locks.cc", |
Andreas Gampe | 5677601 | 2018-01-26 17:40:55 -0800 | [diff] [blame] | 480 | "169-threadgroup-jni/jni_daemon_thread.cc", |
Mathieu Chartier | adc9086 | 2018-05-11 13:03:06 -0700 | [diff] [blame] | 481 | "172-app-image-twice/debug_print_class.cc", |
Vladimir Marko | 422a9eb | 2019-08-01 12:54:07 +0100 | [diff] [blame] | 482 | "177-visibly-initialized-deadlock/visibly_initialized.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 483 | "1945-proxy-method-arguments/get_args.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 484 | "203-multi-checkpoint/multi_checkpoint.cc", |
Alex Light | f4ed7e8 | 2018-01-17 11:52:36 -0800 | [diff] [blame] | 485 | "305-other-fault-handler/fault_handler.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 486 | "454-get-vreg/get_vreg_jni.cc", |
| 487 | "457-regs/regs_jni.cc", |
| 488 | "461-get-reference-vreg/get_reference_vreg_jni.cc", |
| 489 | "466-get-live-vreg/get_live_vreg_jni.cc", |
| 490 | "497-inlining-and-class-loader/clear_dex_cache.cc", |
| 491 | "543-env-long-ref/env_long_ref.cc", |
| 492 | "566-polymorphic-inlining/polymorphic_inline.cc", |
| 493 | "570-checker-osr/osr.cc", |
| 494 | "595-profile-saving/profile-saving.cc", |
| 495 | "596-app-images/app_images.cc", |
Hans Boehm | 6fe97e0 | 2016-05-04 18:35:57 -0700 | [diff] [blame] | 496 | "596-monitor-inflation/monitor_inflation.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 497 | "597-deopt-new-string/deopt.cc", |
Alexey Grebenkin | be4c2bd | 2018-02-01 19:09:59 +0300 | [diff] [blame] | 498 | "616-cha-unloading/cha_unload.cc", |
Vladimir Marko | c5798bf | 2016-12-09 10:20:54 +0000 | [diff] [blame] | 499 | "626-const-class-linking/clear_dex_cache_types.cc", |
Nicolas Geoffray | 13a797b | 2017-03-15 16:41:31 +0000 | [diff] [blame] | 500 | "642-fp-callees/fp_callees.cc", |
Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 501 | "647-jni-get-field-id/get_field_id.cc", |
Roland Levillain | 0d2323e | 2017-06-26 18:14:39 +0100 | [diff] [blame] | 502 | "656-annotation-lookup-generic-jni/test.cc", |
Igor Murashkin | 545412b | 2017-08-17 15:26:54 -0700 | [diff] [blame] | 503 | "661-oat-writer-layout/oat_writer_layout.cc", |
| 504 | "664-aget-verifier/aget-verifier.cc", |
Vladimir Marko | 2196c65 | 2017-11-30 16:16:07 +0000 | [diff] [blame] | 505 | "667-jit-jni-stub/jit_jni_stub_test.cc", |
David Brazdil | 11b67b2 | 2018-01-18 16:41:40 +0000 | [diff] [blame] | 506 | "674-hiddenapi/hiddenapi.cc", |
David Brazdil | 331a5e1 | 2019-04-01 22:46:16 +0000 | [diff] [blame] | 507 | "692-vdex-inmem-loader/vdex_inmem_loader.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 508 | "708-jit-cache-churn/jit.cc", |
Alexey Grebenkin | ce75049 | 2018-05-31 23:42:20 +0300 | [diff] [blame] | 509 | "800-smali/jni.cc", |
Alex Light | f889c70 | 2018-02-23 15:25:45 -0800 | [diff] [blame] | 510 | "909-attach-agent/disallow_debugging.cc", |
Mathieu Chartier | 00fbe4f | 2019-01-02 16:52:38 -0800 | [diff] [blame] | 511 | "1001-app-image-regions/app_image_regions.cc", |
Mathieu Chartier | 175ce3d | 2019-03-06 16:54:24 -0800 | [diff] [blame] | 512 | "1002-notify-startup/startup_interface.cc", |
Alex Light | e34fe44 | 2018-02-21 17:35:55 -0800 | [diff] [blame] | 513 | "1947-breakpoint-redefine-deopt/check_deopt.cc", |
Alex Light | f367747 | 2019-06-26 16:31:53 -0700 | [diff] [blame] | 514 | "1972-jni-id-swap-indices/jni_id.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 515 | "common/runtime_state.cc", |
| 516 | "common/stack_inspect.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 517 | ], |
| 518 | shared_libs: [ |
| 519 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 520 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 521 | "libnativehelper", |
| 522 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 523 | } |
| 524 | |
| 525 | art_cc_test_library { |
| 526 | name: "libarttest", |
| 527 | defaults: ["libarttest-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 528 | shared_libs: [ |
| 529 | "libart", |
| 530 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 531 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 532 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 533 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 534 | } |
| 535 | |
| 536 | art_cc_test_library { |
| 537 | name: "libarttestd", |
| 538 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 539 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 540 | "libarttest-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 541 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 542 | shared_libs: [ |
| 543 | "libartd", |
| 544 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 545 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 546 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 547 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 548 | } |
| 549 | |
David Srbecky | 68fa4ca | 2019-04-30 16:51:13 +0100 | [diff] [blame] | 550 | art_cc_defaults { |
| 551 | name: "libnativebridgetest-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 552 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 553 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 554 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 555 | ], |
Jiyong Park | b756f70 | 2019-01-28 22:40:47 +0900 | [diff] [blame] | 556 | header_libs: ["libnativebridge-headers"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 557 | srcs: ["115-native-bridge/nativebridge.cc"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 558 | } |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 559 | |
David Srbecky | 68fa4ca | 2019-04-30 16:51:13 +0100 | [diff] [blame] | 560 | art_cc_test_library { |
| 561 | name: "libnativebridgetest", |
| 562 | shared_libs: ["libart"], |
| 563 | defaults: [ |
| 564 | "libnativebridgetest-defaults", |
| 565 | ], |
| 566 | } |
| 567 | |
| 568 | art_cc_test_library { |
| 569 | name: "libnativebridgetestd", |
| 570 | shared_libs: ["libartd"], |
| 571 | defaults: [ |
| 572 | "libnativebridgetest-defaults", |
| 573 | "art_debug_defaults", |
| 574 | ], |
| 575 | } |
| 576 | |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 577 | filegroup { |
| 578 | name: "art_cts_jvmti_test_library", |
| 579 | srcs: [ |
| 580 | // shim classes. We use one that exposes the common functionality. |
Alex Light | 23ca8fb | 2019-05-10 11:27:02 -0700 | [diff] [blame] | 581 | "jvmti-common/Redefinition.java", |
| 582 | "jvmti-common/Main.java", |
| 583 | "jvmti-common/Trace.java", |
| 584 | "jvmti-common/Breakpoint.java", |
| 585 | "jvmti-common/Suspension.java", |
| 586 | "jvmti-common/Locals.java", |
| 587 | "jvmti-common/StackTrace.java", |
| 588 | "jvmti-common/FramePop.java", |
| 589 | "jvmti-common/Exceptions.java", |
| 590 | "jvmti-common/Monitors.java", |
| 591 | "jvmti-common/Threads.java", |
| 592 | "jvmti-common/SuspendEvents.java", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 593 | |
| 594 | // Actual test classes. |
| 595 | "901-hello-ti-agent/src/art/Test901.java", |
| 596 | "902-hello-transformation/src/art/Test902.java", |
| 597 | "903-hello-tagging/src/art/Test903.java", |
| 598 | "904-object-allocation/src/art/Test904.java", |
| 599 | "905-object-free/src/art/Test905.java", |
| 600 | "906-iterate-heap/src/art/Test906.java", |
| 601 | "907-get-loaded-classes/src/art/Test907.java", |
| 602 | "907-get-loaded-classes/src/art/Cerr.java", |
| 603 | "908-gc-start-finish/src/art/Test908.java", |
| 604 | "910-methods/src/art/Test910.java", |
| 605 | "911-get-stack-trace/src/art/Test911.java", |
| 606 | "911-get-stack-trace/src/art/AllTraces.java", |
| 607 | "911-get-stack-trace/src/art/ControlData.java", |
| 608 | "911-get-stack-trace/src/art/Frames.java", |
| 609 | "911-get-stack-trace/src/art/OtherThread.java", |
| 610 | "911-get-stack-trace/src/art/PrintThread.java", |
| 611 | "911-get-stack-trace/src/art/Recurse.java", |
| 612 | "911-get-stack-trace/src/art/SameThread.java", |
| 613 | "911-get-stack-trace/src/art/ThreadListTraces.java", |
| 614 | "912-classes/src-art/art/Test912.java", |
| 615 | "912-classes/src-art/art/DexData.java", |
| 616 | "913-heaps/src/art/Test913.java", |
| 617 | "914-hello-obsolescence/src/art/Test914.java", |
| 618 | "915-obsolete-2/src/art/Test915.java", |
| 619 | "917-fields-transformation/src/art/Test917.java", |
| 620 | "918-fields/src/art/Test918.java", |
| 621 | "919-obsolete-fields/src/art/Test919.java", |
| 622 | "920-objects/src/art/Test920.java", |
| 623 | "922-properties/src/art/Test922.java", |
| 624 | "923-monitors/src/art/Test923.java", |
| 625 | "924-threads/src/art/Test924.java", |
| 626 | "925-threadgroups/src/art/Test925.java", |
| 627 | "926-multi-obsolescence/src/art/Test926.java", |
| 628 | "927-timers/src/art/Test927.java", |
| 629 | "928-jni-table/src/art/Test928.java", |
| 630 | "930-hello-retransform/src/art/Test930.java", |
| 631 | "931-agent-thread/src/art/Test931.java", |
| 632 | "932-transform-saves/src/art/Test932.java", |
| 633 | "933-misc-events/src/art/Test933.java", |
| 634 | "940-recursive-obsolete/src/art/Test940.java", |
| 635 | "942-private-recursive/src/art/Test942.java", |
| 636 | "944-transform-classloaders/src/art/Test944.java", |
| 637 | "945-obsolete-native/src/art/Test945.java", |
| 638 | "947-reflect-method/src/art/Test947.java", |
| 639 | "951-threaded-obsolete/src/art/Test951.java", |
| 640 | "982-ok-no-retransform/src/art/Test982.java", |
| 641 | "983-source-transform-verify/src/art/Test983.java", |
| 642 | "984-obsolete-invoke/src/art/Test984.java", |
| 643 | "985-re-obsolete/src/art/Test985.java", |
| 644 | "986-native-method-bind/src/art/Test986.java", |
| 645 | "988-method-trace/src/art/Test988.java", |
| 646 | "988-method-trace/src/art/Test988Intrinsics.java", |
| 647 | "989-method-trace-throw/src/art/Test989.java", |
| 648 | "990-field-trace/src/art/Test990.java", |
| 649 | "991-field-trace-2/src/art/Test991.java", |
| 650 | "992-source-data/src/art/Test992.java", |
| 651 | "992-source-data/src/art/Target2.java", |
| 652 | "993-breakpoints/src/art/Test993.java", |
| 653 | "994-breakpoint-line/src/art/Test994.java", |
| 654 | "995-breakpoints-throw/src/art/Test995.java", |
| 655 | "996-breakpoint-obsolete/src/art/Test996.java", |
| 656 | "997-single-step/src/art/Test997.java", |
| 657 | "1900-track-alloc/src/art/Test1900.java", |
| 658 | "1901-get-bytecodes/src/art/Test1901.java", |
| 659 | "1902-suspend/src/art/Test1902.java", |
| 660 | "1903-suspend-self/src/art/Test1903.java", |
| 661 | "1904-double-suspend/src/art/Test1904.java", |
| 662 | "1906-suspend-list-me-first/src/art/Test1906.java", |
| 663 | "1907-suspend-list-self-twice/src/art/Test1907.java", |
| 664 | "1908-suspend-native-resume-self/src/art/Test1908.java", |
| 665 | "1909-per-agent-tls/src/art/Test1909.java", |
| 666 | "1910-transform-with-default/src/art/Test1910.java", |
| 667 | "1911-get-local-var-table/src/art/Test1911.java", |
| 668 | "1912-get-set-local-primitive/src/art/Test1912.java", |
| 669 | "1913-get-set-local-objects/src/art/Test1913.java", |
| 670 | "1914-get-local-instance/src/art/Test1914.java", |
| 671 | "1915-get-set-local-current-thread/src/art/Test1915.java", |
| 672 | "1916-get-set-current-frame/src/art/Test1916.java", |
| 673 | "1917-get-stack-frame/src/art/Test1917.java", |
| 674 | "1920-suspend-native-monitor/src/art/Test1920.java", |
| 675 | "1921-suspend-native-recursive-monitor/src/art/Test1921.java", |
| 676 | "1922-owned-monitors-info/src/art/Test1922.java", |
| 677 | "1923-frame-pop/src/art/Test1923.java", |
| 678 | "1924-frame-pop-toggle/src/art/Test1924.java", |
| 679 | "1925-self-frame-pop/src/art/Test1925.java", |
| 680 | "1926-missed-frame-pop/src/art/Test1926.java", |
| 681 | "1927-exception-event/src/art/Test1927.java", |
| 682 | "1928-exception-event-exception/src/art/Test1928.java", |
| 683 | "1930-monitor-info/src/art/Test1930.java", |
| 684 | "1931-monitor-events/src/art/Test1931.java", |
| 685 | "1932-monitor-events-misc/src/art/Test1932.java", |
| 686 | "1933-monitor-current-contended/src/art/Test1933.java", |
| 687 | "1934-jvmti-signal-thread/src/art/Test1934.java", |
| 688 | "1936-thread-end-events/src/art/Test1936.java", |
| 689 | "1937-transform-soft-fail/src/art/Test1937.java", |
| 690 | "1939-proxy-frames/src/art/Test1939.java", |
| 691 | "1941-dispose-stress/src/art/Test1941.java", |
| 692 | "1942-suspend-raw-monitor-exit/src/art/Test1942.java", |
| 693 | "1943-suspend-raw-monitor-wait/src/art/Test1943.java", |
| 694 | "1953-pop-frame/src/art/Test1953.java", |
| 695 | "1958-transform-try-jit/src/art/Test1958.java", |
Alex Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 696 | "1962-multi-thread-events/src/art/Test1962.java", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 697 | // TODO Renumber |
| 698 | // "1962-force-early-return/src/art/Test1962.java", |
| 699 | // "1963-force-early-return-void/src/art/Test1963.java", |
| 700 | // "1964-force-early-return-long/src/art/Test1964.java", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 701 | ], |
| 702 | } |
| 703 | |
| 704 | // CTS test runner in cts/hostsidetests/jvmti looks for an expected test |
| 705 | // result for the test NN in the file results.NN.expected.txt while in the |
| 706 | // source tree each expected test result is in the NN-xxxx/expected.txt. |
| 707 | // Copy+rename them them to a temporary directory and them zip them. |
| 708 | java_genrule { |
| 709 | name: "expected_cts_outputs", |
| 710 | srcs: [ |
| 711 | "901-hello-ti-agent/expected.txt", |
| 712 | "902-hello-transformation/expected.txt", |
| 713 | "903-hello-tagging/expected.txt", |
| 714 | "904-object-allocation/expected.txt", |
| 715 | "905-object-free/expected.txt", |
| 716 | "906-iterate-heap/expected.txt", |
| 717 | "907-get-loaded-classes/expected.txt", |
| 718 | "908-gc-start-finish/expected.txt", |
| 719 | "910-methods/expected.txt", |
| 720 | "911-get-stack-trace/expected.txt", |
| 721 | "912-classes/expected.txt", |
| 722 | "913-heaps/expected.txt", |
| 723 | "914-hello-obsolescence/expected.txt", |
| 724 | "915-obsolete-2/expected.txt", |
| 725 | "917-fields-transformation/expected.txt", |
| 726 | "918-fields/expected.txt", |
| 727 | "919-obsolete-fields/expected.txt", |
| 728 | "920-objects/expected.txt", |
| 729 | "922-properties/expected.txt", |
| 730 | "923-monitors/expected.txt", |
| 731 | "924-threads/expected.txt", |
| 732 | "925-threadgroups/expected.txt", |
| 733 | "926-multi-obsolescence/expected.txt", |
| 734 | "927-timers/expected.txt", |
| 735 | "928-jni-table/expected.txt", |
| 736 | "930-hello-retransform/expected.txt", |
| 737 | "931-agent-thread/expected.txt", |
| 738 | "932-transform-saves/expected.txt", |
| 739 | "933-misc-events/expected.txt", |
| 740 | "940-recursive-obsolete/expected.txt", |
| 741 | "942-private-recursive/expected.txt", |
| 742 | "944-transform-classloaders/expected.txt", |
| 743 | "945-obsolete-native/expected.txt", |
| 744 | "947-reflect-method/expected.txt", |
| 745 | "951-threaded-obsolete/expected.txt", |
| 746 | "982-ok-no-retransform/expected.txt", |
| 747 | "983-source-transform-verify/expected.txt", |
| 748 | "984-obsolete-invoke/expected.txt", |
| 749 | "985-re-obsolete/expected.txt", |
| 750 | "986-native-method-bind/expected.txt", |
| 751 | "988-method-trace/expected.txt", |
| 752 | "989-method-trace-throw/expected.txt", |
| 753 | "990-field-trace/expected.txt", |
| 754 | "991-field-trace-2/expected.txt", |
| 755 | "992-source-data/expected.txt", |
| 756 | "993-breakpoints/expected.txt", |
| 757 | "994-breakpoint-line/expected.txt", |
| 758 | "995-breakpoints-throw/expected.txt", |
| 759 | "996-breakpoint-obsolete/expected.txt", |
| 760 | "997-single-step/expected.txt", |
| 761 | "1900-track-alloc/expected.txt", |
| 762 | "1901-get-bytecodes/expected.txt", |
| 763 | "1902-suspend/expected.txt", |
| 764 | "1903-suspend-self/expected.txt", |
| 765 | "1904-double-suspend/expected.txt", |
| 766 | "1906-suspend-list-me-first/expected.txt", |
| 767 | "1907-suspend-list-self-twice/expected.txt", |
| 768 | "1908-suspend-native-resume-self/expected.txt", |
| 769 | "1909-per-agent-tls/expected.txt", |
| 770 | "1910-transform-with-default/expected.txt", |
| 771 | "1911-get-local-var-table/expected.txt", |
| 772 | "1912-get-set-local-primitive/expected.txt", |
| 773 | "1913-get-set-local-objects/expected.txt", |
| 774 | "1914-get-local-instance/expected.txt", |
| 775 | "1915-get-set-local-current-thread/expected.txt", |
| 776 | "1916-get-set-current-frame/expected.txt", |
| 777 | "1917-get-stack-frame/expected.txt", |
| 778 | "1920-suspend-native-monitor/expected.txt", |
| 779 | "1921-suspend-native-recursive-monitor/expected.txt", |
| 780 | "1922-owned-monitors-info/expected.txt", |
| 781 | "1923-frame-pop/expected.txt", |
| 782 | "1924-frame-pop-toggle/expected.txt", |
| 783 | "1925-self-frame-pop/expected.txt", |
| 784 | "1926-missed-frame-pop/expected.txt", |
| 785 | "1927-exception-event/expected.txt", |
| 786 | "1928-exception-event-exception/expected.txt", |
| 787 | "1930-monitor-info/expected.txt", |
| 788 | "1931-monitor-events/expected.txt", |
| 789 | "1932-monitor-events-misc/expected.txt", |
| 790 | "1933-monitor-current-contended/expected.txt", |
| 791 | "1934-jvmti-signal-thread/expected.txt", |
| 792 | "1936-thread-end-events/expected.txt", |
| 793 | "1937-transform-soft-fail/expected.txt", |
| 794 | "1939-proxy-frames/expected.txt", |
| 795 | "1941-dispose-stress/expected.txt", |
| 796 | "1942-suspend-raw-monitor-exit/expected.txt", |
| 797 | "1943-suspend-raw-monitor-wait/expected.txt", |
| 798 | "1953-pop-frame/expected.txt", |
| 799 | "1958-transform-try-jit/expected.txt", |
| 800 | ], |
| 801 | out: ["expected_cts_outputs.jar"], |
| 802 | tools: ["soong_zip"], |
| 803 | cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " + |
| 804 | "for f in $(in); do x=$${f#art/test/}; " + |
| 805 | "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " + |
| 806 | "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res", |
| 807 | } |