blob: 6c2041c10ef6477535ab9c367759f32c81a10368 [file] [log] [blame]
Carl Shapiro7b216702011-06-17 15:09:26 -07001#
2# Copyright (C) 2011 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
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080017# TODO: move the LLVM compiler out into a separate .so too...
Shih-wei Liaod1fec812012-02-13 09:51:10 -080018# Use llvm as the backend
19ifneq ($(wildcard art/USE_LLVM_COMPILER),)
20ART_USE_LLVM_COMPILER := true
21else
22ART_USE_LLVM_COMPILER := false
23endif
24
25ifeq ($(ART_USE_LLVM_COMPILER),true)
26LLVM_ROOT_PATH := external/llvm
27include $(LLVM_ROOT_PATH)/llvm.mk
28endif
29
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -080030# directory used for gtests on device
31ART_NATIVETEST_DIR := /data/nativetest/art
32ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art
33
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070034# directory used for tests on device
35ART_TEST_DIR := /data/art-test
36ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test
37
Brian Carlstromcdc8de42011-07-19 14:23:17 -070038ART_CPP_EXTENSION := .cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070039
Elliott Hughes0af55432011-08-17 18:37:28 -070040ART_C_INCLUDES := \
41 external/gtest/include \
42 external/icu4c/common \
43 external/icu4c/i18n \
Elliott Hughes8d768a92011-09-14 16:35:25 -070044 external/valgrind/dynamic_annotations \
buzbeec143c552011-08-20 17:38:58 -070045 external/zlib \
Elliott Hughesadb8c672012-03-06 16:49:32 -080046 art/src
Brian Carlstromb0460ea2011-07-29 10:08:05 -070047
Elliott Hughes1d3f1142011-09-13 12:00:00 -070048art_cflags := \
Ian Rogers646c3d72012-02-17 23:55:19 -080049 -O2 \
Carl Shapiro1fb86202011-06-27 17:43:13 -070050 -ggdb3 \
51 -Wall \
52 -Werror \
53 -Wextra \
Elliott Hugheseaa200d2012-01-05 16:30:31 -080054 -Wstrict-aliasing=3 \
Carl Shapiro1fb86202011-06-27 17:43:13 -070055 -fno-align-jumps \
56 -fstrict-aliasing
57
Brian Carlstrom69d7a6b2011-12-15 17:31:21 -080058ifeq ($(HOST_OS),linux)
Shih-wei Liao24782c62012-01-08 12:46:11 -080059 art_non_debug_cflags := \
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070060 -Wframe-larger-than=1728
Brian Carlstrom69d7a6b2011-12-15 17:31:21 -080061endif
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070062
63art_debug_cflags := \
Elliott Hughes06e3ad42012-02-07 14:51:57 -080064 -DDYNAMIC_ANNOTATIONS_ENABLED=1 \
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070065 -UNDEBUG
66
Elliott Hughes1d3f1142011-09-13 12:00:00 -070067ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1
68
69ART_TARGET_CFLAGS := $(art_cflags)
70ifeq ($(TARGET_CPU_SMP),true)
71 ART_TARGET_CFLAGS += -DANDROID_SMP=1
72else
73 ART_TARGET_CFLAGS += -DANDROID_SMP=0
74endif
75
Brian Carlstrom89521892011-12-07 22:05:07 -080076# To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16"
77# ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
78
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070079ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags)
80ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags)
81
Brian Carlstrom86927212011-09-15 11:31:11 -070082# TODO: move -fkeep-inline-functions to art_debug_cflags when target gcc > 4.4
Elliott Hughes1ba27142012-01-20 15:32:00 -080083ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions
Elliott Hughesad6c9c32012-01-19 17:39:12 -080084
85ifneq ($(HOST_OS),linux)
86 # Some Mac OS pthread header files are broken with -fkeep-inline-functions.
Elliott Hughes34cf5142012-01-20 16:39:13 -080087 ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS))
Elliott Hughesad6c9c32012-01-19 17:39:12 -080088endif
89
Brian Carlstrom86927212011-09-15 11:31:11 -070090ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags)
Elliott Hughes1d3f1142011-09-13 12:00:00 -070091
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070092DEX2OAT_SRC_FILES := \
93 src/dex2oat.cc
94
Brian Carlstrom78128a62011-09-15 17:21:19 -070095OATDUMP_SRC_FILES := \
Ian Rogers3a5c1ce2012-02-29 10:06:46 -080096 src/oatdump.cc \
97 src/disassembler.cc \
Ian Rogers706a10e2012-03-23 17:00:55 -070098 src/disassembler_arm.cc \
99 src/disassembler_x86.cc
Brian Carlstrom78128a62011-09-15 17:21:19 -0700100
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700101OATEXEC_SRC_FILES := \
102 src/oatexec.cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -0700103
Brian Carlstrom934486c2011-07-12 23:42:50 -0700104LIBART_COMMON_SRC_FILES := \
Elliott Hughes5ea047b2011-09-13 14:38:18 -0700105 src/atomic.cc.arm \
Ian Rogers5d76c432011-10-31 21:42:49 -0700106 src/card_table.cc \
Elliott Hughesa2501992011-08-26 19:39:54 -0700107 src/check_jni.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700108 src/class_linker.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700109 src/class_loader.cc \
Brian Carlstrom3320cf42011-10-04 14:58:28 -0700110 src/compiled_method.cc \
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700111 src/compiler.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700112 src/debugger.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700113 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700114 src/dex_file.cc \
jeffhao10037c82012-01-23 15:06:23 -0800115 src/dex_file_verifier.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -0700116 src/dex_instruction.cc \
Ian Rogers30fab402012-01-23 15:43:46 -0800117 src/dlmalloc.c \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700118 src/file.cc \
119 src/file_linux.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700120 src/heap.cc \
Elliott Hughes5e71b522011-10-20 13:12:32 -0700121 src/heap_bitmap.cc \
Jesse Wilsonc4824e62011-11-01 14:39:04 -0400122 src/hprof/hprof.cc \
Jesse Wilson0c54ac12011-11-09 15:14:05 -0500123 src/hprof/hprof_record.cc \
Brian Carlstrom4a289ed2011-08-16 17:17:49 -0700124 src/image.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700125 src/image_writer.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700126 src/indirect_reference_table.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700127 src/intern_table.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700128 src/jdwp/jdwp_event.cc \
129 src/jdwp/jdwp_expand_buf.cc \
130 src/jdwp/jdwp_handler.cc \
131 src/jdwp/jdwp_main.cc \
132 src/jdwp/jdwp_socket.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -0700133 src/jni_internal.cc \
Elliott Hughes42ee1422011-09-06 12:33:32 -0700134 src/logging.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700135 src/mark_stack.cc \
136 src/mark_sweep.cc \
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700137 src/mem_map.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700138 src/memory_region.cc \
Elliott Hughes54e7df12011-09-16 11:47:04 -0700139 src/monitor.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700140 src/mutex.cc \
Ian Rogers0dae08e2012-04-14 13:55:11 -0700141 src/native/dalvik_system_DexFile.cc \
142 src/native/dalvik_system_VMDebug.cc \
143 src/native/dalvik_system_VMRuntime.cc \
144 src/native/dalvik_system_VMStack.cc \
145 src/native/dalvik_system_Zygote.cc \
146 src/native/java_lang_Class.cc \
147 src/native/java_lang_Object.cc \
148 src/native/java_lang_Runtime.cc \
149 src/native/java_lang_String.cc \
150 src/native/java_lang_System.cc \
151 src/native/java_lang_Thread.cc \
152 src/native/java_lang_Throwable.cc \
153 src/native/java_lang_VMClassLoader.cc \
154 src/native/java_lang_reflect_Array.cc \
155 src/native/java_lang_reflect_Constructor.cc \
156 src/native/java_lang_reflect_Field.cc \
157 src/native/java_lang_reflect_Method.cc \
158 src/native/java_lang_reflect_Proxy.cc \
159 src/native/java_util_concurrent_atomic_AtomicLong.cc \
160 src/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
161 src/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
162 src/native/sun_misc_Unsafe.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700163 src/oat/runtime/arm/stub_arm.cc \
164 src/oat/runtime/x86/stub_x86.cc \
165 src/oat/utils/arm/assembler_arm.cc \
166 src/oat/utils/arm/managed_register_arm.cc \
167 src/oat/utils/assembler.cc \
168 src/oat/utils/x86/assembler_x86.cc \
169 src/oat/utils/x86/managed_register_x86.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700170 src/oat.cc \
171 src/oat_file.cc \
172 src/oat_writer.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -0700173 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700174 src/offsets.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700175 src/os_linux.cc \
Brian Carlstromae826982011-11-09 01:33:42 -0800176 src/primitive.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700177 src/reference_table.cc \
Elliott Hughes418d20f2011-09-22 14:00:39 -0700178 src/reflection.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -0700179 src/runtime.cc \
Shih-wei Liaoa8a9c342012-03-03 22:35:16 -0800180 src/runtime_support.cc \
Elliott Hughes88c5c352012-03-15 18:49:48 -0700181 src/scoped_thread_list_lock.cc \
Elliott Hughese27955c2011-08-26 15:21:24 -0700182 src/signal_catcher.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700183 src/space.cc \
Elliott Hughes68e76522011-10-05 13:22:16 -0700184 src/stack.cc \
Carl Shapirob5573532011-07-12 18:22:59 -0700185 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -0700186 src/stringprintf.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700187 src/thread.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700188 src/thread_list.cc \
jeffhaoe343b762011-12-05 16:36:44 -0800189 src/trace.cc \
Elliott Hughes814e4032011-08-23 12:07:56 -0700190 src/utf.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700191 src/utils.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700192 src/zip_archive.cc \
193 src/verifier/gc_map.cc \
194 src/verifier/method_verifier.cc \
195 src/verifier/reg_type.cc \
196 src/verifier/reg_type_cache.cc \
197 src/verifier/register_line.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700198
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800199ifeq ($(ART_USE_LLVM_COMPILER),true)
200LIBART_COMMON_SRC_FILES += \
Logan Chien3fe0c602012-03-27 21:14:37 +0800201 src/compiler_llvm/elf_loader.cc \
Logan Chienfca7e872011-12-20 20:08:22 +0800202 src/compiler_llvm/inferred_reg_category_map.cc \
Logan Chien937105a2012-04-02 02:37:37 +0800203 src/compiler_llvm/runtime_support_llvm.cc
Shih-wei Liao6e94f142012-04-16 18:14:14 -0700204endif
205
Ian Rogers57b86d42012-03-27 16:05:41 -0700206LIBART_COMMON_SRC_FILES += \
Ian Rogers57b86d42012-03-27 16:05:41 -0700207 src/oat/runtime/context.cc \
208 src/oat/runtime/support_alloc.cc \
209 src/oat/runtime/support_cast.cc \
210 src/oat/runtime/support_debug.cc \
211 src/oat/runtime/support_dexcache.cc \
212 src/oat/runtime/support_field.cc \
213 src/oat/runtime/support_fillarray.cc \
214 src/oat/runtime/support_invoke.cc \
215 src/oat/runtime/support_jni.cc \
216 src/oat/runtime/support_locks.cc \
217 src/oat/runtime/support_math.cc \
218 src/oat/runtime/support_proxy.cc \
219 src/oat/runtime/support_stubs.cc \
220 src/oat/runtime/support_thread.cc \
221 src/oat/runtime/support_throw.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700222 src/oat/runtime/support_trace.cc
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800223
Brian Carlstrom934486c2011-07-12 23:42:50 -0700224LIBART_TARGET_SRC_FILES := \
225 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700226 src/jdwp/jdwp_adb.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -0700227 src/logging_android.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700228 src/monitor_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700229 src/runtime_android.cc \
Brian Carlstrom51477332012-03-25 20:20:26 -0700230 src/thread_android.cc
231
232ifeq ($(TARGET_ARCH),arm)
Ian Rogers57b86d42012-03-27 16:05:41 -0700233LIBART_TARGET_SRC_FILES += \
234 src/oat/runtime/arm/context_arm.cc.arm \
235 src/oat/runtime/arm/oat_support_entrypoints_arm.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700236 src/oat/runtime/arm/runtime_support_arm.S
Brian Carlstrom51477332012-03-25 20:20:26 -0700237else # TARGET_ARCH != arm
238ifeq ($(TARGET_ARCH),x86)
Ian Rogers57b86d42012-03-27 16:05:41 -0700239LIBART_TARGET_SRC_FILES += \
240 src/oat/runtime/x86/context_x86.cc \
241 src/oat/runtime/x86/oat_support_entrypoints_x86.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700242 src/oat/runtime/x86/runtime_support_x86.S
Brian Carlstrom51477332012-03-25 20:20:26 -0700243else # TARGET_ARCH != x86
244ifeq ($(TARGET_ARCH),mips)
Ian Rogers57b86d42012-03-27 16:05:41 -0700245LIBART_TARGET_SRC_FILES += \
246 src/oat/runtime/mips/oat_support_entrypoints_mips.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700247 src/oat/runtime/mips/runtime_support_mips.S
248else # TARGET_ARCH != mips
249$(error unsupported TARGET_ARCH=$(TARGET_ARCH))
250endif # TARGET_ARCH != mips
251endif # TARGET_ARCH != x86
252endif # TARGET_ARCH != arm
Ian Rogers776ac1f2012-04-13 23:36:36 -0700253
254ifeq ($(TARGET_ARCH),arm)
255LIBART_TARGET_SRC_FILES += src/thread_arm.cc
256else # TARGET_ARCH != arm
257ifeq ($(TARGET_ARCH),x86)
258LIBART_TARGET_SRC_FILES += src/thread_x86.cc
259else # TARGET_ARCH != x86
260ifeq ($(TARGET_ARCH),mips)
261LIBART_TARGET_SRC_FILES += src/thread_mips.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700262else # TARGET_ARCH != mips
263$(error unsupported TARGET_ARCH=$(TARGET_ARCH))
264endif # TARGET_ARCH != mips
265endif # TARGET_ARCH != x86
266endif # TARGET_ARCH != arm
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700267
Brian Carlstrom934486c2011-07-12 23:42:50 -0700268LIBART_HOST_SRC_FILES := \
269 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughesffe67362011-07-17 12:09:27 -0700270 src/logging_linux.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700271 src/monitor_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700272 src/runtime_linux.cc \
Brian Carlstrom51477332012-03-25 20:20:26 -0700273 src/thread_linux.cc
274
275ifeq ($(HOST_ARCH),x86)
Ian Rogers57b86d42012-03-27 16:05:41 -0700276LIBART_HOST_SRC_FILES += \
277 src/oat/runtime/x86/oat_support_entrypoints_x86.cc \
278 src/oat/runtime/x86/context_x86.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700279 src/oat/runtime/x86/runtime_support_x86.S
280else # HOST_ARCH != x86
281$(error unsupported HOST_ARCH=$(HOST_ARCH))
282endif # HOST_ARCH != x86
Ian Rogers776ac1f2012-04-13 23:36:36 -0700283
284ifeq ($(HOST_ARCH),x86)
285LIBART_HOST_SRC_FILES += src/thread_x86.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700286else # HOST_ARCH != x86
287$(error unsupported HOST_ARCH=$(HOST_ARCH))
288endif # HOST_ARCH != x86
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700289
Ian Rogers776ac1f2012-04-13 23:36:36 -0700290
Elliott Hughes0e57ccb2012-04-03 16:04:52 -0700291LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \
292 src/indirect_reference_table.h \
293 src/instruction_set.h \
294 src/invoke_type.h \
Elliott Hughes460384f2012-04-04 16:53:10 -0700295 src/jdwp/jdwp.h \
296 src/jdwp/jdwp_constants.h \
Elliott Hughes34e06962012-04-09 13:55:55 -0700297 src/mutex.h \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700298 src/thread.h \
299 src/verifier/method_verifier.h
Elliott Hughes0e57ccb2012-04-03 16:04:52 -0700300
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700301LIBARTTEST_COMMON_SRC_FILES := \
Shih-wei Liaoa6af3c32011-10-17 15:25:11 -0700302 test/StackWalk/stack_walk_jni.cc \
303 test/ReferenceMap/stack_walk_refmap_jni.cc
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700304
Brian Carlstrom934486c2011-07-12 23:42:50 -0700305TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700306 src/class_linker_test.cc \
Brian Carlstromaded5f72011-10-07 17:15:04 -0700307 src/compiler_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700308 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700309 src/dex_file_test.cc \
310 src/dex_instruction_visitor_test.cc \
Shih-wei Liao2fb97532011-08-11 16:17:23 -0700311 src/exception_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700312 src/file_test.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700313 src/heap_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700314 src/image_test.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700315 src/indirect_reference_table_test.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700316 src/intern_table_test.cc \
Ian Rogerscd2764f2011-09-02 15:38:24 -0700317 src/jni_internal_test.cc \
318 src/jni_compiler_test.cc \
Ian Rogers57b86d42012-03-27 16:05:41 -0700319 src/oat/utils/arm/managed_register_arm_test.cc \
320 src/oat/utils/x86/managed_register_x86_test.cc \
Brian Carlstromcd74c4b2012-01-23 13:21:00 -0800321 src/mutex_test.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700322 src/oat_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -0700323 src/object_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700324 src/reference_table_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -0700325 src/runtime_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700326 src/space_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700327 src/utils_test.cc \
Ian Rogers776ac1f2012-04-13 23:36:36 -0700328 src/zip_archive_test.cc \
329 src/verifier/method_verifier_test.cc \
330 src/verifier/reg_type_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700331
Brian Carlstrom934486c2011-07-12 23:42:50 -0700332TEST_TARGET_SRC_FILES := \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700333 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -0700334
Brian Carlstrom934486c2011-07-12 23:42:50 -0700335TEST_HOST_SRC_FILES := \
336 $(TEST_COMMON_SRC_FILES) \
Ian Rogers57b86d42012-03-27 16:05:41 -0700337 src/oat/utils/x86/assembler_x86_test.cc
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700338
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800339# subdirectories of test/ which are used as inputs for gtests
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700340TEST_DEX_DIRECTORIES := \
Shih-wei Liao303b01e2011-09-14 00:46:13 -0700341 AbstractMethod \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700342 AllFields \
Ian Rogers0571d352011-11-03 19:51:38 -0700343 CreateMethodSignature \
Brian Carlstrom33f741e2011-10-03 11:24:05 -0700344 ExceptionHandle \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700345 IntMath \
346 Interfaces \
347 Main \
348 MyClass \
349 MyClassNatives \
350 Nested \
Elliott Hughes77405792012-03-15 15:22:12 -0700351 NonStaticLeafMethods \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700352 ProtoCompare \
353 ProtoCompare2 \
354 StaticLeafMethods \
355 Statics \
jeffhaoabcfde32011-09-29 15:05:18 -0700356 StaticsFromCode \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700357 XandY
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700358
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800359# subdirectories of test/ which are used with test-art-target-oat
360# Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical
361TEST_OAT_DIRECTORIES := \
362 Main \
363 HelloWorld \
364 Fibonacci \
365 \
366 ExceptionTest \
367 GrowthLimit \
368 IntMath \
369 Invoke \
370 MemUsage \
371 ParallelGC \
372 ReferenceMap \
373 ReflectionTest \
374 StackWalk \
375 ThreadStress
376
377# TODO: Enable when the StackWalk2 tests are passing
378# StackWalk2 \
379
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700380ART_BUILD_TARGET := false
381ART_BUILD_HOST := false
382ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
383 ART_BUILD_TARGET := true
384endif
385ifeq ($(ART_BUILD_TARGET_DEBUG),true)
386 ART_BUILD_TARGET := true
387endif
388ifeq ($(ART_BUILD_HOST_NDEBUG),true)
389 ART_BUILD_HOST := true
390endif
391ifeq ($(ART_BUILD_HOST_DEBUG),true)
392 ART_BUILD_HOST := true
393endif