blob: b272649da9816e99651e44dee32a75d1744b07be [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 \
Brian Carlstromf91c8c32011-09-21 17:30:34 -0700112 src/dalvik_system_DexFile.cc \
Elliott Hughes01158d72011-09-19 19:47:10 -0700113 src/dalvik_system_VMDebug.cc \
Elliott Hughes7ede61e2011-09-14 18:18:06 -0700114 src/dalvik_system_VMRuntime.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700115 src/dalvik_system_VMStack.cc \
Elliott Hughes01158d72011-09-19 19:47:10 -0700116 src/dalvik_system_Zygote.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700117 src/debugger.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700118 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700119 src/dex_file.cc \
jeffhao10037c82012-01-23 15:06:23 -0800120 src/dex_file_verifier.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -0700121 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700122 src/dex_verifier.cc \
Ian Rogers30fab402012-01-23 15:43:46 -0800123 src/dlmalloc.c \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700124 src/file.cc \
125 src/file_linux.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700126 src/heap.cc \
Elliott Hughes5e71b522011-10-20 13:12:32 -0700127 src/heap_bitmap.cc \
Jesse Wilsonc4824e62011-11-01 14:39:04 -0400128 src/hprof/hprof.cc \
Jesse Wilson0c54ac12011-11-09 15:14:05 -0500129 src/hprof/hprof_record.cc \
Brian Carlstrom4a289ed2011-08-16 17:17:49 -0700130 src/image.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700131 src/image_writer.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700132 src/indirect_reference_table.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700133 src/intern_table.cc \
Elliott Hughesd369bb72011-09-12 14:41:14 -0700134 src/java_lang_Class.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -0700135 src/java_lang_Object.cc \
136 src/java_lang_Runtime.cc \
137 src/java_lang_String.cc \
138 src/java_lang_System.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700139 src/java_lang_Thread.cc \
Elliott Hughes1240dad2011-09-09 16:24:50 -0700140 src/java_lang_Throwable.cc \
Elliott Hughes64bf5a32011-09-20 14:43:12 -0700141 src/java_lang_VMClassLoader.cc \
Brian Carlstrom5b8e4c82011-09-18 01:38:59 -0700142 src/java_lang_reflect_Array.cc \
Elliott Hughes2a20cfd2011-09-23 19:30:41 -0700143 src/java_lang_reflect_Constructor.cc \
Brian Carlstromf867b6f2011-09-16 12:17:25 -0700144 src/java_lang_reflect_Field.cc \
145 src/java_lang_reflect_Method.cc \
Jesse Wilson95caa792011-10-12 18:14:17 -0400146 src/java_lang_reflect_Proxy.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -0700147 src/java_util_concurrent_atomic_AtomicLong.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700148 src/jdwp/jdwp_event.cc \
149 src/jdwp/jdwp_expand_buf.cc \
150 src/jdwp/jdwp_handler.cc \
151 src/jdwp/jdwp_main.cc \
152 src/jdwp/jdwp_socket.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -0700153 src/jni_internal.cc \
Elliott Hughes42ee1422011-09-06 12:33:32 -0700154 src/logging.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700155 src/mark_stack.cc \
156 src/mark_sweep.cc \
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700157 src/mem_map.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700158 src/memory_region.cc \
Elliott Hughes54e7df12011-09-16 11:47:04 -0700159 src/monitor.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700160 src/mutex.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700161 src/oat.cc \
162 src/oat_file.cc \
163 src/oat_writer.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -0700164 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700165 src/offsets.cc \
Brian Carlstrom395520e2011-09-25 19:35:00 -0700166 src/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
Elliott Hughesf6a1e1e2011-10-25 16:28:04 -0700167 src/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700168 src/os_linux.cc \
Brian Carlstromae826982011-11-09 01:33:42 -0800169 src/primitive.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700170 src/reference_table.cc \
Elliott Hughes418d20f2011-09-22 14:00:39 -0700171 src/reflection.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -0700172 src/runtime.cc \
Shih-wei Liaoa8a9c342012-03-03 22:35:16 -0800173 src/runtime_support.cc \
Elliott Hughes88c5c352012-03-15 18:49:48 -0700174 src/scoped_thread_list_lock.cc \
Elliott Hughese27955c2011-08-26 15:21:24 -0700175 src/signal_catcher.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700176 src/space.cc \
Elliott Hughes68e76522011-10-05 13:22:16 -0700177 src/stack.cc \
Carl Shapirob5573532011-07-12 18:22:59 -0700178 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -0700179 src/stringprintf.cc \
Elliott Hughes5ee7a8b2011-09-13 16:40:07 -0700180 src/sun_misc_Unsafe.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700181 src/thread.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700182 src/thread_list.cc \
jeffhaoe343b762011-12-05 16:36:44 -0800183 src/trace.cc \
Elliott Hughes814e4032011-08-23 12:07:56 -0700184 src/utf.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700185 src/utils.cc \
Elliott Hughes5c9f0b42011-12-15 18:15:46 -0800186 src/zip_archive.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700187
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800188ifeq ($(ART_USE_LLVM_COMPILER),true)
189LIBART_COMMON_SRC_FILES += \
Logan Chien3fe0c602012-03-27 21:14:37 +0800190 src/compiler_llvm/elf_loader.cc \
Logan Chienfca7e872011-12-20 20:08:22 +0800191 src/compiler_llvm/inferred_reg_category_map.cc \
Logan Chien937105a2012-04-02 02:37:37 +0800192 src/compiler_llvm/runtime_support_llvm.cc
Shih-wei Liaob1ab7df2012-03-29 13:53:46 -0700193endif
Ian Rogers57b86d42012-03-27 16:05:41 -0700194LIBART_COMMON_SRC_FILES += \
195 src/oat/runtime/arm/stub_arm.cc \
196 src/oat/runtime/context.cc \
197 src/oat/runtime/support_alloc.cc \
198 src/oat/runtime/support_cast.cc \
199 src/oat/runtime/support_debug.cc \
200 src/oat/runtime/support_dexcache.cc \
201 src/oat/runtime/support_field.cc \
202 src/oat/runtime/support_fillarray.cc \
203 src/oat/runtime/support_invoke.cc \
204 src/oat/runtime/support_jni.cc \
205 src/oat/runtime/support_locks.cc \
206 src/oat/runtime/support_math.cc \
207 src/oat/runtime/support_proxy.cc \
208 src/oat/runtime/support_stubs.cc \
209 src/oat/runtime/support_thread.cc \
210 src/oat/runtime/support_throw.cc \
211 src/oat/runtime/support_trace.cc \
212 src/oat/runtime/x86/stub_x86.cc \
213 src/oat/utils/arm/assembler_arm.cc \
214 src/oat/utils/arm/managed_register_arm.cc \
215 src/oat/utils/assembler.cc \
216 src/oat/utils/x86/assembler_x86.cc \
217 src/oat/utils/x86/managed_register_x86.cc
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800218
Brian Carlstrom934486c2011-07-12 23:42:50 -0700219LIBART_TARGET_SRC_FILES := \
220 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700221 src/jdwp/jdwp_adb.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -0700222 src/logging_android.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700223 src/monitor_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700224 src/runtime_android.cc \
Brian Carlstrom51477332012-03-25 20:20:26 -0700225 src/thread_android.cc
226
227ifeq ($(TARGET_ARCH),arm)
Ian Rogers57b86d42012-03-27 16:05:41 -0700228LIBART_TARGET_SRC_FILES += \
229 src/oat/runtime/arm/context_arm.cc.arm \
230 src/oat/runtime/arm/oat_support_entrypoints_arm.cc \
231 src/oat/runtime/arm/runtime_support_arm.S \
232 src/thread_arm.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700233else # TARGET_ARCH != arm
234ifeq ($(TARGET_ARCH),x86)
Ian Rogers57b86d42012-03-27 16:05:41 -0700235LIBART_TARGET_SRC_FILES += \
236 src/oat/runtime/x86/context_x86.cc \
237 src/oat/runtime/x86/oat_support_entrypoints_x86.cc \
238 src/oat/runtime/x86/runtime_support_x86.S \
239 src/thread_x86.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700240else # TARGET_ARCH != x86
241ifeq ($(TARGET_ARCH),mips)
Ian Rogers57b86d42012-03-27 16:05:41 -0700242LIBART_TARGET_SRC_FILES += \
243 src/oat/runtime/mips/oat_support_entrypoints_mips.cc \
244 src/oat/runtime/mips/runtime_support_mips.S \
245 src/thread_mips.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700246else # TARGET_ARCH != mips
247$(error unsupported TARGET_ARCH=$(TARGET_ARCH))
248endif # TARGET_ARCH != mips
249endif # TARGET_ARCH != x86
250endif # TARGET_ARCH != arm
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700251
Brian Carlstrom934486c2011-07-12 23:42:50 -0700252LIBART_HOST_SRC_FILES := \
253 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughesffe67362011-07-17 12:09:27 -0700254 src/logging_linux.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700255 src/monitor_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700256 src/runtime_linux.cc \
Brian Carlstrom51477332012-03-25 20:20:26 -0700257 src/thread_linux.cc
258
259ifeq ($(HOST_ARCH),x86)
Ian Rogers57b86d42012-03-27 16:05:41 -0700260LIBART_HOST_SRC_FILES += \
261 src/oat/runtime/x86/oat_support_entrypoints_x86.cc \
262 src/oat/runtime/x86/context_x86.cc \
263 src/oat/runtime/x86/runtime_support_x86.S \
264 src/thread_x86.cc
Brian Carlstrom51477332012-03-25 20:20:26 -0700265else # HOST_ARCH != x86
266$(error unsupported HOST_ARCH=$(HOST_ARCH))
267endif # HOST_ARCH != x86
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700268
Elliott Hughes0e57ccb2012-04-03 16:04:52 -0700269LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \
Elliott Hughes460384f2012-04-04 16:53:10 -0700270 src/dex_verifier.h \
Elliott Hughes0e57ccb2012-04-03 16:04:52 -0700271 src/indirect_reference_table.h \
272 src/instruction_set.h \
273 src/invoke_type.h \
Elliott Hughes460384f2012-04-04 16:53:10 -0700274 src/jdwp/jdwp.h \
275 src/jdwp/jdwp_constants.h \
Elliott Hughes34e06962012-04-09 13:55:55 -0700276 src/mutex.h \
277 src/thread.h
Elliott Hughes0e57ccb2012-04-03 16:04:52 -0700278
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700279LIBARTTEST_COMMON_SRC_FILES := \
Shih-wei Liaoa6af3c32011-10-17 15:25:11 -0700280 test/StackWalk/stack_walk_jni.cc \
281 test/ReferenceMap/stack_walk_refmap_jni.cc
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700282
Brian Carlstrom934486c2011-07-12 23:42:50 -0700283TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700284 src/class_linker_test.cc \
Brian Carlstromaded5f72011-10-07 17:15:04 -0700285 src/compiler_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700286 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700287 src/dex_file_test.cc \
288 src/dex_instruction_visitor_test.cc \
jeffhaoba5ebb92011-08-25 17:24:37 -0700289 src/dex_verifier_test.cc \
Shih-wei Liao2fb97532011-08-11 16:17:23 -0700290 src/exception_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700291 src/file_test.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700292 src/heap_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700293 src/image_test.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700294 src/indirect_reference_table_test.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700295 src/intern_table_test.cc \
Ian Rogerscd2764f2011-09-02 15:38:24 -0700296 src/jni_internal_test.cc \
297 src/jni_compiler_test.cc \
Ian Rogers57b86d42012-03-27 16:05:41 -0700298 src/oat/utils/arm/managed_register_arm_test.cc \
299 src/oat/utils/x86/managed_register_x86_test.cc \
Brian Carlstromcd74c4b2012-01-23 13:21:00 -0800300 src/mutex_test.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700301 src/oat_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -0700302 src/object_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700303 src/reference_table_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -0700304 src/runtime_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700305 src/space_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700306 src/utils_test.cc \
Brian Carlstromaded5f72011-10-07 17:15:04 -0700307 src/zip_archive_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700308
Brian Carlstrom934486c2011-07-12 23:42:50 -0700309TEST_TARGET_SRC_FILES := \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700310 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -0700311
Brian Carlstrom934486c2011-07-12 23:42:50 -0700312TEST_HOST_SRC_FILES := \
313 $(TEST_COMMON_SRC_FILES) \
Ian Rogers57b86d42012-03-27 16:05:41 -0700314 src/oat/utils/x86/assembler_x86_test.cc
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700315
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800316# subdirectories of test/ which are used as inputs for gtests
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700317TEST_DEX_DIRECTORIES := \
Shih-wei Liao303b01e2011-09-14 00:46:13 -0700318 AbstractMethod \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700319 AllFields \
Ian Rogers0571d352011-11-03 19:51:38 -0700320 CreateMethodSignature \
Brian Carlstrom33f741e2011-10-03 11:24:05 -0700321 ExceptionHandle \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700322 IntMath \
323 Interfaces \
324 Main \
325 MyClass \
326 MyClassNatives \
327 Nested \
Elliott Hughes77405792012-03-15 15:22:12 -0700328 NonStaticLeafMethods \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700329 ProtoCompare \
330 ProtoCompare2 \
331 StaticLeafMethods \
332 Statics \
jeffhaoabcfde32011-09-29 15:05:18 -0700333 StaticsFromCode \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700334 XandY
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700335
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800336# subdirectories of test/ which are used with test-art-target-oat
337# Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical
338TEST_OAT_DIRECTORIES := \
339 Main \
340 HelloWorld \
341 Fibonacci \
342 \
343 ExceptionTest \
344 GrowthLimit \
345 IntMath \
346 Invoke \
347 MemUsage \
348 ParallelGC \
349 ReferenceMap \
350 ReflectionTest \
351 StackWalk \
352 ThreadStress
353
354# TODO: Enable when the StackWalk2 tests are passing
355# StackWalk2 \
356
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700357ART_BUILD_TARGET := false
358ART_BUILD_HOST := false
359ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
360 ART_BUILD_TARGET := true
361endif
362ifeq ($(ART_BUILD_TARGET_DEBUG),true)
363 ART_BUILD_TARGET := true
364endif
365ifeq ($(ART_BUILD_HOST_NDEBUG),true)
366 ART_BUILD_HOST := true
367endif
368ifeq ($(ART_BUILD_HOST_DEBUG),true)
369 ART_BUILD_HOST := true
370endif