blob: 8c1629564e432e0d3b3c7ad860e92e3a568bad8c [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
Shih-wei Liaod1fec812012-02-13 09:51:10 -080017# Use llvm as the backend
18ifneq ($(wildcard art/USE_LLVM_COMPILER),)
19ART_USE_LLVM_COMPILER := true
20else
21ART_USE_LLVM_COMPILER := false
22endif
23
24ifeq ($(ART_USE_LLVM_COMPILER),true)
25LLVM_ROOT_PATH := external/llvm
26include $(LLVM_ROOT_PATH)/llvm.mk
27endif
28
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070029# art-cache
30ART_CACHE_DIR := /data/art-cache
31ART_CACHE_OUT := $(TARGET_OUT_DATA)/art-cache
32
Brian Carlstrombd411022012-02-07 12:09:09 -080033# $(1): pathname
Brian Carlstroma004aa92012-02-08 18:05:09 -080034define art-cache-dir
35$(ART_CACHE_DIR)/$(subst /,@,$(1))
36endef
37
38# $(1): pathname
Brian Carlstrombd411022012-02-07 12:09:09 -080039define art-cache-out
40$(ART_CACHE_OUT)/$(subst /,@,$(1))
41endef
42
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -080043# directory used for gtests on device
44ART_NATIVETEST_DIR := /data/nativetest/art
45ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art
46
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070047# directory used for tests on device
48ART_TEST_DIR := /data/art-test
49ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test
50
Brian Carlstromcdc8de42011-07-19 14:23:17 -070051ART_CPP_EXTENSION := .cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070052
Elliott Hughes0af55432011-08-17 18:37:28 -070053ART_C_INCLUDES := \
54 external/gtest/include \
55 external/icu4c/common \
56 external/icu4c/i18n \
Elliott Hughes8d768a92011-09-14 16:35:25 -070057 external/valgrind/dynamic_annotations \
buzbeec143c552011-08-20 17:38:58 -070058 external/zlib \
59 art/src \
60 dalvik/libdex
Brian Carlstromb0460ea2011-07-29 10:08:05 -070061
Elliott Hughes1d3f1142011-09-13 12:00:00 -070062art_cflags := \
Ian Rogers646c3d72012-02-17 23:55:19 -080063 -O2 \
Carl Shapiro1fb86202011-06-27 17:43:13 -070064 -ggdb3 \
65 -Wall \
66 -Werror \
67 -Wextra \
68 -Wno-unused-parameter \
Elliott Hugheseaa200d2012-01-05 16:30:31 -080069 -Wstrict-aliasing=3 \
Carl Shapiro1fb86202011-06-27 17:43:13 -070070 -fno-align-jumps \
71 -fstrict-aliasing
72
Shih-wei Liaod1fec812012-02-13 09:51:10 -080073ifeq ($(ART_USE_LLVM_COMPILER),true)
74art_cflags := \
75 -DART_USE_LLVM_COMPILER=1
76endif
77
Brian Carlstrom69d7a6b2011-12-15 17:31:21 -080078ifeq ($(HOST_OS),linux)
Shih-wei Liao24782c62012-01-08 12:46:11 -080079 art_non_debug_cflags := \
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070080 -Wframe-larger-than=1728
Brian Carlstrom69d7a6b2011-12-15 17:31:21 -080081endif
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070082
83art_debug_cflags := \
Elliott Hughes06e3ad42012-02-07 14:51:57 -080084 -DDYNAMIC_ANNOTATIONS_ENABLED=1 \
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070085 -UNDEBUG
86
Elliott Hughes1d3f1142011-09-13 12:00:00 -070087ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1
88
89ART_TARGET_CFLAGS := $(art_cflags)
90ifeq ($(TARGET_CPU_SMP),true)
91 ART_TARGET_CFLAGS += -DANDROID_SMP=1
92else
93 ART_TARGET_CFLAGS += -DANDROID_SMP=0
94endif
95
Brian Carlstrom89521892011-12-07 22:05:07 -080096# To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16"
97# ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
98
Elliott Hughes3b6baaa2011-10-14 19:13:56 -070099ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags)
100ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags)
101
Brian Carlstrom86927212011-09-15 11:31:11 -0700102# TODO: move -fkeep-inline-functions to art_debug_cflags when target gcc > 4.4
Elliott Hughes1ba27142012-01-20 15:32:00 -0800103ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions
Elliott Hughesad6c9c32012-01-19 17:39:12 -0800104
105ifneq ($(HOST_OS),linux)
106 # Some Mac OS pthread header files are broken with -fkeep-inline-functions.
Elliott Hughes34cf5142012-01-20 16:39:13 -0800107 ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS))
Elliott Hughesad6c9c32012-01-19 17:39:12 -0800108endif
109
Brian Carlstrom86927212011-09-15 11:31:11 -0700110ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags)
Elliott Hughes1d3f1142011-09-13 12:00:00 -0700111
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700112DEX2OAT_SRC_FILES := \
113 src/dex2oat.cc
114
Brian Carlstrom78128a62011-09-15 17:21:19 -0700115OATDUMP_SRC_FILES := \
116 src/oatdump.cc
117
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700118OATEXEC_SRC_FILES := \
119 src/oatexec.cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -0700120
Brian Carlstrom934486c2011-07-12 23:42:50 -0700121LIBART_COMMON_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700122 src/assembler.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700123 src/assembler_arm.cc \
124 src/assembler_x86.cc \
Elliott Hughes5ea047b2011-09-13 14:38:18 -0700125 src/atomic.cc.arm \
Ian Rogersb033c752011-07-20 12:22:35 -0700126 src/calling_convention.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700127 src/calling_convention_arm.cc \
128 src/calling_convention_x86.cc \
Ian Rogers5d76c432011-10-31 21:42:49 -0700129 src/card_table.cc \
Ian Rogersc8b306f2012-02-17 21:34:44 -0800130 src/constants.cc \
Ian Rogersbdb03912011-09-14 00:55:44 -0700131 src/context.cc \
Elliott Hughes85d15452011-09-16 17:33:01 -0700132 src/context_arm.cc.arm \
133 src/context_x86.cc \
Elliott Hughesa2501992011-08-26 19:39:54 -0700134 src/check_jni.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700135 src/class_linker.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700136 src/class_loader.cc \
Brian Carlstrom3320cf42011-10-04 14:58:28 -0700137 src/compiled_method.cc \
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700138 src/compiler.cc \
Brian Carlstromf91c8c32011-09-21 17:30:34 -0700139 src/dalvik_system_DexFile.cc \
Elliott Hughes01158d72011-09-19 19:47:10 -0700140 src/dalvik_system_VMDebug.cc \
Elliott Hughes7ede61e2011-09-14 18:18:06 -0700141 src/dalvik_system_VMRuntime.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700142 src/dalvik_system_VMStack.cc \
Elliott Hughes01158d72011-09-19 19:47:10 -0700143 src/dalvik_system_Zygote.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700144 src/debugger.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700145 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700146 src/dex_file.cc \
jeffhao10037c82012-01-23 15:06:23 -0800147 src/dex_file_verifier.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -0700148 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700149 src/dex_verifier.cc \
Ian Rogers30fab402012-01-23 15:43:46 -0800150 src/dlmalloc.c \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700151 src/file.cc \
152 src/file_linux.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700153 src/heap.cc \
Elliott Hughes5e71b522011-10-20 13:12:32 -0700154 src/heap_bitmap.cc \
Jesse Wilsonc4824e62011-11-01 14:39:04 -0400155 src/hprof/hprof.cc \
Jesse Wilson0c54ac12011-11-09 15:14:05 -0500156 src/hprof/hprof_record.cc \
Brian Carlstrom4a289ed2011-08-16 17:17:49 -0700157 src/image.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700158 src/image_writer.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700159 src/indirect_reference_table.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700160 src/intern_table.cc \
Elliott Hughesd369bb72011-09-12 14:41:14 -0700161 src/java_lang_Class.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -0700162 src/java_lang_Object.cc \
163 src/java_lang_Runtime.cc \
164 src/java_lang_String.cc \
165 src/java_lang_System.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700166 src/java_lang_Thread.cc \
Elliott Hughes1240dad2011-09-09 16:24:50 -0700167 src/java_lang_Throwable.cc \
Elliott Hughes64bf5a32011-09-20 14:43:12 -0700168 src/java_lang_VMClassLoader.cc \
Brian Carlstrom5b8e4c82011-09-18 01:38:59 -0700169 src/java_lang_reflect_Array.cc \
Elliott Hughes2a20cfd2011-09-23 19:30:41 -0700170 src/java_lang_reflect_Constructor.cc \
Brian Carlstromf867b6f2011-09-16 12:17:25 -0700171 src/java_lang_reflect_Field.cc \
172 src/java_lang_reflect_Method.cc \
Jesse Wilson95caa792011-10-12 18:14:17 -0400173 src/java_lang_reflect_Proxy.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -0700174 src/java_util_concurrent_atomic_AtomicLong.cc \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700175 src/jdwp/jdwp_constants.cc \
176 src/jdwp/jdwp_event.cc \
177 src/jdwp/jdwp_expand_buf.cc \
178 src/jdwp/jdwp_handler.cc \
179 src/jdwp/jdwp_main.cc \
180 src/jdwp/jdwp_socket.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700181 src/jni_compiler.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -0700182 src/jni_internal.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700183 src/jni_internal_arm.cc \
184 src/jni_internal_x86.cc \
Elliott Hughes42ee1422011-09-06 12:33:32 -0700185 src/logging.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700186 src/mark_stack.cc \
187 src/mark_sweep.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700188 src/managed_register_arm.cc \
189 src/managed_register_x86.cc \
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700190 src/mem_map.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700191 src/memory_region.cc \
Elliott Hughes54e7df12011-09-16 11:47:04 -0700192 src/monitor.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700193 src/mutex.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700194 src/oat.cc \
195 src/oat_file.cc \
196 src/oat_writer.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -0700197 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700198 src/offsets.cc \
Brian Carlstrom395520e2011-09-25 19:35:00 -0700199 src/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
Elliott Hughesf6a1e1e2011-10-25 16:28:04 -0700200 src/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700201 src/os_linux.cc \
Brian Carlstromae826982011-11-09 01:33:42 -0800202 src/primitive.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700203 src/reference_table.cc \
Elliott Hughes418d20f2011-09-22 14:00:39 -0700204 src/reflection.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -0700205 src/runtime.cc \
Elliott Hughese27955c2011-08-26 15:21:24 -0700206 src/signal_catcher.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700207 src/space.cc \
Elliott Hughes68e76522011-10-05 13:22:16 -0700208 src/stack.cc \
Carl Shapirob5573532011-07-12 18:22:59 -0700209 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -0700210 src/stringprintf.cc \
Shih-wei Liao31384c52011-09-06 15:27:45 -0700211 src/stub_arm.cc \
212 src/stub_x86.cc \
Elliott Hughes5ee7a8b2011-09-13 16:40:07 -0700213 src/sun_misc_Unsafe.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700214 src/thread.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700215 src/thread_list.cc \
jeffhaoe343b762011-12-05 16:36:44 -0800216 src/trace.cc \
Shih-wei Liao2d831012011-09-28 22:06:53 -0700217 src/runtime_support.cc \
Elliott Hughes814e4032011-08-23 12:07:56 -0700218 src/utf.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700219 src/utils.cc \
Elliott Hughes5c9f0b42011-12-15 18:15:46 -0800220 src/zip_archive.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700221
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800222ifeq ($(ART_USE_LLVM_COMPILER),true)
223LIBART_COMMON_SRC_FILES += \
224 src/compiler_llvm/compiler_llvm.cc \
Logan Chienc670a8d2011-12-20 21:25:56 +0800225 src/compiler_llvm/dalvik_reg.cc \
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800226 src/compiler_llvm/frontend.cc \
227 src/compiler_llvm/ir_builder.cc \
Logan Chienfca7e872011-12-20 20:08:22 +0800228 src/compiler_llvm/inferred_reg_category_map.cc \
Logan Chien7e6e33d2012-01-31 09:22:09 +0800229 src/compiler_llvm/method_compiler.cc \
230 src/compiler_llvm/utils_llvm.cc
Shih-wei Liaod1fec812012-02-13 09:51:10 -0800231else
232LIBART_COMMON_SRC_FILES += \
233 src/compiler/Dataflow.cc \
234 src/compiler/Frontend.cc \
235 src/compiler/IntermediateRep.cc \
236 src/compiler/Ralloc.cc \
237 src/compiler/SSATransformation.cc \
238 src/compiler/Utility.cc \
239 src/compiler/codegen/RallocUtil.cc \
240 src/compiler/codegen/arm/ArchUtility.cc \
241 src/compiler/codegen/arm/ArmRallocUtil.cc \
242 src/compiler/codegen/arm/Assemble.cc \
243 src/compiler/codegen/arm/LocalOptimizations.cc \
244 src/compiler/codegen/arm/armv7-a/Codegen.cc
245endif
246
Brian Carlstrom934486c2011-07-12 23:42:50 -0700247LIBART_TARGET_SRC_FILES := \
248 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughes872d4ec2011-10-21 17:07:15 -0700249 src/jdwp/jdwp_adb.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -0700250 src/logging_android.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700251 src/monitor_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700252 src/runtime_android.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700253 src/thread_android.cc \
Elliott Hughes5c9f0b42011-12-15 18:15:46 -0800254 src/thread_arm.cc \
255 src/runtime_support_arm.S
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700256
Brian Carlstrom934486c2011-07-12 23:42:50 -0700257LIBART_HOST_SRC_FILES := \
258 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughesffe67362011-07-17 12:09:27 -0700259 src/logging_linux.cc \
Elliott Hughesfc861622011-10-17 17:57:47 -0700260 src/monitor_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700261 src/runtime_linux.cc \
Elliott Hughes8daa0922011-09-11 13:46:25 -0700262 src/thread_linux.cc \
Elliott Hughes5c9f0b42011-12-15 18:15:46 -0800263 src/thread_x86.cc \
264 src/runtime_support_x86.S
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700265
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700266LIBARTTEST_COMMON_SRC_FILES := \
Shih-wei Liaoa6af3c32011-10-17 15:25:11 -0700267 test/StackWalk/stack_walk_jni.cc \
268 test/ReferenceMap/stack_walk_refmap_jni.cc
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700269
Brian Carlstrom934486c2011-07-12 23:42:50 -0700270TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700271 src/class_linker_test.cc \
Brian Carlstromaded5f72011-10-07 17:15:04 -0700272 src/compiler_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700273 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700274 src/dex_file_test.cc \
275 src/dex_instruction_visitor_test.cc \
jeffhaoba5ebb92011-08-25 17:24:37 -0700276 src/dex_verifier_test.cc \
Shih-wei Liao2fb97532011-08-11 16:17:23 -0700277 src/exception_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700278 src/file_test.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700279 src/heap_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700280 src/image_test.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700281 src/indirect_reference_table_test.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700282 src/intern_table_test.cc \
Ian Rogerscd2764f2011-09-02 15:38:24 -0700283 src/jni_internal_test.cc \
284 src/jni_compiler_test.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700285 src/managed_register_arm_test.cc \
286 src/managed_register_x86_test.cc \
Brian Carlstromcd74c4b2012-01-23 13:21:00 -0800287 src/mutex_test.cc \
Brian Carlstrome24fa612011-09-29 00:53:55 -0700288 src/oat_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -0700289 src/object_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700290 src/reference_table_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -0700291 src/runtime_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700292 src/space_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700293 src/utils_test.cc \
Brian Carlstromaded5f72011-10-07 17:15:04 -0700294 src/zip_archive_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700295
Logan Chien7e6e33d2012-01-31 09:22:09 +0800296ifeq ($(ART_USE_LLVM_COMPILER),true)
297TEST_COMMON_SRC_FILES += \
298 src/compiler_llvm/utils_llvm_test.cc
299endif
300
Brian Carlstrom934486c2011-07-12 23:42:50 -0700301TEST_TARGET_SRC_FILES := \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700302 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -0700303
Brian Carlstrom934486c2011-07-12 23:42:50 -0700304TEST_HOST_SRC_FILES := \
305 $(TEST_COMMON_SRC_FILES) \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700306 src/assembler_x86_test.cc
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700307
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800308# subdirectories of test/ which are used as inputs for gtests
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700309TEST_DEX_DIRECTORIES := \
Shih-wei Liao303b01e2011-09-14 00:46:13 -0700310 AbstractMethod \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700311 AllFields \
Ian Rogers0571d352011-11-03 19:51:38 -0700312 CreateMethodSignature \
Brian Carlstrom33f741e2011-10-03 11:24:05 -0700313 ExceptionHandle \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700314 IntMath \
315 Interfaces \
316 Main \
317 MyClass \
318 MyClassNatives \
319 Nested \
320 ProtoCompare \
321 ProtoCompare2 \
322 StaticLeafMethods \
323 Statics \
jeffhaoabcfde32011-09-29 15:05:18 -0700324 StaticsFromCode \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700325 XandY
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700326
Brian Carlstrom32b4b2a2012-01-31 16:21:40 -0800327# subdirectories of test/ which are used with test-art-target-oat
328# Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical
329TEST_OAT_DIRECTORIES := \
330 Main \
331 HelloWorld \
332 Fibonacci \
333 \
334 ExceptionTest \
335 GrowthLimit \
336 IntMath \
337 Invoke \
338 MemUsage \
339 ParallelGC \
340 ReferenceMap \
341 ReflectionTest \
342 StackWalk \
343 ThreadStress
344
345# TODO: Enable when the StackWalk2 tests are passing
346# StackWalk2 \
347
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700348ART_BUILD_TARGET := false
349ART_BUILD_HOST := false
350ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
351 ART_BUILD_TARGET := true
352endif
353ifeq ($(ART_BUILD_TARGET_DEBUG),true)
354 ART_BUILD_TARGET := true
355endif
356ifeq ($(ART_BUILD_HOST_NDEBUG),true)
357 ART_BUILD_HOST := true
358endif
359ifeq ($(ART_BUILD_HOST_DEBUG),true)
360 ART_BUILD_HOST := true
361endif