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 | |
Anwar Ghuloum | 8447d84 | 2013-04-30 17:27:40 -0700 | [diff] [blame] | 17 | ART_SMALL_MODE := false |
| 18 | ifneq ($(wildcard art/SMALL_ART),) |
| 19 | $(info Enabling ART_SMALL_MODE because of existence of art/SMALL_ART) |
| 20 | ART_SMALL_MODE := true |
Ian Rogers | f3e9855 | 2013-03-20 15:49:49 -0700 | [diff] [blame] | 21 | endif |
Anwar Ghuloum | a72dd8b | 2013-06-03 17:01:15 -0700 | [diff] [blame] | 22 | ifeq ($(WITH_ART_SMALL_MODE), true) |
| 23 | ART_SMALL_MODE := true |
| 24 | endif |
Ian Rogers | f3e9855 | 2013-03-20 15:49:49 -0700 | [diff] [blame] | 25 | |
Dragos Sbirlea | 7467ee0 | 2013-06-21 09:20:34 -0700 | [diff] [blame^] | 26 | ART_SEA_IR_MODE := false |
| 27 | ifneq ($(wildcard art/SEA_IR_ART),) |
| 28 | $(info Enabling ART_SEA_IR_MODE because of existence of art/SEA_IR_ART) |
| 29 | ART_SEA_IR_MODE := true |
| 30 | endif |
| 31 | ifeq ($(WITH_ART_SEA_IR_MODE), true) |
| 32 | ART_SEA_IR_MODE := true |
| 33 | endif |
| 34 | |
Brian Carlstrom | 06809ed | 2012-09-17 14:19:20 -0700 | [diff] [blame] | 35 | ART_USE_PORTABLE_COMPILER := false |
| 36 | ifneq ($(wildcard art/USE_PORTABLE_COMPILER),) |
| 37 | $(info Enabling ART_USE_PORTABLE_COMPILER because of existence of art/USE_PORTABLE_COMPILER) |
| 38 | ART_USE_PORTABLE_COMPILER := true |
| 39 | endif |
| 40 | ifeq ($(WITH_ART_USE_PORTABLE_COMPILER),true) |
| 41 | $(info Enabling ART_USE_PORTABLE_COMPILER because WITH_ART_USE_PORTABLE_COMPILER=true) |
| 42 | ART_USE_PORTABLE_COMPILER := true |
| 43 | endif |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 44 | |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 45 | LLVM_ROOT_PATH := external/llvm |
| 46 | include $(LLVM_ROOT_PATH)/llvm.mk |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 47 | |
Ian Rogers | cd5d042 | 2013-05-17 15:54:01 -0700 | [diff] [blame] | 48 | # Clang build. |
| 49 | # ART_TARGET_CLANG := true |
| 50 | # ART_HOST_CLANG := true |
| 51 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 52 | # directory used for gtests on device |
| 53 | ART_NATIVETEST_DIR := /data/nativetest/art |
| 54 | ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art |
| 55 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 56 | # directory used for tests on device |
| 57 | ART_TEST_DIR := /data/art-test |
| 58 | ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test |
| 59 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 60 | ART_CPP_EXTENSION := .cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 61 | |
Elliott Hughes | 0af5543 | 2011-08-17 18:37:28 -0700 | [diff] [blame] | 62 | ART_C_INCLUDES := \ |
| 63 | external/gtest/include \ |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 64 | external/valgrind/main/include \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 65 | external/zlib \ |
Brian Carlstrom | 700c8d3 | 2012-11-05 10:42:02 -0800 | [diff] [blame] | 66 | frameworks/compile/mclinker/include \ |
Elliott Hughes | adb8c67 | 2012-03-06 16:49:32 -0800 | [diff] [blame] | 67 | art/src |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 68 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 69 | art_cflags := \ |
Ian Rogers | 637c65b | 2013-05-31 11:46:00 -0700 | [diff] [blame] | 70 | -fno-rtti \ |
Ian Rogers | 646c3d7 | 2012-02-17 23:55:19 -0800 | [diff] [blame] | 71 | -O2 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 72 | -ggdb3 \ |
| 73 | -Wall \ |
| 74 | -Werror \ |
| 75 | -Wextra \ |
Elliott Hughes | eaa200d | 2012-01-05 16:30:31 -0800 | [diff] [blame] | 76 | -Wstrict-aliasing=3 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 77 | -fstrict-aliasing |
| 78 | |
Anwar Ghuloum | c44f68f | 2013-05-10 13:24:54 -0700 | [diff] [blame] | 79 | ifeq ($(ART_SMALL_MODE),true) |
| 80 | art_cflags += -DART_SMALL_MODE=1 |
Ian Rogers | f3e9855 | 2013-03-20 15:49:49 -0700 | [diff] [blame] | 81 | endif |
| 82 | |
Dragos Sbirlea | 7467ee0 | 2013-06-21 09:20:34 -0700 | [diff] [blame^] | 83 | ifeq ($(ART_SEA_IR_MODE),true) |
| 84 | art_cflags += -DART_SEA_IR_MODE=1 |
| 85 | endif |
| 86 | |
Brian Carlstrom | 700c8d3 | 2012-11-05 10:42:02 -0800 | [diff] [blame] | 87 | # TODO: enable -std=gnu++0x for auto support when on Ubuntu 12.04 LTS (Precise Pangolin) |
| 88 | # On 10.04 LTS (Lucid Lynx), it can cause dependencies on GLIBCXX_3.4.14 version symbols. |
| 89 | |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 90 | ifeq ($(HOST_OS),linux) |
Shih-wei Liao | 24782c6 | 2012-01-08 12:46:11 -0800 | [diff] [blame] | 91 | art_non_debug_cflags := \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 92 | -Wframe-larger-than=1728 |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 93 | endif |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 94 | |
| 95 | art_debug_cflags := \ |
Ian Rogers | 1ffa32f | 2013-02-05 18:29:08 -0800 | [diff] [blame] | 96 | -fno-inline \ |
Elliott Hughes | 06e3ad4 | 2012-02-07 14:51:57 -0800 | [diff] [blame] | 97 | -DDYNAMIC_ANNOTATIONS_ENABLED=1 \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 98 | -UNDEBUG |
| 99 | |
jeffhao | 8161c03 | 2012-10-31 15:50:00 -0700 | [diff] [blame] | 100 | # start of image reserved address space |
| 101 | IMG_HOST_BASE_ADDRESS := 0x60000000 |
| 102 | |
| 103 | ifeq ($(TARGET_ARCH),mips) |
| 104 | IMG_TARGET_BASE_ADDRESS := 0x30000000 |
| 105 | else |
| 106 | IMG_TARGET_BASE_ADDRESS := 0x60000000 |
| 107 | endif |
| 108 | |
| 109 | ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1 -DART_BASE_ADDRESS=$(IMG_HOST_BASE_ADDRESS) |
Ian Rogers | 9adbff5 | 2013-01-23 18:19:03 -0800 | [diff] [blame] | 110 | |
| 111 | ifeq ($(TARGET_ARCH),x86) |
| 112 | ART_TARGET_CFLAGS += -msse2 |
| 113 | endif |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 114 | |
jeffhao | 8161c03 | 2012-10-31 15:50:00 -0700 | [diff] [blame] | 115 | ART_TARGET_CFLAGS := $(art_cflags) -DART_TARGET -DART_BASE_ADDRESS=$(IMG_TARGET_BASE_ADDRESS) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 116 | ifeq ($(TARGET_CPU_SMP),true) |
| 117 | ART_TARGET_CFLAGS += -DANDROID_SMP=1 |
| 118 | else |
| 119 | ART_TARGET_CFLAGS += -DANDROID_SMP=0 |
| 120 | endif |
| 121 | |
Ian Rogers | ba3ce9a | 2013-05-17 18:50:09 -0700 | [diff] [blame] | 122 | # Enable thread-safety for GCC 4.6 on the target but not for GCC 4.7 where this feature was removed. |
| 123 | ifneq ($(filter 4.6 4.6.%, $(TARGET_GCC_VERSION)),) |
| 124 | ART_TARGET_CFLAGS += -Wthread-safety |
| 125 | else |
| 126 | # Warn if not using GCC 4.6 for target builds when not doing a top-level or 'mma' build. |
| 127 | ifneq ($(ONE_SHOT_MAKEFILE),) |
| 128 | # Enable target GCC 4.6 with: export TARGET_GCC_VERSION_EXP=4.6 |
| 129 | $(info Using target GCC $(TARGET_GCC_VERSION) disables thread-safety checks.) |
| 130 | endif |
| 131 | endif |
| 132 | # We build with GCC 4.6 on the host. |
| 133 | ART_HOST_CFLAGS += -Wthread-safety |
| 134 | |
Ian Rogers | f89eccd | 2013-05-30 10:50:43 -0700 | [diff] [blame] | 135 | # Make host builds easier to debug and profile by not omitting the frame pointer. |
| 136 | ART_HOST_CFLAGS += -fno-omit-frame-pointer |
| 137 | |
Brian Carlstrom | 8952189 | 2011-12-07 22:05:07 -0800 | [diff] [blame] | 138 | # To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16" |
| 139 | # ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 140 | |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 141 | ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 142 | ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 143 | |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame] | 144 | # TODO: move -fkeep-inline-functions to art_debug_cflags when target gcc > 4.4 (and -lsupc++) |
Elliott Hughes | 1ba2714 | 2012-01-20 15:32:00 -0800 | [diff] [blame] | 145 | ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame] | 146 | ART_HOST_DEBUG_LDLIBS := -lsupc++ |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 147 | |
| 148 | ifneq ($(HOST_OS),linux) |
| 149 | # Some Mac OS pthread header files are broken with -fkeep-inline-functions. |
Elliott Hughes | 34cf514 | 2012-01-20 16:39:13 -0800 | [diff] [blame] | 150 | ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS)) |
Elliott Hughes | 6023456 | 2012-06-01 12:25:59 -0700 | [diff] [blame] | 151 | # Mac OS doesn't have libsupc++. |
| 152 | ART_HOST_DEBUG_LDLIBS := $(filter-out -lsupc++,$(ART_HOST_DEBUG_LDLIBS)) |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 153 | endif |
| 154 | |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 155 | ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 156 | |
Ian Rogers | c928de9 | 2013-02-27 14:30:44 -0800 | [diff] [blame] | 157 | ifeq ($(ART_USE_PORTABLE_COMPILER),true) |
TDYa127 | 58e63f9 | 2012-04-24 13:16:47 -0700 | [diff] [blame] | 158 | PARALLEL_ART_COMPILE_JOBS := -j8 |
| 159 | endif |
| 160 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 161 | DEX2OAT_SRC_FILES := \ |
| 162 | src/dex2oat.cc |
| 163 | |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 164 | OATDUMP_SRC_FILES := \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 165 | src/oatdump.cc |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 166 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 167 | LIBART_COMMON_SRC_FILES := \ |
Elliott Hughes | 5ea047b | 2011-09-13 14:38:18 -0700 | [diff] [blame] | 168 | src/atomic.cc.arm \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 169 | src/barrier.cc \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 170 | src/base/logging.cc \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 171 | src/base/mutex.cc \ |
Elliott Hughes | e222ee0 | 2012-12-13 14:41:43 -0800 | [diff] [blame] | 172 | src/base/stringpiece.cc \ |
| 173 | src/base/stringprintf.cc \ |
Ian Rogers | c928de9 | 2013-02-27 14:30:44 -0800 | [diff] [blame] | 174 | src/base/timing_logger.cc \ |
Elliott Hughes | 7616005 | 2012-12-12 16:31:20 -0800 | [diff] [blame] | 175 | src/base/unix_file/fd_file.cc \ |
| 176 | src/base/unix_file/mapped_file.cc \ |
| 177 | src/base/unix_file/null_file.cc \ |
| 178 | src/base/unix_file/random_access_file_utils.cc \ |
| 179 | src/base/unix_file/string_file.cc \ |
Elliott Hughes | a250199 | 2011-08-26 19:39:54 -0700 | [diff] [blame] | 180 | src/check_jni.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 181 | src/class_linker.cc \ |
Ian Rogers | 87e552d | 2012-08-31 15:54:48 -0700 | [diff] [blame] | 182 | src/common_throws.cc \ |
Brian Carlstrom | 3320cf4 | 2011-10-04 14:58:28 -0700 | [diff] [blame] | 183 | src/compiled_method.cc \ |
Ian Rogers | 1212a02 | 2013-03-04 10:48:41 -0800 | [diff] [blame] | 184 | src/compiler/driver/compiler_driver.cc \ |
Ian Rogers | 4c1c283 | 2013-03-04 18:30:13 -0800 | [diff] [blame] | 185 | src/compiler/llvm/runtime_support_llvm.cc \ |
Jeff Hao | 0aba0ba | 2013-06-03 14:49:28 -0700 | [diff] [blame] | 186 | src/compiler/stubs/portable/stubs.cc \ |
| 187 | src/compiler/stubs/quick/stubs.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 188 | src/debugger.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 189 | src/dex_file.cc \ |
jeffhao | 10037c8 | 2012-01-23 15:06:23 -0800 | [diff] [blame] | 190 | src/dex_file_verifier.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 191 | src/dex_instruction.cc \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 192 | src/disassembler.cc \ |
| 193 | src/disassembler_arm.cc \ |
| 194 | src/disassembler_mips.cc \ |
| 195 | src/disassembler_x86.cc \ |
Brian Carlstrom | 700c8d3 | 2012-11-05 10:42:02 -0800 | [diff] [blame] | 196 | src/elf_file.cc \ |
Brian Carlstrom | cd60ac7 | 2013-01-20 17:09:51 -0800 | [diff] [blame] | 197 | src/file_output_stream.cc \ |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 198 | src/gc/allocator/dlmalloc.cc \ |
| 199 | src/gc/accounting/card_table.cc \ |
| 200 | src/gc/accounting/heap_bitmap.cc \ |
| 201 | src/gc/accounting/mod_union_table.cc \ |
| 202 | src/gc/accounting/space_bitmap.cc \ |
| 203 | src/gc/collector/garbage_collector.cc \ |
| 204 | src/gc/collector/mark_sweep.cc \ |
| 205 | src/gc/collector/partial_mark_sweep.cc \ |
| 206 | src/gc/collector/sticky_mark_sweep.cc \ |
| 207 | src/gc/heap.cc \ |
| 208 | src/gc/space/dlmalloc_space.cc \ |
| 209 | src/gc/space/image_space.cc \ |
| 210 | src/gc/space/large_object_space.cc \ |
| 211 | src/gc/space/space.cc \ |
Jesse Wilson | c4824e6 | 2011-11-01 14:39:04 -0400 | [diff] [blame] | 212 | src/hprof/hprof.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 213 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 214 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 215 | src/indirect_reference_table.cc \ |
jeffhao | 725a957 | 2012-11-13 18:20:12 -0800 | [diff] [blame] | 216 | src/instrumentation.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 217 | src/intern_table.cc \ |
Ian Rogers | 2fa6b2e | 2012-10-17 00:10:17 -0700 | [diff] [blame] | 218 | src/interpreter/interpreter.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 219 | src/jdwp/jdwp_event.cc \ |
| 220 | src/jdwp/jdwp_expand_buf.cc \ |
| 221 | src/jdwp/jdwp_handler.cc \ |
| 222 | src/jdwp/jdwp_main.cc \ |
Elliott Hughes | 4b9702c | 2013-02-20 18:13:24 -0800 | [diff] [blame] | 223 | src/jdwp/jdwp_request.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 224 | src/jdwp/jdwp_socket.cc \ |
Elliott Hughes | 64f574f | 2013-02-20 14:57:12 -0800 | [diff] [blame] | 225 | src/jdwp/object_registry.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 226 | src/jni_internal.cc \ |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 227 | src/jobject_comparator.cc \ |
Ian Rogers | 81d425b | 2012-09-27 16:03:43 -0700 | [diff] [blame] | 228 | src/locks.cc \ |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 229 | src/mem_map.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 230 | src/memory_region.cc \ |
Elliott Hughes | 64f574f | 2013-02-20 14:57:12 -0800 | [diff] [blame] | 231 | src/mirror/abstract_method.cc \ |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 232 | src/mirror/array.cc \ |
| 233 | src/mirror/class.cc \ |
| 234 | src/mirror/dex_cache.cc \ |
| 235 | src/mirror/field.cc \ |
| 236 | src/mirror/object.cc \ |
| 237 | src/mirror/stack_trace_element.cc \ |
| 238 | src/mirror/string.cc \ |
| 239 | src/mirror/throwable.cc \ |
Elliott Hughes | 54e7df1 | 2011-09-16 11:47:04 -0700 | [diff] [blame] | 240 | src/monitor.cc \ |
Ian Rogers | 0dae08e | 2012-04-14 13:55:11 -0700 | [diff] [blame] | 241 | src/native/dalvik_system_DexFile.cc \ |
| 242 | src/native/dalvik_system_VMDebug.cc \ |
| 243 | src/native/dalvik_system_VMRuntime.cc \ |
| 244 | src/native/dalvik_system_VMStack.cc \ |
| 245 | src/native/dalvik_system_Zygote.cc \ |
| 246 | src/native/java_lang_Class.cc \ |
| 247 | src/native/java_lang_Object.cc \ |
| 248 | src/native/java_lang_Runtime.cc \ |
| 249 | src/native/java_lang_String.cc \ |
| 250 | src/native/java_lang_System.cc \ |
| 251 | src/native/java_lang_Thread.cc \ |
| 252 | src/native/java_lang_Throwable.cc \ |
| 253 | src/native/java_lang_VMClassLoader.cc \ |
| 254 | src/native/java_lang_reflect_Array.cc \ |
| 255 | src/native/java_lang_reflect_Constructor.cc \ |
| 256 | src/native/java_lang_reflect_Field.cc \ |
| 257 | src/native/java_lang_reflect_Method.cc \ |
| 258 | src/native/java_lang_reflect_Proxy.cc \ |
| 259 | src/native/java_util_concurrent_atomic_AtomicLong.cc \ |
| 260 | src/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ |
| 261 | src/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ |
| 262 | src/native/sun_misc_Unsafe.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 263 | src/oat.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 264 | src/oat/utils/arm/assembler_arm.cc \ |
| 265 | src/oat/utils/arm/managed_register_arm.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 266 | src/oat/utils/assembler.cc \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 267 | src/oat/utils/mips/assembler_mips.cc \ |
| 268 | src/oat/utils/mips/managed_register_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 269 | src/oat/utils/x86/assembler_x86.cc \ |
| 270 | src/oat/utils/x86/managed_register_x86.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 271 | src/oat_file.cc \ |
| 272 | src/oat_writer.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 273 | src/offsets.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 274 | src/os_linux.cc \ |
Brian Carlstrom | ae82698 | 2011-11-09 01:33:42 -0800 | [diff] [blame] | 275 | src/primitive.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 276 | src/reference_table.cc \ |
Elliott Hughes | 418d20f | 2011-09-22 14:00:39 -0700 | [diff] [blame] | 277 | src/reflection.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 278 | src/runtime.cc \ |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 279 | src/runtime_support.cc \ |
Elliott Hughes | e27955c | 2011-08-26 15:21:24 -0700 | [diff] [blame] | 280 | src/signal_catcher.cc \ |
Elliott Hughes | 68e7652 | 2011-10-05 13:22:16 -0700 | [diff] [blame] | 281 | src/stack.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 282 | src/thread.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 283 | src/thread_list.cc \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 284 | src/thread_pool.cc \ |
Ian Rogers | 62d6c77 | 2013-02-27 08:32:07 -0800 | [diff] [blame] | 285 | src/throw_location.cc \ |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 286 | src/trace.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 287 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 288 | src/utils.cc \ |
Brian Carlstrom | cd60ac7 | 2013-01-20 17:09:51 -0800 | [diff] [blame] | 289 | src/vector_output_stream.cc \ |
Ian Rogers | 0c7abda | 2012-09-19 13:33:42 -0700 | [diff] [blame] | 290 | src/verifier/dex_gc_map.cc \ |
Ian Rogers | 7b3ddd2 | 2013-02-21 15:19:52 -0800 | [diff] [blame] | 291 | src/verifier/instruction_flags.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 292 | src/verifier/method_verifier.cc \ |
| 293 | src/verifier/reg_type.cc \ |
| 294 | src/verifier/reg_type_cache.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 295 | src/verifier/register_line.cc \ |
| 296 | src/well_known_classes.cc \ |
| 297 | src/zip_archive.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 298 | |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 299 | LIBART_COMMON_SRC_FILES += \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 300 | src/oat/runtime/context.cc \ |
| 301 | src/oat/runtime/support_alloc.cc \ |
| 302 | src/oat/runtime/support_cast.cc \ |
Ian Rogers | 306057f | 2012-11-26 12:45:53 -0800 | [diff] [blame] | 303 | src/oat/runtime/support_deoptimize.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 304 | src/oat/runtime/support_dexcache.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 305 | src/oat/runtime/support_field.cc \ |
| 306 | src/oat/runtime/support_fillarray.cc \ |
jeffhao | 725a957 | 2012-11-13 18:20:12 -0800 | [diff] [blame] | 307 | src/oat/runtime/support_instrumentation.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 308 | src/oat/runtime/support_invoke.cc \ |
| 309 | src/oat/runtime/support_jni.cc \ |
| 310 | src/oat/runtime/support_locks.cc \ |
| 311 | src/oat/runtime/support_math.cc \ |
| 312 | src/oat/runtime/support_proxy.cc \ |
| 313 | src/oat/runtime/support_stubs.cc \ |
| 314 | src/oat/runtime/support_thread.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 315 | src/oat/runtime/support_throw.cc \ |
Ian Rogers | c928de9 | 2013-02-27 14:30:44 -0800 | [diff] [blame] | 316 | src/oat/runtime/support_interpreter.cc |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 317 | |
Dragos Sbirlea | 7467ee0 | 2013-06-21 09:20:34 -0700 | [diff] [blame^] | 318 | ifeq ($(ART_SEA_IR_MODE),true) |
| 319 | LIBART_COMMON_SRC_FILES += \ |
| 320 | src/compiler/sea_ir/sea.cc |
| 321 | endif |
| 322 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 323 | LIBART_TARGET_SRC_FILES := \ |
| 324 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 325 | src/base/logging_android.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 326 | src/jdwp/jdwp_adb.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 327 | src/monitor_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 328 | src/runtime_android.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 329 | src/thread_android.cc |
| 330 | |
| 331 | ifeq ($(TARGET_ARCH),arm) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 332 | LIBART_TARGET_SRC_FILES += \ |
| 333 | src/oat/runtime/arm/context_arm.cc.arm \ |
| 334 | src/oat/runtime/arm/oat_support_entrypoints_arm.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 335 | src/oat/runtime/arm/runtime_support_arm.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 336 | else # TARGET_ARCH != arm |
| 337 | ifeq ($(TARGET_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 338 | LIBART_TARGET_SRC_FILES += \ |
| 339 | src/oat/runtime/x86/context_x86.cc \ |
| 340 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 341 | src/oat/runtime/x86/runtime_support_x86.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 342 | else # TARGET_ARCH != x86 |
| 343 | ifeq ($(TARGET_ARCH),mips) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 344 | LIBART_TARGET_SRC_FILES += \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 345 | src/oat/runtime/mips/context_mips.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 346 | src/oat/runtime/mips/oat_support_entrypoints_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 347 | src/oat/runtime/mips/runtime_support_mips.S |
| 348 | else # TARGET_ARCH != mips |
| 349 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 350 | endif # TARGET_ARCH != mips |
| 351 | endif # TARGET_ARCH != x86 |
| 352 | endif # TARGET_ARCH != arm |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 353 | |
| 354 | ifeq ($(TARGET_ARCH),arm) |
| 355 | LIBART_TARGET_SRC_FILES += src/thread_arm.cc |
| 356 | else # TARGET_ARCH != arm |
| 357 | ifeq ($(TARGET_ARCH),x86) |
| 358 | LIBART_TARGET_SRC_FILES += src/thread_x86.cc |
| 359 | else # TARGET_ARCH != x86 |
| 360 | ifeq ($(TARGET_ARCH),mips) |
| 361 | LIBART_TARGET_SRC_FILES += src/thread_mips.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 362 | else # TARGET_ARCH != mips |
| 363 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 364 | endif # TARGET_ARCH != mips |
| 365 | endif # TARGET_ARCH != x86 |
| 366 | endif # TARGET_ARCH != arm |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 367 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 368 | LIBART_HOST_SRC_FILES := \ |
| 369 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 370 | src/base/logging_linux.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 371 | src/monitor_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 372 | src/runtime_linux.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 373 | src/thread_linux.cc |
| 374 | |
| 375 | ifeq ($(HOST_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 376 | LIBART_HOST_SRC_FILES += \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 377 | src/oat/runtime/x86/context_x86.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 378 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 379 | src/oat/runtime/x86/runtime_support_x86.S |
| 380 | else # HOST_ARCH != x86 |
| 381 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 382 | endif # HOST_ARCH != x86 |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 383 | |
| 384 | ifeq ($(HOST_ARCH),x86) |
| 385 | LIBART_HOST_SRC_FILES += src/thread_x86.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 386 | else # HOST_ARCH != x86 |
| 387 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 388 | endif # HOST_ARCH != x86 |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 389 | |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 390 | |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 391 | LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 392 | src/base/mutex.h \ |
buzbee | 395116c | 2013-02-27 14:30:25 -0800 | [diff] [blame] | 393 | src/compiler/dex/compiler_enums.h \ |
Brian Carlstrom | 88f3654 | 2012-10-16 23:24:21 -0700 | [diff] [blame] | 394 | src/dex_file.h \ |
Ian Rogers | a75a013 | 2012-09-28 11:41:42 -0700 | [diff] [blame] | 395 | src/dex_instruction.h \ |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 396 | src/gc/collector/gc_type.h \ |
| 397 | src/gc/space/space.h \ |
| 398 | src/gc/heap.h \ |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 399 | src/indirect_reference_table.h \ |
| 400 | src/instruction_set.h \ |
| 401 | src/invoke_type.h \ |
Elliott Hughes | 460384f | 2012-04-04 16:53:10 -0700 | [diff] [blame] | 402 | src/jdwp/jdwp.h \ |
| 403 | src/jdwp/jdwp_constants.h \ |
Ian Rogers | 81d425b | 2012-09-27 16:03:43 -0700 | [diff] [blame] | 404 | src/locks.h \ |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 405 | src/mirror/class.h \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 406 | src/thread.h \ |
Ian Rogers | c928de9 | 2013-02-27 14:30:44 -0800 | [diff] [blame] | 407 | src/thread_state.h \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 408 | src/verifier/method_verifier.h |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 409 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 410 | LIBARTTEST_COMMON_SRC_FILES := \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 411 | test/ReferenceMap/stack_walk_refmap_jni.cc \ |
| 412 | test/StackWalk/stack_walk_jni.cc |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 413 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 414 | TEST_COMMON_SRC_FILES := \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 415 | src/barrier_test.cc \ |
Sameer Abu Asal | a843954 | 2013-02-14 16:06:42 -0800 | [diff] [blame] | 416 | src/base/histogram_test.cc \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 417 | src/base/mutex_test.cc \ |
Elliott Hughes | 7616005 | 2012-12-12 16:31:20 -0800 | [diff] [blame] | 418 | src/base/unix_file/fd_file_test.cc \ |
| 419 | src/base/unix_file/mapped_file_test.cc \ |
| 420 | src/base/unix_file/null_file_test.cc \ |
| 421 | src/base/unix_file/random_access_file_utils_test.cc \ |
| 422 | src/base/unix_file/string_file_test.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 423 | src/class_linker_test.cc \ |
Ian Rogers | 1212a02 | 2013-03-04 10:48:41 -0800 | [diff] [blame] | 424 | src/compiler/driver/compiler_driver_test.cc \ |
Ian Rogers | 8550c9c | 2013-03-04 12:21:02 -0800 | [diff] [blame] | 425 | src/compiler/jni/jni_compiler_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 426 | src/dex_file_test.cc \ |
| 427 | src/dex_instruction_visitor_test.cc \ |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 428 | src/dex_method_iterator_test.cc \ |
Brian Carlstrom | 700c8d3 | 2012-11-05 10:42:02 -0800 | [diff] [blame] | 429 | src/elf_writer_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 430 | src/exception_test.cc \ |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 431 | src/gc/accounting/space_bitmap_test.cc \ |
| 432 | src/gc/heap_test.cc \ |
| 433 | src/gc/space/space_test.cc \ |
Brian Carlstrom | 4b2966b | 2012-05-22 08:54:52 -0700 | [diff] [blame] | 434 | src/gtest_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 435 | src/image_test.cc \ |
Ian Rogers | 2bcb4a4 | 2012-11-08 10:39:18 -0800 | [diff] [blame] | 436 | src/indenter_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 437 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 438 | src/intern_table_test.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 439 | src/jni_internal_test.cc \ |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 440 | src/mirror/dex_cache_test.cc \ |
Ian Rogers | c928de9 | 2013-02-27 14:30:44 -0800 | [diff] [blame] | 441 | src/mirror/object_test.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 442 | src/oat/utils/arm/managed_register_arm_test.cc \ |
| 443 | src/oat/utils/x86/managed_register_x86_test.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 444 | src/oat_test.cc \ |
Brian Carlstrom | cd60ac7 | 2013-01-20 17:09:51 -0800 | [diff] [blame] | 445 | src/output_stream_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 446 | src/reference_table_test.cc \ |
Logan Chien | 008fa51 | 2012-06-22 08:09:57 -0700 | [diff] [blame] | 447 | src/runtime_support_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 448 | src/runtime_test.cc \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 449 | src/thread_pool_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 450 | src/utils_test.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 451 | src/verifier/method_verifier_test.cc \ |
Brian Carlstrom | 6ff7f80 | 2013-01-30 13:55:02 -0800 | [diff] [blame] | 452 | src/verifier/reg_type_test.cc \ |
| 453 | src/zip_archive_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 454 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 455 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 456 | $(TEST_COMMON_SRC_FILES) |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 457 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 458 | TEST_HOST_SRC_FILES := \ |
| 459 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 460 | src/oat/utils/x86/assembler_x86_test.cc |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 461 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 462 | # subdirectories of test/ which are used as inputs for gtests |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 463 | TEST_DEX_DIRECTORIES := \ |
Shih-wei Liao | 303b01e | 2011-09-14 00:46:13 -0700 | [diff] [blame] | 464 | AbstractMethod \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 465 | AllFields \ |
Ian Rogers | 0571d35 | 2011-11-03 19:51:38 -0700 | [diff] [blame] | 466 | CreateMethodSignature \ |
Brian Carlstrom | 33f741e | 2011-10-03 11:24:05 -0700 | [diff] [blame] | 467 | ExceptionHandle \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 468 | Interfaces \ |
| 469 | Main \ |
| 470 | MyClass \ |
| 471 | MyClassNatives \ |
| 472 | Nested \ |
Elliott Hughes | 7740579 | 2012-03-15 15:22:12 -0700 | [diff] [blame] | 473 | NonStaticLeafMethods \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 474 | ProtoCompare \ |
| 475 | ProtoCompare2 \ |
| 476 | StaticLeafMethods \ |
| 477 | Statics \ |
jeffhao | abcfde3 | 2011-09-29 15:05:18 -0700 | [diff] [blame] | 478 | StaticsFromCode \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 479 | XandY |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 480 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 481 | # subdirectories of test/ which are used with test-art-target-oat |
Ian Rogers | 9ac995b | 2013-01-10 19:46:57 -0800 | [diff] [blame] | 482 | # Declare the simplest tests (Main, HelloWorld) first, the rest are alphabetical |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 483 | TEST_OAT_DIRECTORIES := \ |
| 484 | Main \ |
| 485 | HelloWorld \ |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 486 | \ |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 487 | ParallelGC \ |
| 488 | ReferenceMap \ |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 489 | StackWalk \ |
| 490 | ThreadStress |
| 491 | |
| 492 | # TODO: Enable when the StackWalk2 tests are passing |
| 493 | # StackWalk2 \ |
| 494 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 495 | ART_BUILD_TARGET := false |
| 496 | ART_BUILD_HOST := false |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 497 | ART_BUILD_NDEBUG := false |
| 498 | ART_BUILD_DEBUG := false |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 499 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
| 500 | ART_BUILD_TARGET := true |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 501 | ART_BUILD_NDEBUG := true |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 502 | endif |
| 503 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
| 504 | ART_BUILD_TARGET := true |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 505 | ART_BUILD_DEBUG := true |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 506 | endif |
| 507 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
| 508 | ART_BUILD_HOST := true |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 509 | ART_BUILD_NDEBUG := true |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 510 | endif |
| 511 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
| 512 | ART_BUILD_HOST := true |
Brian Carlstrom | 265091e | 2013-01-30 14:08:26 -0800 | [diff] [blame] | 513 | ART_BUILD_DEBUG := true |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 514 | endif |