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