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", |
| 62 | "libvixld-arm", |
| 63 | "libvixld-arm64", |
| 64 | "libart-gtest", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 65 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 66 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 67 | "libartbased", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 68 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 69 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 70 | "libicuuc", |
| 71 | "libicui18n", |
| 72 | "libnativehelper", |
Dan Willemsen | 0e503b5 | 2017-09-27 16:05:49 -0700 | [diff] [blame] | 73 | "libz", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 74 | ], |
| 75 | whole_static_libs: [ |
| 76 | "libsigchain", |
| 77 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 78 | |
| 79 | target: { |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 80 | linux: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 81 | ldflags: [ |
| 82 | // Allow jni_compiler_test to find Java_MyClassNatives_bar |
| 83 | // within itself using dlopen(NULL, ...). |
| 84 | // Mac OS linker doesn't understand --export-dynamic. |
| 85 | "-Wl,--export-dynamic", |
| 86 | "-Wl,-u,Java_MyClassNatives_bar", |
| 87 | "-Wl,-u,Java_MyClassNatives_sbar", |
| 88 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 89 | cflags: [ |
| 90 | // gtest issue |
| 91 | "-Wno-used-but-marked-unused", |
| 92 | "-Wno-deprecated", |
| 93 | "-Wno-missing-noreturn", |
| 94 | ], |
| 95 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 96 | host: { |
| 97 | shared_libs: [ |
| 98 | "libziparchive", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 99 | ], |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 100 | }, |
| 101 | android: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 102 | shared_libs: [ |
Dimitry Ivanov | 9642b1b | 2016-09-28 02:44:00 -0700 | [diff] [blame] | 103 | "liblog", |
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 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 106 | }, |
| 107 | } |
| 108 | |
| 109 | art_cc_defaults { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 110 | name: "libart-gtest-defaults", |
| 111 | host_supported: true, |
| 112 | defaults: [ |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 113 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 114 | "art_defaults", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 115 | ], |
| 116 | shared_libs: [ |
| 117 | "libartd", |
| 118 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 119 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 120 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 121 | "libartbased", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 122 | ], |
| 123 | static_libs: [ |
| 124 | "libgtest", |
| 125 | ], |
| 126 | target: { |
| 127 | android32: { |
Colin Cross | c5c7187 | 2016-09-15 21:07:29 -0700 | [diff] [blame] | 128 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 129 | }, |
| 130 | android64: { |
| 131 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"], |
| 132 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 133 | linux: { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 134 | cflags: [ |
| 135 | // gtest issue |
| 136 | "-Wno-used-but-marked-unused", |
| 137 | "-Wno-deprecated", |
| 138 | "-Wno-missing-noreturn", |
| 139 | ], |
| 140 | }, |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 141 | darwin: { |
| 142 | enabled: false, |
| 143 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 144 | }, |
| 145 | } |
| 146 | |
| 147 | art_cc_library { |
| 148 | name: "libart-gtest", |
| 149 | host_supported: true, |
| 150 | whole_static_libs: [ |
| 151 | "libart-compiler-gtest", |
| 152 | "libart-runtime-gtest", |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 153 | "libartbase-art-gtest", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 154 | "libgtest", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 155 | ], |
| 156 | shared_libs: [ |
| 157 | "libartd", |
| 158 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 159 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 160 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 161 | "libartbased", |
Colin Cross | f0af906 | 2016-10-21 10:50:31 -0700 | [diff] [blame] | 162 | "libbase", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 163 | "libbacktrace", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 164 | ], |
| 165 | target: { |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 166 | darwin: { |
| 167 | enabled: false, |
| 168 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 169 | }, |
| 170 | } |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 171 | |
| 172 | cc_defaults { |
| 173 | name: "libartagent-defaults", |
| 174 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 175 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 176 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 177 | ], |
| 178 | shared_libs: [ |
| 179 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 180 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 181 | "libnativehelper", |
| 182 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 183 | } |
| 184 | |
| 185 | art_cc_test_library { |
| 186 | name: "libartagent", |
| 187 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 188 | defaults: ["libartagent-defaults"], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 189 | shared_libs: [ |
| 190 | "libart", |
| 191 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 192 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 193 | "libartbase", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 194 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 195 | } |
| 196 | |
| 197 | art_cc_test_library { |
| 198 | name: "libartagentd", |
| 199 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 200 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 201 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 202 | "libartagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 203 | ], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 204 | shared_libs: [ |
| 205 | "libartd", |
| 206 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 207 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 208 | "libartbased", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 209 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 210 | } |
| 211 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 212 | art_cc_defaults { |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 213 | name: "libtiagent-base-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 214 | defaults: [ |
| 215 | "art_test_defaults", |
| 216 | "art_defaults", |
| 217 | // Not derived from libartagent-defaults for NDK. |
| 218 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 219 | srcs: [ |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 220 | // These are the ART-independent parts. |
Andreas Gampe | 4665167 | 2017-04-07 09:00:04 -0700 | [diff] [blame] | 221 | "ti-agent/agent_common.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 222 | "ti-agent/agent_startup.cc", |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 223 | "ti-agent/jni_binder.cc", |
| 224 | "ti-agent/jvmti_helper.cc", |
| 225 | "ti-agent/test_env.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 226 | "ti-agent/breakpoint_helper.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 227 | "ti-agent/common_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 | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 233 | "ti-agent/stack_trace_helper.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 234 | "ti-agent/threads_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 235 | "ti-agent/trace_helper.cc", |
Alex Light | 9fb1ab1 | 2017-09-05 09:32:49 -0700 | [diff] [blame] | 236 | "ti-agent/exceptions_helper.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 237 | // This is the list of non-special OnLoad things and excludes BCI and anything that depends |
| 238 | // on ART internals. |
Andreas Gampe | 6dee92e | 2016-09-12 19:58:13 -0700 | [diff] [blame] | 239 | "903-hello-tagging/tagging.cc", |
Andreas Gampe | 27fa96c | 2016-10-07 15:05:24 -0700 | [diff] [blame] | 240 | "904-object-allocation/tracking.cc", |
Andreas Gampe | cc13b22 | 2016-10-10 19:09:09 -0700 | [diff] [blame] | 241 | "905-object-free/tracking_free.cc", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 242 | "906-iterate-heap/iterate_heap.cc", |
Andreas Gampe | aa8b60c | 2016-10-12 12:51:25 -0700 | [diff] [blame] | 243 | "907-get-loaded-classes/get_loaded_classes.cc", |
Andreas Gampe | 9b8c588 | 2016-10-21 15:27:46 -0700 | [diff] [blame] | 244 | "908-gc-start-finish/gc_callbacks.cc", |
Andreas Gampe | 3c252f0 | 2016-10-27 18:25:17 -0700 | [diff] [blame] | 245 | "910-methods/methods.cc", |
Andreas Gampe | b5eb94a | 2016-10-27 19:23:09 -0700 | [diff] [blame] | 246 | "911-get-stack-trace/stack_trace.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 247 | "912-classes/classes.cc", |
Andreas Gampe | e0f8ed9 | 2017-04-13 16:52:23 -0700 | [diff] [blame] | 248 | "913-heaps/heaps.cc", |
Andreas Gampe | ab2f0d0 | 2017-01-05 17:23:45 -0800 | [diff] [blame] | 249 | "918-fields/fields.cc", |
Andreas Gampe | 50a4e49 | 2017-01-06 18:00:20 -0800 | [diff] [blame] | 250 | "920-objects/objects.cc", |
Andreas Gampe | 1bdaf73 | 2017-01-09 19:21:06 -0800 | [diff] [blame] | 251 | "922-properties/properties.cc", |
Andreas Gampe | 319dbe8 | 2017-01-09 16:42:21 -0800 | [diff] [blame] | 252 | "923-monitors/monitors.cc", |
Andreas Gampe | af13ab9 | 2017-01-11 20:57:40 -0800 | [diff] [blame] | 253 | "924-threads/threads.cc", |
Andreas Gampe | d18d9e2 | 2017-01-16 16:08:45 +0000 | [diff] [blame] | 254 | "925-threadgroups/threadgroups.cc", |
Andreas Gampe | 35bcf81 | 2017-01-13 16:24:17 -0800 | [diff] [blame] | 255 | "927-timers/timers.cc", |
Andreas Gampe | 6f8e4f0 | 2017-01-16 18:18:14 -0800 | [diff] [blame] | 256 | "928-jni-table/jni_table.cc", |
Andreas Gampe | ce7732b | 2017-01-17 15:50:26 -0800 | [diff] [blame] | 257 | "929-search/search.cc", |
Andreas Gampe | 732b0ac | 2017-01-18 15:23:39 -0800 | [diff] [blame] | 258 | "931-agent-thread/agent_thread.cc", |
Andreas Gampe | eb0cea1 | 2017-01-23 08:50:04 -0800 | [diff] [blame] | 259 | "933-misc-events/misc_events.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 260 | "945-obsolete-native/obsolete_native.cc", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 261 | "983-source-transform-verify/source_transform.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 262 | "984-obsolete-invoke/obsolete_invoke.cc", |
Alex Light | d78ddec | 2017-04-18 15:20:38 -0700 | [diff] [blame] | 263 | "986-native-method-bind/native_bind.cc", |
Alex Light | 65af20b | 2017-04-20 09:15:08 -0700 | [diff] [blame] | 264 | "987-agent-bind/agent_bind.cc", |
Alex Light | b7edcda | 2017-04-27 13:20:31 -0700 | [diff] [blame] | 265 | "989-method-trace-throw/method_trace.cc", |
Alex Light | 7c95849 | 2017-06-16 08:59:19 -0700 | [diff] [blame] | 266 | "991-field-trace-2/field_trace.cc", |
Alex Light | 6fa7b81 | 2017-06-16 09:04:29 -0700 | [diff] [blame] | 267 | "992-source-data/source_file.cc", |
Alex Light | c38c369 | 2017-06-27 15:45:14 -0700 | [diff] [blame] | 268 | "993-breakpoints/breakpoints.cc", |
| 269 | "996-breakpoint-obsolete/obsolete_breakpoints.cc", |
Alex Light | 8ddfd9f | 2017-07-05 16:33:46 -0700 | [diff] [blame] | 270 | "1900-track-alloc/alloc.cc", |
Alex Light | 4c17428 | 2017-07-05 10:18:18 -0700 | [diff] [blame] | 271 | "1901-get-bytecodes/bytecodes.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 272 | "1905-suspend-native/native_suspend.cc", |
| 273 | "1908-suspend-native-resume-self/native_suspend_resume.cc", |
Alex Light | 092a404 | 2017-07-12 08:46:44 -0700 | [diff] [blame] | 274 | "1909-per-agent-tls/agent_tls.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 275 | "1914-get-local-instance/local_instance.cc", |
Alex Light | 1d8a974 | 2017-08-17 11:12:06 -0700 | [diff] [blame] | 276 | "1919-vminit-thread-start-timing/vminit.cc", |
Alex Light | 23aa748 | 2017-08-16 10:01:13 -0700 | [diff] [blame] | 277 | "1920-suspend-native-monitor/native_suspend_monitor.cc", |
| 278 | "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc", |
Alex Light | 88e1ddd | 2017-08-21 13:09:55 -0700 | [diff] [blame] | 279 | "1922-owned-monitors-info/owned_monitors.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 280 | "1924-frame-pop-toggle/frame_pop_toggle.cc", |
| 281 | "1926-missed-frame-pop/frame_pop_missed.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 282 | "1927-exception-event/exception_event.cc", |
| 283 | "1930-monitor-info/monitor.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 284 | "1932-monitor-events-misc/monitor_misc.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 285 | "1934-jvmti-signal-thread/signal_threads.cc", |
Alex Light | 3dea212 | 2017-10-11 15:56:48 +0000 | [diff] [blame] | 286 | "1939-proxy-frames/local_instance.cc", |
Alex Light | b284f8d | 2017-11-21 00:00:48 +0000 | [diff] [blame] | 287 | "1941-dispose-stress/dispose_stress.cc", |
Alex Light | 4d77daf | 2018-01-04 11:51:14 -0800 | [diff] [blame] | 288 | "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc", |
| 289 | "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc", |
Alex Light | c758875 | 2018-02-20 11:15:54 -0800 | [diff] [blame] | 290 | "1946-list-descriptors/descriptors.cc", |
Alex Light | 9e7859c | 2018-04-05 13:49:43 -0700 | [diff] [blame] | 291 | "1950-unprepared-transform/unprepared_transform.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 292 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 293 | // Use NDK-compatible headers for ctstiagent. |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 294 | header_libs: [ |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 295 | "libopenjdkjvmti_headers", |
| 296 | ], |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 297 | include_dirs: ["art/test/ti-agent"], |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 298 | } |
| 299 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 300 | art_cc_defaults { |
| 301 | name: "libtiagent-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 302 | defaults: [ |
| 303 | "libtiagent-base-defaults", |
| 304 | "libartagent-defaults", |
| 305 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 306 | srcs: [ |
| 307 | // This is to get the IsInterpreted native method. |
| 308 | "common/stack_inspect.cc", |
| 309 | "common/runtime_state.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 310 | "ti-agent/common_load.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 311 | // This includes the remaining test functions. We should try to refactor things to |
| 312 | // make this list smaller. |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 313 | "901-hello-ti-agent/basics.cc", |
| 314 | "909-attach-agent/attach.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 315 | "912-classes/classes_art.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 316 | "936-search-onload/search_onload.cc", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 317 | "980-redefine-object/redef_object.cc", |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 318 | "983-source-transform-verify/source_transform_art.cc", |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 319 | "1940-ddms-ext/ddm_ext.cc", |
Alex Light | 0e84118 | 2018-02-12 17:42:50 +0000 | [diff] [blame] | 320 | "1944-sudden-exit/sudden_exit.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 321 | ], |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 322 | static_libs: [ |
| 323 | "libz", |
| 324 | "slicer", |
| 325 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 326 | } |
| 327 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 328 | art_cc_test_library { |
| 329 | name: "libtiagent", |
| 330 | defaults: ["libtiagent-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 331 | shared_libs: [ |
| 332 | "libart", |
| 333 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 334 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 335 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 336 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 337 | } |
| 338 | |
| 339 | art_cc_test_library { |
| 340 | name: "libtiagentd", |
| 341 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 342 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 343 | "libtiagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 344 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 345 | shared_libs: [ |
| 346 | "libartd", |
| 347 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 348 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 349 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 350 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 351 | } |
| 352 | |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 353 | cc_library_static { |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 354 | name: "libctstiagent", |
| 355 | defaults: ["libtiagent-base-defaults"], |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 356 | host_supported: false, |
| 357 | srcs: [ |
| 358 | "983-source-transform-verify/source_transform_slicer.cc", |
| 359 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 360 | whole_static_libs: [ |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 361 | "slicer_ndk", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 362 | ], |
| 363 | static_libs: [ |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 364 | "libbase_ndk", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 365 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 366 | shared_libs: [ |
| 367 | "libz", // for slicer (using adler32). |
| 368 | ], |
| 369 | sdk_version: "current", |
| 370 | stl: "c++_static", |
| 371 | cpp_std: "c++14", |
| 372 | include_dirs: [ |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 373 | // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are |
| 374 | // many problems with how we export headers that are making doing this the 'right' way |
| 375 | // difficult. |
| 376 | // TODO: move those headers to art/ rather than under runtime. |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 377 | "art/runtime", |
| 378 | // NDK headers aren't available in platform NDK builds. |
| 379 | "libnativehelper/include_jni", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 380 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 381 | export_include_dirs: ["ti-agent"], |
| 382 | } |
| 383 | |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 384 | art_cc_defaults { |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 385 | name: "libtistress-srcs", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 386 | defaults: ["libartagent-defaults"], |
| 387 | srcs: [ |
| 388 | "ti-stress/stress.cc", |
| 389 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 390 | header_libs: ["libopenjdkjvmti_headers"], |
| 391 | } |
| 392 | |
| 393 | art_cc_defaults { |
| 394 | name: "libtistress-defaults", |
| 395 | defaults: ["libtistress-srcs"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 396 | shared_libs: [ |
| 397 | "libbase", |
Alex Light | ceae954 | 2017-09-07 13:28:00 -0700 | [diff] [blame] | 398 | "slicer", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 399 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 400 | } |
| 401 | |
| 402 | art_cc_test_library { |
| 403 | name: "libtistress", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 404 | defaults: ["libtistress-defaults"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 405 | shared_libs: ["libartbase"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 406 | } |
| 407 | |
| 408 | art_cc_test_library { |
| 409 | name: "libtistressd", |
| 410 | defaults: [ |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 411 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 412 | "libtistress-defaults", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 413 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 414 | shared_libs: ["libartbased"], |
| 415 | } |
| 416 | |
| 417 | art_cc_defaults { |
| 418 | name: "libtistress-static-defaults", |
| 419 | defaults: ["libtistress-srcs"], |
| 420 | static_libs: art_static_dependencies + [ |
| 421 | "slicer", |
| 422 | ], |
| 423 | } |
| 424 | |
| 425 | art_cc_test_library { |
| 426 | name: "libtistresss", |
| 427 | defaults: ["libtistress-static-defaults"], |
| 428 | static_libs: ["libartbase"], |
| 429 | } |
| 430 | |
| 431 | art_cc_test_library { |
| 432 | name: "libtistressds", |
| 433 | defaults: [ |
| 434 | "art_debug_defaults", |
| 435 | "libtistress-static-defaults" |
| 436 | ], |
| 437 | static_libs: ["libartbased"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 438 | } |
| 439 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 440 | cc_defaults { |
| 441 | name: "libarttest-defaults", |
| 442 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 443 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 444 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 445 | ], |
| 446 | srcs: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 447 | "004-JniTest/jni_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 448 | "004-ReferenceMap/stack_walk_refmap_jni.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 449 | "004-SignalTest/signaltest.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 450 | "004-StackWalk/stack_walk_jni.cc", |
| 451 | "004-ThreadStress/thread_stress.cc", |
| 452 | "004-UnsafeTest/unsafe_test.cc", |
| 453 | "044-proxy/native_proxy.cc", |
| 454 | "051-thread/thread_test.cc", |
| 455 | "117-nopatchoat/nopatchoat.cc", |
| 456 | "1337-gc-coverage/gc_coverage.cc", |
| 457 | "136-daemon-jni-shutdown/daemon_jni_shutdown.cc", |
| 458 | "137-cfi/cfi.cc", |
| 459 | "139-register-natives/regnative.cc", |
| 460 | "141-class-unload/jni_unload.cc", |
| 461 | "148-multithread-gc-annotations/gc_coverage.cc", |
| 462 | "149-suspend-all-stress/suspend_all.cc", |
Mathieu Chartier | 72a3289 | 2017-01-24 09:40:56 -0800 | [diff] [blame] | 463 | "154-gc-loop/heap_interface.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 464 | "167-visit-locks/visit_locks.cc", |
Andreas Gampe | 5677601 | 2018-01-26 17:40:55 -0800 | [diff] [blame] | 465 | "169-threadgroup-jni/jni_daemon_thread.cc", |
Mathieu Chartier | adc9086 | 2018-05-11 13:03:06 -0700 | [diff] [blame] | 466 | "172-app-image-twice/debug_print_class.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 467 | "1945-proxy-method-arguments/get_args.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 468 | "203-multi-checkpoint/multi_checkpoint.cc", |
Alex Light | f4ed7e8 | 2018-01-17 11:52:36 -0800 | [diff] [blame] | 469 | "305-other-fault-handler/fault_handler.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 470 | "454-get-vreg/get_vreg_jni.cc", |
| 471 | "457-regs/regs_jni.cc", |
| 472 | "461-get-reference-vreg/get_reference_vreg_jni.cc", |
| 473 | "466-get-live-vreg/get_live_vreg_jni.cc", |
| 474 | "497-inlining-and-class-loader/clear_dex_cache.cc", |
| 475 | "543-env-long-ref/env_long_ref.cc", |
| 476 | "566-polymorphic-inlining/polymorphic_inline.cc", |
| 477 | "570-checker-osr/osr.cc", |
| 478 | "595-profile-saving/profile-saving.cc", |
| 479 | "596-app-images/app_images.cc", |
Hans Boehm | 6fe97e0 | 2016-05-04 18:35:57 -0700 | [diff] [blame] | 480 | "596-monitor-inflation/monitor_inflation.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 481 | "597-deopt-new-string/deopt.cc", |
Alexey Grebenkin | be4c2bd | 2018-02-01 19:09:59 +0300 | [diff] [blame] | 482 | "616-cha-unloading/cha_unload.cc", |
Vladimir Marko | c5798bf | 2016-12-09 10:20:54 +0000 | [diff] [blame] | 483 | "626-const-class-linking/clear_dex_cache_types.cc", |
Nicolas Geoffray | 13a797b | 2017-03-15 16:41:31 +0000 | [diff] [blame] | 484 | "642-fp-callees/fp_callees.cc", |
Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 485 | "647-jni-get-field-id/get_field_id.cc", |
Roland Levillain | 0d2323e | 2017-06-26 18:14:39 +0100 | [diff] [blame] | 486 | "656-annotation-lookup-generic-jni/test.cc", |
Igor Murashkin | 545412b | 2017-08-17 15:26:54 -0700 | [diff] [blame] | 487 | "661-oat-writer-layout/oat_writer_layout.cc", |
| 488 | "664-aget-verifier/aget-verifier.cc", |
Vladimir Marko | 2196c65 | 2017-11-30 16:16:07 +0000 | [diff] [blame] | 489 | "667-jit-jni-stub/jit_jni_stub_test.cc", |
David Brazdil | 11b67b2 | 2018-01-18 16:41:40 +0000 | [diff] [blame] | 490 | "674-hiddenapi/hiddenapi.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 491 | "708-jit-cache-churn/jit.cc", |
Alex Light | f889c70 | 2018-02-23 15:25:45 -0800 | [diff] [blame] | 492 | "909-attach-agent/disallow_debugging.cc", |
Alex Light | e34fe44 | 2018-02-21 17:35:55 -0800 | [diff] [blame] | 493 | "1947-breakpoint-redefine-deopt/check_deopt.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 494 | "common/runtime_state.cc", |
| 495 | "common/stack_inspect.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 496 | ], |
| 497 | shared_libs: [ |
| 498 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 499 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 500 | "libnativehelper", |
| 501 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 502 | } |
| 503 | |
| 504 | art_cc_test_library { |
| 505 | name: "libarttest", |
| 506 | defaults: ["libarttest-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 507 | shared_libs: [ |
| 508 | "libart", |
| 509 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 510 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 511 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 512 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 513 | } |
| 514 | |
| 515 | art_cc_test_library { |
| 516 | name: "libarttestd", |
| 517 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 518 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 519 | "libarttest-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 520 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 521 | shared_libs: [ |
| 522 | "libartd", |
| 523 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 524 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 525 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 526 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 527 | } |
| 528 | |
| 529 | art_cc_test_library { |
| 530 | name: "libnativebridgetest", |
| 531 | shared_libs: ["libart"], |
| 532 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 533 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 534 | "art_debug_defaults", |
| 535 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 536 | ], |
Steven Moreland | c7affbd | 2017-07-06 11:26:51 -0700 | [diff] [blame] | 537 | header_libs: ["libnativebridge-dummy-headers"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 538 | srcs: ["115-native-bridge/nativebridge.cc"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 539 | } |