Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 19 | include art/build/Android.common_build.mk |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 20 | |
| 21 | LIBART_COMMON_SRC_FILES := \ |
Mathieu Chartier | c785344 | 2015-03-27 14:35:38 -0700 | [diff] [blame^] | 22 | art_field.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 23 | atomic.cc.arm \ |
| 24 | barrier.cc \ |
| 25 | base/allocator.cc \ |
Mathieu Chartier | b666f48 | 2015-02-18 14:33:14 -0800 | [diff] [blame] | 26 | base/arena_allocator.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 27 | base/bit_vector.cc \ |
| 28 | base/hex_dump.cc \ |
| 29 | base/logging.cc \ |
| 30 | base/mutex.cc \ |
Mathieu Chartier | b666f48 | 2015-02-18 14:33:14 -0800 | [diff] [blame] | 31 | base/scoped_arena_allocator.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 32 | base/scoped_flock.cc \ |
| 33 | base/stringpiece.cc \ |
| 34 | base/stringprintf.cc \ |
| 35 | base/timing_logger.cc \ |
| 36 | base/unix_file/fd_file.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 37 | base/unix_file/random_access_file_utils.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 38 | check_jni.cc \ |
| 39 | class_linker.cc \ |
| 40 | common_throws.cc \ |
| 41 | debugger.cc \ |
| 42 | dex_file.cc \ |
| 43 | dex_file_verifier.cc \ |
| 44 | dex_instruction.cc \ |
| 45 | elf_file.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 46 | gc/allocator/dlmalloc.cc \ |
| 47 | gc/allocator/rosalloc.cc \ |
Mathieu Chartier | 4858a93 | 2015-01-23 13:18:53 -0800 | [diff] [blame] | 48 | gc/accounting/bitmap.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 49 | gc/accounting/card_table.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 50 | gc/accounting/heap_bitmap.cc \ |
| 51 | gc/accounting/mod_union_table.cc \ |
| 52 | gc/accounting/remembered_set.cc \ |
| 53 | gc/accounting/space_bitmap.cc \ |
| 54 | gc/collector/concurrent_copying.cc \ |
| 55 | gc/collector/garbage_collector.cc \ |
| 56 | gc/collector/immune_region.cc \ |
| 57 | gc/collector/mark_compact.cc \ |
| 58 | gc/collector/mark_sweep.cc \ |
| 59 | gc/collector/partial_mark_sweep.cc \ |
| 60 | gc/collector/semi_space.cc \ |
| 61 | gc/collector/sticky_mark_sweep.cc \ |
| 62 | gc/gc_cause.cc \ |
| 63 | gc/heap.cc \ |
| 64 | gc/reference_processor.cc \ |
| 65 | gc/reference_queue.cc \ |
| 66 | gc/space/bump_pointer_space.cc \ |
| 67 | gc/space/dlmalloc_space.cc \ |
| 68 | gc/space/image_space.cc \ |
| 69 | gc/space/large_object_space.cc \ |
| 70 | gc/space/malloc_space.cc \ |
Hiroshi Yamauchi | 2cd334a | 2015-01-09 14:03:35 -0800 | [diff] [blame] | 71 | gc/space/region_space.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 72 | gc/space/rosalloc_space.cc \ |
| 73 | gc/space/space.cc \ |
| 74 | gc/space/zygote_space.cc \ |
Mathieu Chartier | a5eae69 | 2014-12-17 17:56:03 -0800 | [diff] [blame] | 75 | gc/task_processor.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 76 | hprof/hprof.cc \ |
| 77 | image.cc \ |
| 78 | indirect_reference_table.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 79 | instrumentation.cc \ |
| 80 | intern_table.cc \ |
| 81 | interpreter/interpreter.cc \ |
| 82 | interpreter/interpreter_common.cc \ |
Colin Cross | e84e4f7 | 2015-03-18 14:01:19 -0700 | [diff] [blame] | 83 | interpreter/interpreter_goto_table_impl.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 84 | interpreter/interpreter_switch_impl.cc \ |
Andreas Gampe | 2969bcd | 2015-03-09 12:57:41 -0700 | [diff] [blame] | 85 | interpreter/unstarted_runtime.cc \ |
Ian Rogers | 68d8b42 | 2014-07-17 11:09:10 -0700 | [diff] [blame] | 86 | java_vm_ext.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 87 | jdwp/jdwp_event.cc \ |
| 88 | jdwp/jdwp_expand_buf.cc \ |
| 89 | jdwp/jdwp_handler.cc \ |
| 90 | jdwp/jdwp_main.cc \ |
| 91 | jdwp/jdwp_request.cc \ |
| 92 | jdwp/jdwp_socket.cc \ |
| 93 | jdwp/object_registry.cc \ |
Ian Rogers | 68d8b42 | 2014-07-17 11:09:10 -0700 | [diff] [blame] | 94 | jni_env_ext.cc \ |
Mathieu Chartier | e5f13e5 | 2015-02-24 09:37:21 -0800 | [diff] [blame] | 95 | jit/jit.cc \ |
| 96 | jit/jit_code_cache.cc \ |
| 97 | jit/jit_instrumentation.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 98 | jni_internal.cc \ |
| 99 | jobject_comparator.cc \ |
Mathieu Chartier | c785344 | 2015-03-27 14:35:38 -0700 | [diff] [blame^] | 100 | linear_alloc.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 101 | mem_map.cc \ |
| 102 | memory_region.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 103 | mirror/art_method.cc \ |
| 104 | mirror/array.cc \ |
| 105 | mirror/class.cc \ |
| 106 | mirror/dex_cache.cc \ |
Mathieu Chartier | daaf326 | 2015-03-24 13:30:28 -0700 | [diff] [blame] | 107 | mirror/field.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 108 | mirror/object.cc \ |
| 109 | mirror/reference.cc \ |
| 110 | mirror/stack_trace_element.cc \ |
| 111 | mirror/string.cc \ |
| 112 | mirror/throwable.cc \ |
| 113 | monitor.cc \ |
Calin Juravle | c842352 | 2014-08-12 20:55:20 +0100 | [diff] [blame] | 114 | native_bridge_art_interface.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 115 | native/dalvik_system_DexFile.cc \ |
| 116 | native/dalvik_system_VMDebug.cc \ |
| 117 | native/dalvik_system_VMRuntime.cc \ |
| 118 | native/dalvik_system_VMStack.cc \ |
| 119 | native/dalvik_system_ZygoteHooks.cc \ |
| 120 | native/java_lang_Class.cc \ |
| 121 | native/java_lang_DexCache.cc \ |
| 122 | native/java_lang_Object.cc \ |
| 123 | native/java_lang_Runtime.cc \ |
| 124 | native/java_lang_String.cc \ |
| 125 | native/java_lang_System.cc \ |
| 126 | native/java_lang_Thread.cc \ |
| 127 | native/java_lang_Throwable.cc \ |
| 128 | native/java_lang_VMClassLoader.cc \ |
Mathieu Chartier | a5a53ef | 2014-09-12 12:58:05 -0700 | [diff] [blame] | 129 | native/java_lang_ref_FinalizerReference.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 130 | native/java_lang_ref_Reference.cc \ |
| 131 | native/java_lang_reflect_Array.cc \ |
| 132 | native/java_lang_reflect_Constructor.cc \ |
| 133 | native/java_lang_reflect_Field.cc \ |
| 134 | native/java_lang_reflect_Method.cc \ |
| 135 | native/java_lang_reflect_Proxy.cc \ |
| 136 | native/java_util_concurrent_atomic_AtomicLong.cc \ |
| 137 | native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ |
| 138 | native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ |
| 139 | native/sun_misc_Unsafe.cc \ |
| 140 | oat.cc \ |
| 141 | oat_file.cc \ |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 142 | oat_file_assistant.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 143 | object_lock.cc \ |
| 144 | offsets.cc \ |
| 145 | os_linux.cc \ |
| 146 | parsed_options.cc \ |
| 147 | primitive.cc \ |
| 148 | quick_exception_handler.cc \ |
| 149 | quick/inline_method_analyser.cc \ |
| 150 | reference_table.cc \ |
| 151 | reflection.cc \ |
| 152 | runtime.cc \ |
Igor Murashkin | aaebaa0 | 2015-01-26 10:55:53 -0800 | [diff] [blame] | 153 | runtime_options.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 154 | signal_catcher.cc \ |
| 155 | stack.cc \ |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 156 | stack_map.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 157 | thread.cc \ |
| 158 | thread_list.cc \ |
| 159 | thread_pool.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 160 | trace.cc \ |
| 161 | transaction.cc \ |
| 162 | profiler.cc \ |
| 163 | fault_handler.cc \ |
| 164 | utf.cc \ |
| 165 | utils.cc \ |
| 166 | verifier/dex_gc_map.cc \ |
| 167 | verifier/instruction_flags.cc \ |
| 168 | verifier/method_verifier.cc \ |
| 169 | verifier/reg_type.cc \ |
| 170 | verifier/reg_type_cache.cc \ |
| 171 | verifier/register_line.cc \ |
| 172 | well_known_classes.cc \ |
| 173 | zip_archive.cc |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 174 | |
| 175 | LIBART_COMMON_SRC_FILES += \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 176 | arch/context.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 177 | arch/instruction_set.cc \ |
| 178 | arch/instruction_set_features.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 179 | arch/memcmp16.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 180 | arch/arm/instruction_set_features_arm.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 181 | arch/arm/registers_arm.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 182 | arch/arm64/instruction_set_features_arm64.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 183 | arch/arm64/registers_arm64.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 184 | arch/mips/instruction_set_features_mips.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 185 | arch/mips/registers_mips.cc \ |
Andreas Gampe | 57b3429 | 2015-01-14 15:45:59 -0800 | [diff] [blame] | 186 | arch/mips64/instruction_set_features_mips64.cc \ |
| 187 | arch/mips64/registers_mips64.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 188 | arch/x86/instruction_set_features_x86.cc \ |
| 189 | arch/x86/registers_x86.cc \ |
| 190 | arch/x86_64/registers_x86_64.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 191 | entrypoints/entrypoint_utils.cc \ |
| 192 | entrypoints/interpreter/interpreter_entrypoints.cc \ |
| 193 | entrypoints/jni/jni_entrypoints.cc \ |
| 194 | entrypoints/math_entrypoints.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 195 | entrypoints/quick/quick_alloc_entrypoints.cc \ |
| 196 | entrypoints/quick/quick_cast_entrypoints.cc \ |
| 197 | entrypoints/quick/quick_deoptimization_entrypoints.cc \ |
| 198 | entrypoints/quick/quick_dexcache_entrypoints.cc \ |
| 199 | entrypoints/quick/quick_field_entrypoints.cc \ |
| 200 | entrypoints/quick/quick_fillarray_entrypoints.cc \ |
| 201 | entrypoints/quick/quick_instrumentation_entrypoints.cc \ |
| 202 | entrypoints/quick/quick_jni_entrypoints.cc \ |
| 203 | entrypoints/quick/quick_lock_entrypoints.cc \ |
| 204 | entrypoints/quick/quick_math_entrypoints.cc \ |
| 205 | entrypoints/quick/quick_thread_entrypoints.cc \ |
| 206 | entrypoints/quick/quick_throw_entrypoints.cc \ |
| 207 | entrypoints/quick/quick_trampoline_entrypoints.cc |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 208 | |
Elliott Hughes | 7ac7e32 | 2014-06-27 17:20:59 -0700 | [diff] [blame] | 209 | LIBART_TARGET_LDFLAGS := |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 210 | LIBART_HOST_LDFLAGS := |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 211 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 212 | LIBART_TARGET_SRC_FILES := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 213 | $(LIBART_COMMON_SRC_FILES) \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 214 | jdwp/jdwp_adb.cc \ |
| 215 | monitor_android.cc \ |
| 216 | runtime_android.cc \ |
| 217 | thread_android.cc |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 218 | |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 219 | LIBART_TARGET_SRC_FILES_arm := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 220 | arch/arm/context_arm.cc.arm \ |
| 221 | arch/arm/entrypoints_init_arm.cc \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 222 | arch/arm/instruction_set_features_assembly_tests.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 223 | arch/arm/jni_entrypoints_arm.S \ |
| 224 | arch/arm/memcmp16_arm.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 225 | arch/arm/quick_entrypoints_arm.S \ |
Zheng Xu | 5667fdb | 2014-10-23 18:29:55 +0800 | [diff] [blame] | 226 | arch/arm/quick_entrypoints_cc_arm.cc \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 227 | arch/arm/thread_arm.cc \ |
| 228 | arch/arm/fault_handler_arm.cc |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 229 | |
Stuart Monteith | b95a534 | 2014-03-12 13:32:32 +0000 | [diff] [blame] | 230 | LIBART_TARGET_SRC_FILES_arm64 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 231 | arch/arm64/context_arm64.cc \ |
| 232 | arch/arm64/entrypoints_init_arm64.cc \ |
| 233 | arch/arm64/jni_entrypoints_arm64.S \ |
| 234 | arch/arm64/memcmp16_arm64.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 235 | arch/arm64/quick_entrypoints_arm64.S \ |
| 236 | arch/arm64/thread_arm64.cc \ |
| 237 | monitor_pool.cc \ |
| 238 | arch/arm64/fault_handler_arm64.cc |
Stuart Monteith | b95a534 | 2014-03-12 13:32:32 +0000 | [diff] [blame] | 239 | |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 240 | LIBART_SRC_FILES_x86 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 241 | arch/x86/context_x86.cc \ |
| 242 | arch/x86/entrypoints_init_x86.cc \ |
| 243 | arch/x86/jni_entrypoints_x86.S \ |
Alexander Ivchenko | 907194a | 2014-07-14 18:54:34 +0400 | [diff] [blame] | 244 | arch/x86/memcmp16_x86.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 245 | arch/x86/quick_entrypoints_x86.S \ |
| 246 | arch/x86/thread_x86.cc \ |
| 247 | arch/x86/fault_handler_x86.cc |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 248 | |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 249 | LIBART_TARGET_SRC_FILES_x86 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 250 | $(LIBART_SRC_FILES_x86) |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 251 | |
Dave Allison | dfd3b47 | 2014-07-16 16:04:32 -0700 | [diff] [blame] | 252 | # Note that the fault_handler_x86.cc is not a mistake. This file is |
| 253 | # shared between the x86 and x86_64 architectures. |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 254 | LIBART_SRC_FILES_x86_64 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 255 | arch/x86_64/context_x86_64.cc \ |
| 256 | arch/x86_64/entrypoints_init_x86_64.cc \ |
| 257 | arch/x86_64/jni_entrypoints_x86_64.S \ |
Varvara Rainchik | 2a0bffd | 2014-07-30 17:01:24 +0400 | [diff] [blame] | 258 | arch/x86_64/memcmp16_x86_64.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 259 | arch/x86_64/quick_entrypoints_x86_64.S \ |
| 260 | arch/x86_64/thread_x86_64.cc \ |
| 261 | monitor_pool.cc \ |
Dave Allison | dfd3b47 | 2014-07-16 16:04:32 -0700 | [diff] [blame] | 262 | arch/x86/fault_handler_x86.cc |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 263 | |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 264 | LIBART_TARGET_SRC_FILES_x86_64 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 265 | $(LIBART_SRC_FILES_x86_64) \ |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 266 | |
| 267 | LIBART_TARGET_SRC_FILES_mips := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 268 | arch/mips/context_mips.cc \ |
| 269 | arch/mips/entrypoints_init_mips.cc \ |
| 270 | arch/mips/jni_entrypoints_mips.S \ |
| 271 | arch/mips/memcmp16_mips.S \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 272 | arch/mips/quick_entrypoints_mips.S \ |
| 273 | arch/mips/thread_mips.cc \ |
| 274 | arch/mips/fault_handler_mips.cc |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 275 | |
Andreas Gampe | 1a5c406 | 2015-01-15 12:10:47 -0800 | [diff] [blame] | 276 | LIBART_TARGET_SRC_FILES_mips64 := \ |
| 277 | arch/mips64/context_mips64.cc \ |
| 278 | arch/mips64/entrypoints_init_mips64.cc \ |
| 279 | arch/mips64/jni_entrypoints_mips64.S \ |
| 280 | arch/mips64/memcmp16_mips64.S \ |
| 281 | arch/mips64/quick_entrypoints_mips64.S \ |
| 282 | arch/mips64/thread_mips64.cc \ |
| 283 | monitor_pool.cc \ |
| 284 | arch/mips64/fault_handler_mips64.cc |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 285 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 286 | LIBART_HOST_SRC_FILES := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 287 | $(LIBART_COMMON_SRC_FILES) \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 288 | monitor_linux.cc \ |
| 289 | runtime_linux.cc \ |
| 290 | thread_linux.cc |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 291 | |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 292 | LIBART_HOST_SRC_FILES_32 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 293 | $(LIBART_SRC_FILES_x86) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 294 | |
Ying Wang | c6585b7 | 2014-04-23 18:19:44 -0700 | [diff] [blame] | 295 | LIBART_HOST_SRC_FILES_64 := \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 296 | $(LIBART_SRC_FILES_x86_64) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 297 | |
| 298 | LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \ |
Ian Rogers | d582fa4 | 2014-11-05 23:46:43 -0800 | [diff] [blame] | 299 | arch/instruction_set.h \ |
Mathieu Chartier | bad0267 | 2014-08-25 13:08:22 -0700 | [diff] [blame] | 300 | base/allocator.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 301 | base/mutex.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 302 | debugger.h \ |
Andreas Gampe | 4303ba9 | 2014-11-06 01:00:46 -0800 | [diff] [blame] | 303 | base/unix_file/fd_file.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 304 | dex_file.h \ |
| 305 | dex_instruction.h \ |
Mathieu Chartier | e5f13e5 | 2015-02-24 09:37:21 -0800 | [diff] [blame] | 306 | dex_instruction_utils.h \ |
Mathieu Chartier | e34fa1d | 2015-01-14 14:55:47 -0800 | [diff] [blame] | 307 | gc_root.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 308 | gc/allocator/rosalloc.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 309 | gc/collector/gc_type.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 310 | gc/allocator_type.h \ |
Mathieu Chartier | b363f66 | 2014-07-16 13:28:58 -0700 | [diff] [blame] | 311 | gc/collector_type.h \ |
Hiroshi Yamauchi | d25f842 | 2015-01-30 16:25:12 -0800 | [diff] [blame] | 312 | gc/space/region_space.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 313 | gc/space/space.h \ |
| 314 | gc/heap.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 315 | instrumentation.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 316 | indirect_reference_table.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 317 | invoke_type.h \ |
| 318 | jdwp/jdwp.h \ |
| 319 | jdwp/jdwp_constants.h \ |
| 320 | lock_word.h \ |
| 321 | mirror/class.h \ |
| 322 | oat.h \ |
| 323 | object_callbacks.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 324 | profiler_options.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 325 | quick/inline_method_analyser.h \ |
Ian Rogers | 6a3c1fc | 2014-10-31 00:33:20 -0700 | [diff] [blame] | 326 | runtime.h \ |
| 327 | stack.h \ |
Ian Rogers | 22d5e73 | 2014-07-15 22:23:51 -0700 | [diff] [blame] | 328 | thread.h \ |
| 329 | thread_state.h \ |
| 330 | verifier/method_verifier.h |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 331 | |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 332 | LIBART_CFLAGS := -DBUILDING_LIBART=1 |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 333 | |
Christopher Ferris | fc35de0 | 2014-07-10 18:53:22 -0700 | [diff] [blame] | 334 | ifeq ($(MALLOC_IMPL),dlmalloc) |
Christopher Ferris | c4ddc04 | 2014-05-13 14:47:50 -0700 | [diff] [blame] | 335 | LIBART_CFLAGS += -DUSE_DLMALLOC |
Christopher Ferris | fc35de0 | 2014-07-10 18:53:22 -0700 | [diff] [blame] | 336 | else |
| 337 | LIBART_CFLAGS += -DUSE_JEMALLOC |
Christopher Ferris | c4ddc04 | 2014-05-13 14:47:50 -0700 | [diff] [blame] | 338 | endif |
| 339 | |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 340 | # Default dex2oat instruction set features. |
| 341 | LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := default |
| 342 | LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default |
| 343 | 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default |
| 344 | ifeq ($(DEX2OAT_TARGET_ARCH),arm) |
| 345 | ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver)) |
Andreas Gampe | 72a122c | 2014-11-13 19:10:33 -0800 | [diff] [blame] | 346 | LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 347 | else |
| 348 | ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7)) |
| 349 | LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div |
| 350 | endif |
| 351 | endif |
| 352 | endif |
| 353 | ifeq ($(2ND_DEX2OAT_TARGET_ARCH),arm) |
| 354 | ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver)) |
Andreas Gampe | 72a122c | 2014-11-13 19:10:33 -0800 | [diff] [blame] | 355 | 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 356 | else |
| 357 | ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7)) |
| 358 | 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div |
| 359 | endif |
| 360 | endif |
| 361 | endif |
| 362 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 363 | # $(1): target or host |
| 364 | # $(2): ndebug or debug |
| 365 | define build-libart |
| 366 | ifneq ($(1),target) |
| 367 | ifneq ($(1),host) |
| 368 | $$(error expected target or host for argument 1, received $(1)) |
| 369 | endif |
| 370 | endif |
| 371 | ifneq ($(2),ndebug) |
| 372 | ifneq ($(2),debug) |
| 373 | $$(error expected ndebug or debug for argument 2, received $(2)) |
| 374 | endif |
| 375 | endif |
| 376 | |
| 377 | art_target_or_host := $(1) |
| 378 | art_ndebug_or_debug := $(2) |
| 379 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 380 | include $$(CLEAR_VARS) |
Chih-Hung Hsieh | c959695 | 2014-10-16 12:14:02 -0700 | [diff] [blame] | 381 | # Clang assembler has problem with macros in asm_support_x86.S, http://b/17443165, |
| 382 | # on linux. Yet sdk on mac needs integrated assembler. |
| 383 | ifeq ($$(HOST_OS),darwin) |
| 384 | LOCAL_CLANG_ASFLAGS += -integrated-as |
| 385 | else |
| 386 | LOCAL_CLANG_ASFLAGS += -no-integrated-as |
| 387 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 388 | LOCAL_CPP_EXTENSION := $$(ART_CPP_EXTENSION) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 389 | ifeq ($$(art_ndebug_or_debug),ndebug) |
| 390 | LOCAL_MODULE := libart |
Dehao Chen | 6c36a8b | 2014-11-13 14:13:58 -0800 | [diff] [blame] | 391 | ifeq ($$(art_target_or_host),target) |
| 392 | LOCAL_FDO_SUPPORT := true |
| 393 | endif |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 394 | else # debug |
| 395 | LOCAL_MODULE := libartd |
| 396 | endif |
| 397 | |
| 398 | LOCAL_MODULE_TAGS := optional |
| 399 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 400 | |
| 401 | ifeq ($$(art_target_or_host),target) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 402 | LOCAL_SRC_FILES := $$(LIBART_TARGET_SRC_FILES) |
| 403 | $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \ |
| 404 | $$(eval LOCAL_SRC_FILES_$$(arch) := $$$$(LIBART_TARGET_SRC_FILES_$$(arch)))) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 405 | else # host |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 406 | LOCAL_SRC_FILES := $$(LIBART_HOST_SRC_FILES) |
| 407 | LOCAL_SRC_FILES_32 := $$(LIBART_HOST_SRC_FILES_32) |
| 408 | LOCAL_SRC_FILES_64 := $$(LIBART_HOST_SRC_FILES_64) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 409 | LOCAL_IS_HOST_MODULE := true |
| 410 | endif |
| 411 | |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 412 | GENERATED_SRC_DIR := $$(call local-generated-sources-dir) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 413 | ENUM_OPERATOR_OUT_CC_FILES := $$(patsubst %.h,%_operator_out.cc,$$(LIBART_ENUM_OPERATOR_OUT_HEADER_FILES)) |
| 414 | ENUM_OPERATOR_OUT_GEN := $$(addprefix $$(GENERATED_SRC_DIR)/,$$(ENUM_OPERATOR_OUT_CC_FILES)) |
| 415 | |
| 416 | $$(ENUM_OPERATOR_OUT_GEN): art/tools/generate-operator-out.py |
| 417 | $$(ENUM_OPERATOR_OUT_GEN): PRIVATE_CUSTOM_TOOL = art/tools/generate-operator-out.py $(LOCAL_PATH) $$< > $$@ |
| 418 | $$(ENUM_OPERATOR_OUT_GEN): $$(GENERATED_SRC_DIR)/%_operator_out.cc : $(LOCAL_PATH)/%.h |
| 419 | $$(transform-generated-source) |
| 420 | |
| 421 | LOCAL_GENERATED_SOURCES += $$(ENUM_OPERATOR_OUT_GEN) |
| 422 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 423 | LOCAL_CFLAGS := $$(LIBART_CFLAGS) |
Dan Albert | 58bea4a | 2014-08-09 18:08:07 -0700 | [diff] [blame] | 424 | LOCAL_LDFLAGS := $$(LIBART_LDFLAGS) |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 425 | ifeq ($$(art_target_or_host),target) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 426 | LOCAL_LDFLAGS += $$(LIBART_TARGET_LDFLAGS) |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 427 | else |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 428 | LOCAL_LDFLAGS += $$(LIBART_HOST_LDFLAGS) |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 429 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 430 | $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \ |
| 431 | $$(eval LOCAL_LDFLAGS_$$(arch) := $$(LIBART_TARGET_LDFLAGS_$$(arch)))) |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 432 | |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 433 | # Clang usage |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 434 | ifeq ($$(art_target_or_host),target) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 435 | $$(eval $$(call set-target-local-clang-vars)) |
| 436 | $$(eval $$(call set-target-local-cflags-vars,$(2))) |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 437 | LOCAL_CFLAGS_$(DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)" |
| 438 | LOCAL_CFLAGS_$(2ND_DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)" |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 439 | else # host |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 440 | LOCAL_CLANG := $$(ART_HOST_CLANG) |
| 441 | LOCAL_LDLIBS := $$(ART_HOST_LDLIBS) |
| 442 | LOCAL_LDLIBS += -ldl -lpthread |
| 443 | ifeq ($$(HOST_OS),linux) |
| 444 | LOCAL_LDLIBS += -lrt |
| 445 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 446 | LOCAL_CFLAGS += $$(ART_HOST_CFLAGS) |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 447 | LOCAL_CFLAGS += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES)" |
| 448 | |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 449 | ifeq ($$(art_ndebug_or_debug),debug) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 450 | LOCAL_CFLAGS += $$(ART_HOST_DEBUG_CFLAGS) |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 451 | else |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 452 | LOCAL_CFLAGS += $$(ART_HOST_NON_DEBUG_CFLAGS) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 453 | endif |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 454 | LOCAL_MULTILIB := both |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 455 | endif |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 456 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 457 | LOCAL_C_INCLUDES += $$(ART_C_INCLUDES) |
Igor Murashkin | aaebaa0 | 2015-01-26 10:55:53 -0800 | [diff] [blame] | 458 | LOCAL_C_INCLUDES += art/cmdline |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 459 | LOCAL_C_INCLUDES += art/sigchainlib |
Igor Murashkin | aaebaa0 | 2015-01-26 10:55:53 -0800 | [diff] [blame] | 460 | LOCAL_C_INCLUDES += art |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 461 | |
Ian Rogers | 872dd82 | 2014-10-30 11:19:14 -0700 | [diff] [blame] | 462 | LOCAL_SHARED_LIBRARIES := libnativehelper libnativebridge libsigchain |
Dan Albert | e73a064 | 2014-11-11 15:14:07 -0800 | [diff] [blame] | 463 | LOCAL_SHARED_LIBRARIES += libbacktrace |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 464 | ifeq ($$(art_target_or_host),target) |
Ian Rogers | 872dd82 | 2014-10-30 11:19:14 -0700 | [diff] [blame] | 465 | LOCAL_SHARED_LIBRARIES += libdl |
| 466 | # ZipArchive support, the order matters here to get all symbols. |
Narayan Kamath | 92572be | 2013-11-28 14:06:24 +0000 | [diff] [blame] | 467 | LOCAL_STATIC_LIBRARIES := libziparchive libz |
Ian Rogers | 872dd82 | 2014-10-30 11:19:14 -0700 | [diff] [blame] | 468 | # For android::FileMap used by libziparchive. |
| 469 | LOCAL_SHARED_LIBRARIES += libutils |
| 470 | # For liblog, atrace, properties, ashmem, set_sched_policy and socket_peer_is_trusted. |
| 471 | LOCAL_SHARED_LIBRARIES += libcutils |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 472 | else # host |
Ian Rogers | 872dd82 | 2014-10-30 11:19:14 -0700 | [diff] [blame] | 473 | LOCAL_SHARED_LIBRARIES += libziparchive-host |
| 474 | # For ashmem_create_region. |
Brian Carlstrom | b4524fd | 2015-04-02 00:04:09 -0700 | [diff] [blame] | 475 | LOCAL_SHARED_LIBRARIES += libcutils |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 476 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 477 | LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk |
Ian Rogers | c7dd295 | 2014-10-21 23:31:19 -0700 | [diff] [blame] | 478 | LOCAL_ADDITIONAL_DEPENDENCIES += $$(LOCAL_PATH)/Android.mk |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 479 | |
| 480 | ifeq ($$(art_target_or_host),target) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 481 | LOCAL_MODULE_TARGET_ARCH := $$(ART_TARGET_SUPPORTED_ARCH) |
Colin Cross | dc781a1 | 2014-02-04 16:22:03 -0800 | [diff] [blame] | 482 | endif |
| 483 | |
Dan Albert | 31fb260 | 2014-09-30 22:10:10 -0700 | [diff] [blame] | 484 | LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) |
| 485 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 486 | ifeq ($$(art_target_or_host),target) |
Christopher Ferris | d59b7b1 | 2014-04-01 12:29:09 -0700 | [diff] [blame] | 487 | ifneq ($$(art_ndebug_or_debug),debug) |
| 488 | # Leave the symbols in the shared library so that stack unwinders can |
| 489 | # produce meaningful name resolution. |
| 490 | LOCAL_STRIP_MODULE := keep_symbols |
| 491 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 492 | include $$(BUILD_SHARED_LIBRARY) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 493 | else # host |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 494 | include $$(BUILD_HOST_SHARED_LIBRARY) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 495 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 496 | |
| 497 | # Clear locally defined variables. |
| 498 | GENERATED_SRC_DIR := |
| 499 | ENUM_OPERATOR_OUT_CC_FILES := |
| 500 | ENUM_OPERATOR_OUT_GEN := |
| 501 | art_target_or_host := |
| 502 | art_ndebug_or_debug := |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 503 | endef |
| 504 | |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 505 | # We always build dex2oat and dependencies, even if the host build is otherwise disabled, since |
| 506 | # they are used to cross compile for the target. |
Junmo Park | 76ab347 | 2014-08-11 21:28:16 +0900 | [diff] [blame] | 507 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 508 | $(eval $(call build-libart,host,ndebug)) |
| 509 | endif |
Junmo Park | 76ab347 | 2014-08-11 21:28:16 +0900 | [diff] [blame] | 510 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 511 | $(eval $(call build-libart,host,debug)) |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 512 | endif |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 513 | |
| 514 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 515 | # $(error $(call build-libart,target,ndebug)) |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 516 | $(eval $(call build-libart,target,ndebug)) |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 517 | endif |
| 518 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 519 | $(eval $(call build-libart,target,debug)) |
Ian Rogers | 719d1a3 | 2014-03-06 12:13:39 -0800 | [diff] [blame] | 520 | endif |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 521 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 522 | # Clear locally defined variables. |
| 523 | LOCAL_PATH := |
| 524 | LIBART_COMMON_SRC_FILES := |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 525 | LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := |
| 526 | LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := |
| 527 | 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 528 | LIBART_TARGET_LDFLAGS := |
| 529 | LIBART_HOST_LDFLAGS := |
| 530 | LIBART_TARGET_SRC_FILES := |
| 531 | LIBART_TARGET_SRC_FILES_arm := |
| 532 | LIBART_TARGET_SRC_FILES_arm64 := |
| 533 | LIBART_TARGET_SRC_FILES_x86 := |
| 534 | LIBART_TARGET_SRC_FILES_x86_64 := |
| 535 | LIBART_TARGET_SRC_FILES_mips := |
Andreas Gampe | 1a5c406 | 2015-01-15 12:10:47 -0800 | [diff] [blame] | 536 | LIBART_TARGET_SRC_FILES_mips64 := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 537 | LIBART_HOST_SRC_FILES := |
| 538 | LIBART_HOST_SRC_FILES_32 := |
| 539 | LIBART_HOST_SRC_FILES_64 := |
| 540 | LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := |
| 541 | LIBART_CFLAGS := |
Elliott Hughes | 7ac7e32 | 2014-06-27 17:20:59 -0700 | [diff] [blame] | 542 | build-libart := |