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", |
| 65 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 66 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 67 | "libicuuc", |
| 68 | "libicui18n", |
| 69 | "libnativehelper", |
| 70 | ], |
| 71 | whole_static_libs: [ |
| 72 | "libsigchain", |
| 73 | ], |
| 74 | include_dirs: [ |
| 75 | "art", |
| 76 | "art/cmdline", |
| 77 | ], |
| 78 | |
| 79 | target: { |
| 80 | linux: { |
| 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 | ], |
| 89 | shared_libs: [ |
| 90 | "libziparchive", |
| 91 | "libz-host", |
| 92 | ], |
| 93 | host_ldlibs: [ |
| 94 | "-ldl", |
| 95 | "-lpthread", |
| 96 | ], |
| 97 | cflags: [ |
| 98 | // gtest issue |
| 99 | "-Wno-used-but-marked-unused", |
| 100 | "-Wno-deprecated", |
| 101 | "-Wno-missing-noreturn", |
| 102 | ], |
| 103 | }, |
| 104 | android: { |
| 105 | ldflags: [ |
| 106 | // Allow jni_compiler_test to find Java_MyClassNatives_bar |
| 107 | // within itself using dlopen(NULL, ...). |
| 108 | "-Wl,--export-dynamic", |
| 109 | "-Wl,-u,Java_MyClassNatives_bar", |
| 110 | "-Wl,-u,Java_MyClassNatives_sbar", |
| 111 | ], |
| 112 | shared_libs: [ |
Dimitry Ivanov | 9642b1b | 2016-09-28 02:44:00 -0700 | [diff] [blame] | 113 | "liblog", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 114 | "libdl", |
| 115 | "libz", |
| 116 | ], |
| 117 | cflags: [ |
| 118 | // gtest issue |
| 119 | "-Wno-used-but-marked-unused", |
| 120 | "-Wno-deprecated", |
| 121 | "-Wno-missing-noreturn", |
| 122 | ], |
| 123 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 124 | }, |
| 125 | } |
| 126 | |
| 127 | art_cc_defaults { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 128 | name: "libart-gtest-defaults", |
| 129 | host_supported: true, |
| 130 | defaults: [ |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 131 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 132 | "art_defaults", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 133 | ], |
| 134 | shared_libs: [ |
| 135 | "libartd", |
| 136 | "libartd-compiler", |
| 137 | ], |
| 138 | static_libs: [ |
| 139 | "libgtest", |
| 140 | ], |
| 141 | target: { |
| 142 | android32: { |
Colin Cross | c5c7187 | 2016-09-15 21:07:29 -0700 | [diff] [blame] | 143 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 144 | }, |
| 145 | android64: { |
| 146 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"], |
| 147 | }, |
| 148 | android: { |
| 149 | cflags: [ |
| 150 | // gtest issue |
| 151 | "-Wno-used-but-marked-unused", |
| 152 | "-Wno-deprecated", |
| 153 | "-Wno-missing-noreturn", |
| 154 | ], |
| 155 | }, |
| 156 | linux: { |
| 157 | cflags: [ |
| 158 | // gtest issue |
| 159 | "-Wno-used-but-marked-unused", |
| 160 | "-Wno-deprecated", |
| 161 | "-Wno-missing-noreturn", |
| 162 | ], |
| 163 | }, |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 164 | darwin: { |
| 165 | enabled: false, |
| 166 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 167 | }, |
| 168 | } |
| 169 | |
| 170 | art_cc_library { |
| 171 | name: "libart-gtest", |
| 172 | host_supported: true, |
| 173 | whole_static_libs: [ |
| 174 | "libart-compiler-gtest", |
| 175 | "libart-runtime-gtest", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 176 | "libgtest" |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 177 | ], |
| 178 | shared_libs: [ |
| 179 | "libartd", |
| 180 | "libartd-compiler", |
Colin Cross | f0af906 | 2016-10-21 10:50:31 -0700 | [diff] [blame] | 181 | "libbase", |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 182 | "libbacktrace" |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 183 | ], |
| 184 | target: { |
| 185 | android: { |
| 186 | shared_libs: [ |
| 187 | "libdl", |
| 188 | ], |
| 189 | }, |
| 190 | host: { |
| 191 | host_ldlibs: [ |
| 192 | "-ldl", |
| 193 | "-lpthread", |
| 194 | ], |
| 195 | }, |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 196 | darwin: { |
| 197 | enabled: false, |
| 198 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 199 | }, |
| 200 | } |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 201 | |
| 202 | cc_defaults { |
| 203 | name: "libartagent-defaults", |
| 204 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 205 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 206 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 207 | ], |
| 208 | shared_libs: [ |
| 209 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 210 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 211 | "libnativehelper", |
| 212 | ], |
| 213 | target: { |
| 214 | android: { |
| 215 | shared_libs: ["libdl"], |
| 216 | }, |
| 217 | host: { |
| 218 | host_ldlibs: [ |
| 219 | "-ldl", |
| 220 | "-lpthread", |
| 221 | ], |
| 222 | }, |
| 223 | }, |
| 224 | } |
| 225 | |
| 226 | art_cc_test_library { |
| 227 | name: "libartagent", |
| 228 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 229 | defaults: ["libartagent-defaults"], |
| 230 | shared_libs: ["libart"], |
| 231 | } |
| 232 | |
| 233 | art_cc_test_library { |
| 234 | name: "libartagentd", |
| 235 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 236 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 237 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 238 | "libartagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 239 | ], |
| 240 | shared_libs: ["libartd"], |
| 241 | } |
| 242 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 243 | art_cc_defaults { |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 244 | name: "libtiagent-base-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 245 | defaults: ["libartagent-defaults"], |
| 246 | srcs: [ |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 247 | // These are the ART-independent parts. |
Andreas Gampe | 4665167 | 2017-04-07 09:00:04 -0700 | [diff] [blame] | 248 | "ti-agent/agent_common.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 249 | "ti-agent/agent_startup.cc", |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 250 | "ti-agent/jni_binder.cc", |
| 251 | "ti-agent/jvmti_helper.cc", |
| 252 | "ti-agent/test_env.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 253 | "ti-agent/breakpoint_helper.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 254 | "ti-agent/common_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 255 | "ti-agent/redefinition_helper.cc", |
| 256 | "ti-agent/trace_helper.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 257 | // This is the list of non-special OnLoad things and excludes BCI and anything that depends |
| 258 | // on ART internals. |
Andreas Gampe | 6dee92e | 2016-09-12 19:58:13 -0700 | [diff] [blame] | 259 | "903-hello-tagging/tagging.cc", |
Andreas Gampe | 27fa96c | 2016-10-07 15:05:24 -0700 | [diff] [blame] | 260 | "904-object-allocation/tracking.cc", |
Andreas Gampe | cc13b22 | 2016-10-10 19:09:09 -0700 | [diff] [blame] | 261 | "905-object-free/tracking_free.cc", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 262 | "906-iterate-heap/iterate_heap.cc", |
Andreas Gampe | aa8b60c | 2016-10-12 12:51:25 -0700 | [diff] [blame] | 263 | "907-get-loaded-classes/get_loaded_classes.cc", |
Andreas Gampe | 9b8c588 | 2016-10-21 15:27:46 -0700 | [diff] [blame] | 264 | "908-gc-start-finish/gc_callbacks.cc", |
Andreas Gampe | 3c252f0 | 2016-10-27 18:25:17 -0700 | [diff] [blame] | 265 | "910-methods/methods.cc", |
Andreas Gampe | b5eb94a | 2016-10-27 19:23:09 -0700 | [diff] [blame] | 266 | "911-get-stack-trace/stack_trace.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 267 | "912-classes/classes.cc", |
Andreas Gampe | e0f8ed9 | 2017-04-13 16:52:23 -0700 | [diff] [blame] | 268 | "913-heaps/heaps.cc", |
Andreas Gampe | ab2f0d0 | 2017-01-05 17:23:45 -0800 | [diff] [blame] | 269 | "918-fields/fields.cc", |
Andreas Gampe | 50a4e49 | 2017-01-06 18:00:20 -0800 | [diff] [blame] | 270 | "920-objects/objects.cc", |
Andreas Gampe | 1bdaf73 | 2017-01-09 19:21:06 -0800 | [diff] [blame] | 271 | "922-properties/properties.cc", |
Andreas Gampe | 319dbe8 | 2017-01-09 16:42:21 -0800 | [diff] [blame] | 272 | "923-monitors/monitors.cc", |
Andreas Gampe | af13ab9 | 2017-01-11 20:57:40 -0800 | [diff] [blame] | 273 | "924-threads/threads.cc", |
Andreas Gampe | d18d9e2 | 2017-01-16 16:08:45 +0000 | [diff] [blame] | 274 | "925-threadgroups/threadgroups.cc", |
Andreas Gampe | 35bcf81 | 2017-01-13 16:24:17 -0800 | [diff] [blame] | 275 | "927-timers/timers.cc", |
Andreas Gampe | 6f8e4f0 | 2017-01-16 18:18:14 -0800 | [diff] [blame] | 276 | "928-jni-table/jni_table.cc", |
Andreas Gampe | ce7732b | 2017-01-17 15:50:26 -0800 | [diff] [blame] | 277 | "929-search/search.cc", |
Andreas Gampe | 732b0ac | 2017-01-18 15:23:39 -0800 | [diff] [blame] | 278 | "931-agent-thread/agent_thread.cc", |
Andreas Gampe | eb0cea1 | 2017-01-23 08:50:04 -0800 | [diff] [blame] | 279 | "933-misc-events/misc_events.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 280 | "945-obsolete-native/obsolete_native.cc", |
| 281 | "984-obsolete-invoke/obsolete_invoke.cc", |
Alex Light | d78ddec | 2017-04-18 15:20:38 -0700 | [diff] [blame] | 282 | "986-native-method-bind/native_bind.cc", |
Alex Light | 65af20b | 2017-04-20 09:15:08 -0700 | [diff] [blame] | 283 | "987-agent-bind/agent_bind.cc", |
Alex Light | b7edcda | 2017-04-27 13:20:31 -0700 | [diff] [blame] | 284 | "989-method-trace-throw/method_trace.cc", |
Alex Light | 7c95849 | 2017-06-16 08:59:19 -0700 | [diff] [blame] | 285 | "991-field-trace-2/field_trace.cc", |
Alex Light | 6fa7b81 | 2017-06-16 09:04:29 -0700 | [diff] [blame] | 286 | "992-source-data/source_file.cc", |
Alex Light | c38c369 | 2017-06-27 15:45:14 -0700 | [diff] [blame] | 287 | "993-breakpoints/breakpoints.cc", |
| 288 | "996-breakpoint-obsolete/obsolete_breakpoints.cc", |
Alex Light | 4c17428 | 2017-07-05 10:18:18 -0700 | [diff] [blame^] | 289 | "1901-get-bytecodes/bytecodes.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 290 | ], |
| 291 | shared_libs: [ |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 292 | "libbase", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 293 | ], |
Andreas Gampe | 5e03a30 | 2017-03-13 13:10:00 -0700 | [diff] [blame] | 294 | header_libs: ["libopenjdkjvmti_headers"], |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 295 | include_dirs: ["art/test/ti-agent"], |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 296 | } |
| 297 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 298 | art_cc_defaults { |
| 299 | name: "libtiagent-defaults", |
| 300 | defaults: ["libtiagent-base-defaults"], |
| 301 | srcs: [ |
| 302 | // This is to get the IsInterpreted native method. |
| 303 | "common/stack_inspect.cc", |
| 304 | "common/runtime_state.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 305 | "ti-agent/common_load.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 306 | // This includes the remaining test functions. We should try to refactor things to |
| 307 | // make this list smaller. |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 308 | "901-hello-ti-agent/basics.cc", |
| 309 | "909-attach-agent/attach.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 310 | "912-classes/classes_art.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 311 | "936-search-onload/search_onload.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 312 | "983-source-transform-verify/source_transform.cc", |
| 313 | ], |
| 314 | } |
| 315 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 316 | art_cc_test_library { |
| 317 | name: "libtiagent", |
| 318 | defaults: ["libtiagent-defaults"], |
Andreas Gampe | 6e3dd3e | 2016-11-17 17:13:53 -0800 | [diff] [blame] | 319 | shared_libs: ["libart"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 320 | } |
| 321 | |
| 322 | art_cc_test_library { |
| 323 | name: "libtiagentd", |
| 324 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 325 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 326 | "libtiagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 327 | ], |
Andreas Gampe | 6e3dd3e | 2016-11-17 17:13:53 -0800 | [diff] [blame] | 328 | shared_libs: ["libartd"], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 329 | } |
| 330 | |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 331 | art_cc_defaults { |
| 332 | name: "libtistress-defaults", |
| 333 | defaults: ["libartagent-defaults"], |
| 334 | srcs: [ |
| 335 | "ti-stress/stress.cc", |
| 336 | ], |
| 337 | shared_libs: [ |
| 338 | "libbase", |
| 339 | ], |
| 340 | header_libs: ["libopenjdkjvmti_headers"], |
| 341 | } |
| 342 | |
| 343 | art_cc_test_library { |
| 344 | name: "libtistress", |
| 345 | defaults: [ "libtistress-defaults"], |
| 346 | shared_libs: ["libart"], |
| 347 | } |
| 348 | |
| 349 | art_cc_test_library { |
| 350 | name: "libtistressd", |
| 351 | defaults: [ |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 352 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 353 | "libtistress-defaults", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 354 | ], |
| 355 | shared_libs: ["libartd"], |
| 356 | } |
| 357 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 358 | art_cc_test_library { |
| 359 | name: "libctstiagent", |
| 360 | defaults: ["libtiagent-base-defaults"], |
| 361 | export_include_dirs: ["ti-agent"], |
| 362 | } |
| 363 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 364 | cc_defaults { |
| 365 | name: "libarttest-defaults", |
| 366 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 367 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 368 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 369 | ], |
| 370 | srcs: [ |
| 371 | "common/runtime_state.cc", |
| 372 | "common/stack_inspect.cc", |
| 373 | "004-JniTest/jni_test.cc", |
| 374 | "004-SignalTest/signaltest.cc", |
| 375 | "004-ReferenceMap/stack_walk_refmap_jni.cc", |
| 376 | "004-StackWalk/stack_walk_jni.cc", |
| 377 | "004-ThreadStress/thread_stress.cc", |
| 378 | "004-UnsafeTest/unsafe_test.cc", |
| 379 | "044-proxy/native_proxy.cc", |
| 380 | "051-thread/thread_test.cc", |
| 381 | "117-nopatchoat/nopatchoat.cc", |
| 382 | "1337-gc-coverage/gc_coverage.cc", |
| 383 | "136-daemon-jni-shutdown/daemon_jni_shutdown.cc", |
| 384 | "137-cfi/cfi.cc", |
| 385 | "139-register-natives/regnative.cc", |
| 386 | "141-class-unload/jni_unload.cc", |
| 387 | "148-multithread-gc-annotations/gc_coverage.cc", |
| 388 | "149-suspend-all-stress/suspend_all.cc", |
Mathieu Chartier | 72a3289 | 2017-01-24 09:40:56 -0800 | [diff] [blame] | 389 | "154-gc-loop/heap_interface.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 390 | "454-get-vreg/get_vreg_jni.cc", |
| 391 | "457-regs/regs_jni.cc", |
| 392 | "461-get-reference-vreg/get_reference_vreg_jni.cc", |
| 393 | "466-get-live-vreg/get_live_vreg_jni.cc", |
| 394 | "497-inlining-and-class-loader/clear_dex_cache.cc", |
| 395 | "543-env-long-ref/env_long_ref.cc", |
| 396 | "566-polymorphic-inlining/polymorphic_inline.cc", |
| 397 | "570-checker-osr/osr.cc", |
| 398 | "595-profile-saving/profile-saving.cc", |
| 399 | "596-app-images/app_images.cc", |
Hans Boehm | 6fe97e0 | 2016-05-04 18:35:57 -0700 | [diff] [blame] | 400 | "596-monitor-inflation/monitor_inflation.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 401 | "597-deopt-new-string/deopt.cc", |
Vladimir Marko | c5798bf | 2016-12-09 10:20:54 +0000 | [diff] [blame] | 402 | "626-const-class-linking/clear_dex_cache_types.cc", |
Nicolas Geoffray | 13a797b | 2017-03-15 16:41:31 +0000 | [diff] [blame] | 403 | "642-fp-callees/fp_callees.cc", |
Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 404 | "647-jni-get-field-id/get_field_id.cc", |
Roland Levillain | 0d2323e | 2017-06-26 18:14:39 +0100 | [diff] [blame] | 405 | "656-annotation-lookup-generic-jni/test.cc", |
Orion Hodson | eced692 | 2017-06-01 10:54:28 +0100 | [diff] [blame] | 406 | "708-jit-cache-churn/jit.cc" |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 407 | ], |
| 408 | shared_libs: [ |
| 409 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 410 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 411 | "libnativehelper", |
| 412 | ], |
| 413 | target: { |
| 414 | android: { |
| 415 | shared_libs: ["libdl"], |
| 416 | }, |
| 417 | host: { |
| 418 | host_ldlibs: [ |
| 419 | "-ldl", |
| 420 | "-lpthread", |
| 421 | ], |
| 422 | }, |
| 423 | }, |
| 424 | } |
| 425 | |
| 426 | art_cc_test_library { |
| 427 | name: "libarttest", |
| 428 | defaults: ["libarttest-defaults"], |
| 429 | shared_libs: ["libart"], |
| 430 | } |
| 431 | |
| 432 | art_cc_test_library { |
| 433 | name: "libarttestd", |
| 434 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 435 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 436 | "libarttest-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 437 | ], |
| 438 | shared_libs: ["libartd"], |
| 439 | } |
| 440 | |
| 441 | art_cc_test_library { |
| 442 | name: "libnativebridgetest", |
| 443 | shared_libs: ["libart"], |
| 444 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 445 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 446 | "art_debug_defaults", |
| 447 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 448 | ], |
| 449 | srcs: ["115-native-bridge/nativebridge.cc"], |
| 450 | target: { |
| 451 | android: { |
| 452 | shared_libs: ["libdl"], |
| 453 | }, |
| 454 | host: { |
| 455 | host_ldlibs: [ |
| 456 | "-ldl", |
| 457 | "-lpthread", |
| 458 | ], |
| 459 | }, |
| 460 | linux: { |
| 461 | host_ldlibs: ["-lrt"], |
| 462 | }, |
| 463 | }, |
| 464 | } |