Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 1 | # |
| 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 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 17 | # art-cache |
| 18 | ART_CACHE_DIR := /data/art-cache |
| 19 | ART_CACHE_OUT := $(TARGET_OUT_DATA)/art-cache |
| 20 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame^] | 21 | # directory used for gtests on device |
| 22 | ART_NATIVETEST_DIR := /data/nativetest/art |
| 23 | ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art |
| 24 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 25 | # directory used for tests on device |
| 26 | ART_TEST_DIR := /data/art-test |
| 27 | ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test |
| 28 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 29 | ART_CPP_EXTENSION := .cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 30 | |
Elliott Hughes | 0af5543 | 2011-08-17 18:37:28 -0700 | [diff] [blame] | 31 | ART_C_INCLUDES := \ |
| 32 | external/gtest/include \ |
| 33 | external/icu4c/common \ |
| 34 | external/icu4c/i18n \ |
Elliott Hughes | 8d768a9 | 2011-09-14 16:35:25 -0700 | [diff] [blame] | 35 | external/valgrind/dynamic_annotations \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 36 | external/zlib \ |
| 37 | art/src \ |
| 38 | dalvik/libdex |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 39 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 40 | art_cflags := \ |
Elliott Hughes | 7f40ffc | 2011-09-04 10:50:01 -0700 | [diff] [blame] | 41 | -O2 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 42 | -ggdb3 \ |
| 43 | -Wall \ |
| 44 | -Werror \ |
| 45 | -Wextra \ |
| 46 | -Wno-unused-parameter \ |
Elliott Hughes | eaa200d | 2012-01-05 16:30:31 -0800 | [diff] [blame] | 47 | -Wstrict-aliasing=3 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 48 | -fno-align-jumps \ |
| 49 | -fstrict-aliasing |
| 50 | |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 51 | ifeq ($(HOST_OS),linux) |
Shih-wei Liao | 24782c6 | 2012-01-08 12:46:11 -0800 | [diff] [blame] | 52 | art_non_debug_cflags := \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 53 | -Wframe-larger-than=1728 |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 54 | endif |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 55 | |
| 56 | art_debug_cflags := \ |
| 57 | -UNDEBUG |
| 58 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 59 | ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1 |
| 60 | |
| 61 | ART_TARGET_CFLAGS := $(art_cflags) |
| 62 | ifeq ($(TARGET_CPU_SMP),true) |
| 63 | ART_TARGET_CFLAGS += -DANDROID_SMP=1 |
| 64 | else |
| 65 | ART_TARGET_CFLAGS += -DANDROID_SMP=0 |
| 66 | endif |
| 67 | |
Brian Carlstrom | 8952189 | 2011-12-07 22:05:07 -0800 | [diff] [blame] | 68 | # To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16" |
| 69 | # ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 70 | |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 71 | ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 72 | ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 73 | |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 74 | # TODO: move -fkeep-inline-functions to art_debug_cflags when target gcc > 4.4 |
Elliott Hughes | 1ba2714 | 2012-01-20 15:32:00 -0800 | [diff] [blame] | 75 | ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 76 | |
| 77 | ifneq ($(HOST_OS),linux) |
| 78 | # Some Mac OS pthread header files are broken with -fkeep-inline-functions. |
Elliott Hughes | 34cf514 | 2012-01-20 16:39:13 -0800 | [diff] [blame] | 79 | ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS)) |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 80 | endif |
| 81 | |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 82 | ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 83 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 84 | DEX2OAT_SRC_FILES := \ |
| 85 | src/dex2oat.cc |
| 86 | |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 87 | OATDUMP_SRC_FILES := \ |
| 88 | src/oatdump.cc |
| 89 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 90 | OATEXEC_SRC_FILES := \ |
| 91 | src/oatexec.cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 92 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 93 | LIBART_COMMON_SRC_FILES := \ |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 94 | src/assembler.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 95 | src/assembler_arm.cc \ |
| 96 | src/assembler_x86.cc \ |
Elliott Hughes | 5ea047b | 2011-09-13 14:38:18 -0700 | [diff] [blame] | 97 | src/atomic.cc.arm \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 98 | src/calling_convention.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 99 | src/calling_convention_arm.cc \ |
| 100 | src/calling_convention_x86.cc \ |
Ian Rogers | 5d76c43 | 2011-10-31 21:42:49 -0700 | [diff] [blame] | 101 | src/card_table.cc \ |
Ian Rogers | bdb0391 | 2011-09-14 00:55:44 -0700 | [diff] [blame] | 102 | src/context.cc \ |
Elliott Hughes | 85d1545 | 2011-09-16 17:33:01 -0700 | [diff] [blame] | 103 | src/context_arm.cc.arm \ |
| 104 | src/context_x86.cc \ |
Elliott Hughes | a250199 | 2011-08-26 19:39:54 -0700 | [diff] [blame] | 105 | src/check_jni.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 106 | src/class_linker.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 107 | src/class_loader.cc \ |
Brian Carlstrom | 3320cf4 | 2011-10-04 14:58:28 -0700 | [diff] [blame] | 108 | src/compiled_method.cc \ |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame] | 109 | src/compiler.cc \ |
Brian Carlstrom | 2cc022b | 2011-08-25 10:05:39 -0700 | [diff] [blame] | 110 | src/compiler/Dataflow.cc \ |
| 111 | src/compiler/Frontend.cc \ |
| 112 | src/compiler/IntermediateRep.cc \ |
| 113 | src/compiler/Ralloc.cc \ |
| 114 | src/compiler/SSATransformation.cc \ |
| 115 | src/compiler/Utility.cc \ |
| 116 | src/compiler/codegen/RallocUtil.cc \ |
| 117 | src/compiler/codegen/arm/ArchUtility.cc \ |
| 118 | src/compiler/codegen/arm/ArmRallocUtil.cc \ |
| 119 | src/compiler/codegen/arm/Assemble.cc \ |
| 120 | src/compiler/codegen/arm/LocalOptimizations.cc \ |
| 121 | src/compiler/codegen/arm/armv7-a/Codegen.cc \ |
Brian Carlstrom | f91c8c3 | 2011-09-21 17:30:34 -0700 | [diff] [blame] | 122 | src/dalvik_system_DexFile.cc \ |
Elliott Hughes | 01158d7 | 2011-09-19 19:47:10 -0700 | [diff] [blame] | 123 | src/dalvik_system_VMDebug.cc \ |
Elliott Hughes | 7ede61e | 2011-09-14 18:18:06 -0700 | [diff] [blame] | 124 | src/dalvik_system_VMRuntime.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 125 | src/dalvik_system_VMStack.cc \ |
Elliott Hughes | 01158d7 | 2011-09-19 19:47:10 -0700 | [diff] [blame] | 126 | src/dalvik_system_Zygote.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 127 | src/debugger.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 128 | src/dex_cache.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 129 | src/dex_file.cc \ |
jeffhao | 10037c8 | 2012-01-23 15:06:23 -0800 | [diff] [blame] | 130 | src/dex_file_verifier.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 131 | src/dex_instruction.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 132 | src/dex_verifier.cc \ |
Ian Rogers | 30fab40 | 2012-01-23 15:43:46 -0800 | [diff] [blame] | 133 | src/dlmalloc.c \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 134 | src/file.cc \ |
| 135 | src/file_linux.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 136 | src/heap.cc \ |
Elliott Hughes | 5e71b52 | 2011-10-20 13:12:32 -0700 | [diff] [blame] | 137 | src/heap_bitmap.cc \ |
Jesse Wilson | c4824e6 | 2011-11-01 14:39:04 -0400 | [diff] [blame] | 138 | src/hprof/hprof.cc \ |
Jesse Wilson | 0c54ac1 | 2011-11-09 15:14:05 -0500 | [diff] [blame] | 139 | src/hprof/hprof_record.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 140 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 141 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 142 | src/indirect_reference_table.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 143 | src/intern_table.cc \ |
Elliott Hughes | d369bb7 | 2011-09-12 14:41:14 -0700 | [diff] [blame] | 144 | src/java_lang_Class.cc \ |
Elliott Hughes | bf86d04 | 2011-08-31 17:53:14 -0700 | [diff] [blame] | 145 | src/java_lang_Object.cc \ |
| 146 | src/java_lang_Runtime.cc \ |
| 147 | src/java_lang_String.cc \ |
| 148 | src/java_lang_System.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 149 | src/java_lang_Thread.cc \ |
Elliott Hughes | 1240dad | 2011-09-09 16:24:50 -0700 | [diff] [blame] | 150 | src/java_lang_Throwable.cc \ |
Elliott Hughes | 64bf5a3 | 2011-09-20 14:43:12 -0700 | [diff] [blame] | 151 | src/java_lang_VMClassLoader.cc \ |
Brian Carlstrom | 5b8e4c8 | 2011-09-18 01:38:59 -0700 | [diff] [blame] | 152 | src/java_lang_reflect_Array.cc \ |
Elliott Hughes | 2a20cfd | 2011-09-23 19:30:41 -0700 | [diff] [blame] | 153 | src/java_lang_reflect_Constructor.cc \ |
Brian Carlstrom | f867b6f | 2011-09-16 12:17:25 -0700 | [diff] [blame] | 154 | src/java_lang_reflect_Field.cc \ |
| 155 | src/java_lang_reflect_Method.cc \ |
Jesse Wilson | 95caa79 | 2011-10-12 18:14:17 -0400 | [diff] [blame] | 156 | src/java_lang_reflect_Proxy.cc \ |
Elliott Hughes | bf86d04 | 2011-08-31 17:53:14 -0700 | [diff] [blame] | 157 | src/java_util_concurrent_atomic_AtomicLong.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 158 | src/jdwp/jdwp_constants.cc \ |
| 159 | src/jdwp/jdwp_event.cc \ |
| 160 | src/jdwp/jdwp_expand_buf.cc \ |
| 161 | src/jdwp/jdwp_handler.cc \ |
| 162 | src/jdwp/jdwp_main.cc \ |
| 163 | src/jdwp/jdwp_socket.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 164 | src/jni_compiler.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 165 | src/jni_internal.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 166 | src/jni_internal_arm.cc \ |
| 167 | src/jni_internal_x86.cc \ |
Elliott Hughes | 42ee142 | 2011-09-06 12:33:32 -0700 | [diff] [blame] | 168 | src/logging.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 169 | src/mark_stack.cc \ |
| 170 | src/mark_sweep.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 171 | src/managed_register_arm.cc \ |
| 172 | src/managed_register_x86.cc \ |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 173 | src/mem_map.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 174 | src/memory_region.cc \ |
Elliott Hughes | 54e7df1 | 2011-09-16 11:47:04 -0700 | [diff] [blame] | 175 | src/monitor.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 176 | src/mutex.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 177 | src/oat.cc \ |
| 178 | src/oat_file.cc \ |
| 179 | src/oat_writer.cc \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame] | 180 | src/object.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 181 | src/offsets.cc \ |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 182 | src/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ |
Elliott Hughes | f6a1e1e | 2011-10-25 16:28:04 -0700 | [diff] [blame] | 183 | src/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 184 | src/os_linux.cc \ |
Brian Carlstrom | ae82698 | 2011-11-09 01:33:42 -0800 | [diff] [blame] | 185 | src/primitive.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 186 | src/reference_table.cc \ |
Elliott Hughes | 418d20f | 2011-09-22 14:00:39 -0700 | [diff] [blame] | 187 | src/reflection.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 188 | src/runtime.cc \ |
Elliott Hughes | e27955c | 2011-08-26 15:21:24 -0700 | [diff] [blame] | 189 | src/signal_catcher.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 190 | src/space.cc \ |
Elliott Hughes | 68e7652 | 2011-10-05 13:22:16 -0700 | [diff] [blame] | 191 | src/stack.cc \ |
Carl Shapiro | b557353 | 2011-07-12 18:22:59 -0700 | [diff] [blame] | 192 | src/stringpiece.cc \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 193 | src/stringprintf.cc \ |
Shih-wei Liao | 31384c5 | 2011-09-06 15:27:45 -0700 | [diff] [blame] | 194 | src/stub_arm.cc \ |
| 195 | src/stub_x86.cc \ |
Elliott Hughes | 5ee7a8b | 2011-09-13 16:40:07 -0700 | [diff] [blame] | 196 | src/sun_misc_Unsafe.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 197 | src/thread.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 198 | src/thread_list.cc \ |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 199 | src/trace.cc \ |
Shih-wei Liao | 2d83101 | 2011-09-28 22:06:53 -0700 | [diff] [blame] | 200 | src/runtime_support.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 201 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 202 | src/utils.cc \ |
Elliott Hughes | 5c9f0b4 | 2011-12-15 18:15:46 -0800 | [diff] [blame] | 203 | src/zip_archive.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 204 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 205 | LIBART_TARGET_SRC_FILES := \ |
| 206 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 207 | src/jdwp/jdwp_adb.cc \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 208 | src/logging_android.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 209 | src/monitor_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 210 | src/runtime_android.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 211 | src/thread_android.cc \ |
Elliott Hughes | 5c9f0b4 | 2011-12-15 18:15:46 -0800 | [diff] [blame] | 212 | src/thread_arm.cc \ |
| 213 | src/runtime_support_arm.S |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 214 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 215 | LIBART_HOST_SRC_FILES := \ |
| 216 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 217 | src/logging_linux.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 218 | src/monitor_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 219 | src/runtime_linux.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 220 | src/thread_linux.cc \ |
Elliott Hughes | 5c9f0b4 | 2011-12-15 18:15:46 -0800 | [diff] [blame] | 221 | src/thread_x86.cc \ |
| 222 | src/runtime_support_x86.S |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 223 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 224 | LIBARTTEST_COMMON_SRC_FILES := \ |
Shih-wei Liao | a6af3c3 | 2011-10-17 15:25:11 -0700 | [diff] [blame] | 225 | test/StackWalk/stack_walk_jni.cc \ |
| 226 | test/ReferenceMap/stack_walk_refmap_jni.cc |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 227 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 228 | TEST_COMMON_SRC_FILES := \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 229 | src/class_linker_test.cc \ |
Brian Carlstrom | aded5f7 | 2011-10-07 17:15:04 -0700 | [diff] [blame] | 230 | src/compiler_test.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 231 | src/dex_cache_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 232 | src/dex_file_test.cc \ |
| 233 | src/dex_instruction_visitor_test.cc \ |
jeffhao | ba5ebb9 | 2011-08-25 17:24:37 -0700 | [diff] [blame] | 234 | src/dex_verifier_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 235 | src/exception_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 236 | src/file_test.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 237 | src/heap_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 238 | src/image_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 239 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 240 | src/intern_table_test.cc \ |
Ian Rogers | cd2764f | 2011-09-02 15:38:24 -0700 | [diff] [blame] | 241 | src/jni_internal_test.cc \ |
| 242 | src/jni_compiler_test.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 243 | src/managed_register_arm_test.cc \ |
| 244 | src/managed_register_x86_test.cc \ |
Brian Carlstrom | cd74c4b | 2012-01-23 13:21:00 -0800 | [diff] [blame] | 245 | src/mutex_test.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 246 | src/oat_test.cc \ |
Carl Shapiro | 894d0fa | 2011-06-30 14:48:49 -0700 | [diff] [blame] | 247 | src/object_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 248 | src/reference_table_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 249 | src/runtime_test.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 250 | src/space_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 251 | src/utils_test.cc \ |
Brian Carlstrom | aded5f7 | 2011-10-07 17:15:04 -0700 | [diff] [blame] | 252 | src/zip_archive_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 253 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 254 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 255 | $(TEST_COMMON_SRC_FILES) |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 256 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 257 | TEST_HOST_SRC_FILES := \ |
| 258 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 259 | src/assembler_x86_test.cc |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 260 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame^] | 261 | # subdirectories of test/ which are used as inputs for gtests |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 262 | TEST_DEX_DIRECTORIES := \ |
Shih-wei Liao | 303b01e | 2011-09-14 00:46:13 -0700 | [diff] [blame] | 263 | AbstractMethod \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 264 | AllFields \ |
Ian Rogers | 0571d35 | 2011-11-03 19:51:38 -0700 | [diff] [blame] | 265 | CreateMethodSignature \ |
Brian Carlstrom | 33f741e | 2011-10-03 11:24:05 -0700 | [diff] [blame] | 266 | ExceptionHandle \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 267 | IntMath \ |
| 268 | Interfaces \ |
| 269 | Main \ |
| 270 | MyClass \ |
| 271 | MyClassNatives \ |
| 272 | Nested \ |
| 273 | ProtoCompare \ |
| 274 | ProtoCompare2 \ |
| 275 | StaticLeafMethods \ |
| 276 | Statics \ |
jeffhao | abcfde3 | 2011-09-29 15:05:18 -0700 | [diff] [blame] | 277 | StaticsFromCode \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 278 | XandY |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 279 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame^] | 280 | # subdirectories of test/ which are used with test-art-target-oat |
| 281 | # Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical |
| 282 | TEST_OAT_DIRECTORIES := \ |
| 283 | Main \ |
| 284 | HelloWorld \ |
| 285 | Fibonacci \ |
| 286 | \ |
| 287 | ExceptionTest \ |
| 288 | GrowthLimit \ |
| 289 | IntMath \ |
| 290 | Invoke \ |
| 291 | MemUsage \ |
| 292 | ParallelGC \ |
| 293 | ReferenceMap \ |
| 294 | ReflectionTest \ |
| 295 | StackWalk \ |
| 296 | ThreadStress |
| 297 | |
| 298 | # TODO: Enable when the StackWalk2 tests are passing |
| 299 | # StackWalk2 \ |
| 300 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 301 | ART_BUILD_TARGET := false |
| 302 | ART_BUILD_HOST := false |
| 303 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
| 304 | ART_BUILD_TARGET := true |
| 305 | endif |
| 306 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
| 307 | ART_BUILD_TARGET := true |
| 308 | endif |
| 309 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
| 310 | ART_BUILD_HOST := true |
| 311 | endif |
| 312 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
| 313 | ART_BUILD_HOST := true |
| 314 | endif |