blob: aa12c83ceba53bb63efd8a67c5b8d8a2d47158a6 [file] [log] [blame]
Brian Carlstrom7940e442013-07-12 13:46:57 -07001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
Ian Rogersafd9acc2014-06-17 08:21:54 -070019include art/build/Android.common_build.mk
Brian Carlstrom7940e442013-07-12 13:46:57 -070020
21LIBART_COMMON_SRC_FILES := \
Mathieu Chartierc7853442015-03-27 14:35:38 -070022 art_field.cc \
Mathieu Chartiere401d142015-04-22 13:56:20 -070023 art_method.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070024 atomic.cc.arm \
25 barrier.cc \
26 base/allocator.cc \
Mathieu Chartierb666f482015-02-18 14:33:14 -080027 base/arena_allocator.cc \
Mathieu Chartiere5d80f82015-10-15 17:47:48 -070028 base/arena_bit_vector.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070029 base/bit_vector.cc \
Vladimir Marko5096e662015-12-08 19:25:49 +000030 base/file_magic.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070031 base/hex_dump.cc \
32 base/logging.cc \
33 base/mutex.cc \
Mathieu Chartierb666f482015-02-18 14:33:14 -080034 base/scoped_arena_allocator.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070035 base/scoped_flock.cc \
36 base/stringpiece.cc \
37 base/stringprintf.cc \
Vladimir Marko80afd022015-05-19 18:08:00 +010038 base/time_utils.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070039 base/timing_logger.cc \
40 base/unix_file/fd_file.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070041 base/unix_file/random_access_file_utils.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070042 check_jni.cc \
43 class_linker.cc \
Mathieu Chartiercc5ebdf2015-07-27 11:19:43 -070044 class_table.cc \
Phil Wang751beff2015-08-28 15:17:15 +080045 code_simulator_container.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070046 common_throws.cc \
Andreas Gampe29d38e72016-03-23 15:31:51 +000047 compiler_filter.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070048 debugger.cc \
49 dex_file.cc \
50 dex_file_verifier.cc \
51 dex_instruction.cc \
52 elf_file.cc \
Artem Udovichenkod9786b02015-10-14 16:36:55 +030053 fault_handler.cc \
Man Cao8c2ff642015-05-27 17:25:30 -070054 gc/allocation_record.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070055 gc/allocator/dlmalloc.cc \
56 gc/allocator/rosalloc.cc \
Mathieu Chartier4858a932015-01-23 13:18:53 -080057 gc/accounting/bitmap.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070058 gc/accounting/card_table.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070059 gc/accounting/heap_bitmap.cc \
60 gc/accounting/mod_union_table.cc \
61 gc/accounting/remembered_set.cc \
62 gc/accounting/space_bitmap.cc \
63 gc/collector/concurrent_copying.cc \
64 gc/collector/garbage_collector.cc \
65 gc/collector/immune_region.cc \
Mathieu Chartier763a31e2015-11-16 16:05:55 -080066 gc/collector/immune_spaces.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070067 gc/collector/mark_compact.cc \
68 gc/collector/mark_sweep.cc \
69 gc/collector/partial_mark_sweep.cc \
70 gc/collector/semi_space.cc \
71 gc/collector/sticky_mark_sweep.cc \
72 gc/gc_cause.cc \
73 gc/heap.cc \
74 gc/reference_processor.cc \
75 gc/reference_queue.cc \
Mathieu Chartieraa516822015-10-02 15:53:37 -070076 gc/scoped_gc_critical_section.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070077 gc/space/bump_pointer_space.cc \
78 gc/space/dlmalloc_space.cc \
79 gc/space/image_space.cc \
80 gc/space/large_object_space.cc \
81 gc/space/malloc_space.cc \
Hiroshi Yamauchi2cd334a2015-01-09 14:03:35 -080082 gc/space/region_space.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070083 gc/space/rosalloc_space.cc \
84 gc/space/space.cc \
85 gc/space/zygote_space.cc \
Mathieu Chartiera5eae692014-12-17 17:56:03 -080086 gc/task_processor.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070087 hprof/hprof.cc \
88 image.cc \
89 indirect_reference_table.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070090 instrumentation.cc \
91 intern_table.cc \
92 interpreter/interpreter.cc \
93 interpreter/interpreter_common.cc \
Colin Crosse84e4f72015-03-18 14:01:19 -070094 interpreter/interpreter_goto_table_impl.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070095 interpreter/interpreter_switch_impl.cc \
Andreas Gampe2969bcd2015-03-09 12:57:41 -070096 interpreter/unstarted_runtime.cc \
Ian Rogers68d8b422014-07-17 11:09:10 -070097 java_vm_ext.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -070098 jdwp/jdwp_event.cc \
99 jdwp/jdwp_expand_buf.cc \
100 jdwp/jdwp_handler.cc \
101 jdwp/jdwp_main.cc \
102 jdwp/jdwp_request.cc \
103 jdwp/jdwp_socket.cc \
104 jdwp/object_registry.cc \
Ian Rogers68d8b422014-07-17 11:09:10 -0700105 jni_env_ext.cc \
David Srbecky67feb172015-12-17 19:57:44 +0000106 jit/debugger_interface.cc \
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800107 jit/jit.cc \
108 jit/jit_code_cache.cc \
Calin Juravle31f2c152015-10-23 17:56:15 +0100109 jit/offline_profiling_info.cc \
Nicolas Geoffray5550ca82015-08-21 18:38:30 +0100110 jit/profiling_info.cc \
Calin Juravle4d77b6a2015-12-01 18:38:09 +0000111 jit/profile_saver.cc \
Igor Murashkinfc1ccd72015-07-30 15:11:09 -0700112 lambda/art_lambda_method.cc \
Igor Murashkine2facc52015-07-10 13:49:08 -0700113 lambda/box_table.cc \
Igor Murashkinfc1ccd72015-07-30 15:11:09 -0700114 lambda/closure.cc \
115 lambda/closure_builder.cc \
Igor Murashkin6918bf12015-09-27 19:19:06 -0700116 lambda/leaking_allocator.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700117 jni_internal.cc \
118 jobject_comparator.cc \
Mathieu Chartierc7853442015-03-27 14:35:38 -0700119 linear_alloc.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700120 mem_map.cc \
121 memory_region.cc \
Mathieu Chartierfc58af42015-04-16 18:00:39 -0700122 mirror/abstract_method.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700123 mirror/array.cc \
124 mirror/class.cc \
125 mirror/dex_cache.cc \
Mathieu Chartierdaaf3262015-03-24 13:30:28 -0700126 mirror/field.cc \
Mathieu Chartierfc58af42015-04-16 18:00:39 -0700127 mirror/method.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700128 mirror/object.cc \
129 mirror/reference.cc \
130 mirror/stack_trace_element.cc \
131 mirror/string.cc \
132 mirror/throwable.cc \
133 monitor.cc \
Calin Juravlec8423522014-08-12 20:55:20 +0100134 native_bridge_art_interface.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700135 native/dalvik_system_DexFile.cc \
136 native/dalvik_system_VMDebug.cc \
137 native/dalvik_system_VMRuntime.cc \
138 native/dalvik_system_VMStack.cc \
139 native/dalvik_system_ZygoteHooks.cc \
140 native/java_lang_Class.cc \
141 native/java_lang_DexCache.cc \
142 native/java_lang_Object.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700143 native/java_lang_String.cc \
Jeff Hao848f70a2014-01-15 13:49:50 -0800144 native/java_lang_StringFactory.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700145 native/java_lang_System.cc \
146 native/java_lang_Thread.cc \
147 native/java_lang_Throwable.cc \
148 native/java_lang_VMClassLoader.cc \
Mathieu Chartiera5a53ef2014-09-12 12:58:05 -0700149 native/java_lang_ref_FinalizerReference.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700150 native/java_lang_ref_Reference.cc \
Jeff Hao1133db72016-04-04 19:50:14 -0700151 native/java_lang_reflect_AbstractMethod.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700152 native/java_lang_reflect_Array.cc \
153 native/java_lang_reflect_Constructor.cc \
154 native/java_lang_reflect_Field.cc \
155 native/java_lang_reflect_Method.cc \
156 native/java_lang_reflect_Proxy.cc \
157 native/java_util_concurrent_atomic_AtomicLong.cc \
Jeff Hao848f70a2014-01-15 13:49:50 -0800158 native/libcore_util_CharsetUtils.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700159 native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
160 native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
161 native/sun_misc_Unsafe.cc \
162 oat.cc \
163 oat_file.cc \
Richard Uhler66d874d2015-01-15 09:37:19 -0800164 oat_file_assistant.cc \
Mathieu Chartierf9c6fc62015-10-07 11:44:05 -0700165 oat_file_manager.cc \
Nicolas Geoffray524e7ea2015-10-16 17:13:34 +0100166 oat_quick_method_header.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700167 object_lock.cc \
168 offsets.cc \
169 os_linux.cc \
170 parsed_options.cc \
171 primitive.cc \
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300172 profiler.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700173 quick_exception_handler.cc \
174 quick/inline_method_analyser.cc \
175 reference_table.cc \
176 reflection.cc \
177 runtime.cc \
Igor Murashkinaaebaa02015-01-26 10:55:53 -0800178 runtime_options.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700179 signal_catcher.cc \
180 stack.cc \
Nicolas Geoffray004c2302015-03-20 10:06:38 +0000181 stack_map.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700182 thread.cc \
183 thread_list.cc \
184 thread_pool.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700185 trace.cc \
186 transaction.cc \
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300187 type_lookup_table.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700188 utf.cc \
189 utils.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700190 verifier/instruction_flags.cc \
191 verifier/method_verifier.cc \
192 verifier/reg_type.cc \
193 verifier/reg_type_cache.cc \
194 verifier/register_line.cc \
195 well_known_classes.cc \
196 zip_archive.cc
Brian Carlstrom7940e442013-07-12 13:46:57 -0700197
198LIBART_COMMON_SRC_FILES += \
Ian Rogers22d5e732014-07-15 22:23:51 -0700199 arch/context.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800200 arch/instruction_set.cc \
201 arch/instruction_set_features.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700202 arch/memcmp16.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800203 arch/arm/instruction_set_features_arm.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700204 arch/arm/registers_arm.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800205 arch/arm64/instruction_set_features_arm64.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700206 arch/arm64/registers_arm64.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800207 arch/mips/instruction_set_features_mips.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700208 arch/mips/registers_mips.cc \
Andreas Gampe57b34292015-01-14 15:45:59 -0800209 arch/mips64/instruction_set_features_mips64.cc \
210 arch/mips64/registers_mips64.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800211 arch/x86/instruction_set_features_x86.cc \
212 arch/x86/registers_x86.cc \
213 arch/x86_64/registers_x86_64.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700214 entrypoints/entrypoint_utils.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700215 entrypoints/jni/jni_entrypoints.cc \
216 entrypoints/math_entrypoints.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700217 entrypoints/quick/quick_alloc_entrypoints.cc \
218 entrypoints/quick/quick_cast_entrypoints.cc \
219 entrypoints/quick/quick_deoptimization_entrypoints.cc \
220 entrypoints/quick/quick_dexcache_entrypoints.cc \
221 entrypoints/quick/quick_field_entrypoints.cc \
222 entrypoints/quick/quick_fillarray_entrypoints.cc \
223 entrypoints/quick/quick_instrumentation_entrypoints.cc \
224 entrypoints/quick/quick_jni_entrypoints.cc \
225 entrypoints/quick/quick_lock_entrypoints.cc \
226 entrypoints/quick/quick_math_entrypoints.cc \
227 entrypoints/quick/quick_thread_entrypoints.cc \
228 entrypoints/quick/quick_throw_entrypoints.cc \
229 entrypoints/quick/quick_trampoline_entrypoints.cc
Brian Carlstrom7940e442013-07-12 13:46:57 -0700230
Elliott Hughes7ac7e322014-06-27 17:20:59 -0700231LIBART_TARGET_LDFLAGS :=
Ian Rogersc5f17732014-06-05 20:48:42 -0700232LIBART_HOST_LDFLAGS :=
Colin Crossdc781a12014-02-04 16:22:03 -0800233
Tamas Berghammer76e5eab2015-09-02 11:24:33 +0100234# Keep the __jit_debug_register_code symbol as a unique symbol during ICF for architectures where
235# we use gold as the linker (arm, x86, x86_64). The symbol is used by the debuggers to detect when
236# new jit code is generated. We don't want it to be called when a different function with the same
237# (empty) body is called.
238JIT_DEBUG_REGISTER_CODE_LDFLAGS := -Wl,--keep-unique,__jit_debug_register_code
239LIBART_TARGET_LDFLAGS_arm := $(JIT_DEBUG_REGISTER_CODE_LDFLAGS)
Tamas Berghammer274b4552016-01-25 12:26:52 +0000240LIBART_TARGET_LDFLAGS_arm64 := $(JIT_DEBUG_REGISTER_CODE_LDFLAGS)
Tamas Berghammer76e5eab2015-09-02 11:24:33 +0100241LIBART_TARGET_LDFLAGS_x86 := $(JIT_DEBUG_REGISTER_CODE_LDFLAGS)
242LIBART_TARGET_LDFLAGS_x86_64 := $(JIT_DEBUG_REGISTER_CODE_LDFLAGS)
243JIT_DEBUG_REGISTER_CODE_LDFLAGS :=
244
Brian Carlstrom7940e442013-07-12 13:46:57 -0700245LIBART_TARGET_SRC_FILES := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700246 $(LIBART_COMMON_SRC_FILES) \
Ian Rogers22d5e732014-07-15 22:23:51 -0700247 jdwp/jdwp_adb.cc \
248 monitor_android.cc \
249 runtime_android.cc \
250 thread_android.cc
Brian Carlstrom7940e442013-07-12 13:46:57 -0700251
Colin Crossdc781a12014-02-04 16:22:03 -0800252LIBART_TARGET_SRC_FILES_arm := \
buzbee1452bee2015-03-06 14:43:04 -0800253 interpreter/mterp/mterp.cc \
254 interpreter/mterp/out/mterp_arm.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700255 arch/arm/context_arm.cc.arm \
256 arch/arm/entrypoints_init_arm.cc \
Ian Rogersd582fa42014-11-05 23:46:43 -0800257 arch/arm/instruction_set_features_assembly_tests.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700258 arch/arm/jni_entrypoints_arm.S \
259 arch/arm/memcmp16_arm.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700260 arch/arm/quick_entrypoints_arm.S \
Zheng Xu5667fdb2014-10-23 18:29:55 +0800261 arch/arm/quick_entrypoints_cc_arm.cc \
Ian Rogers22d5e732014-07-15 22:23:51 -0700262 arch/arm/thread_arm.cc \
263 arch/arm/fault_handler_arm.cc
Colin Crossdc781a12014-02-04 16:22:03 -0800264
Stuart Monteithb95a5342014-03-12 13:32:32 +0000265LIBART_TARGET_SRC_FILES_arm64 := \
Bill Buzbee3b0b4b92016-02-02 13:45:36 +0000266 interpreter/mterp/mterp.cc \
267 interpreter/mterp/out/mterp_arm64.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700268 arch/arm64/context_arm64.cc \
269 arch/arm64/entrypoints_init_arm64.cc \
270 arch/arm64/jni_entrypoints_arm64.S \
271 arch/arm64/memcmp16_arm64.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700272 arch/arm64/quick_entrypoints_arm64.S \
273 arch/arm64/thread_arm64.cc \
274 monitor_pool.cc \
275 arch/arm64/fault_handler_arm64.cc
Stuart Monteithb95a5342014-03-12 13:32:32 +0000276
Ying Wangc6585b72014-04-23 18:19:44 -0700277LIBART_SRC_FILES_x86 := \
Serguei Katkov05dfaaa2016-01-28 08:21:26 +0600278 interpreter/mterp/mterp.cc \
279 interpreter/mterp/out/mterp_x86.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700280 arch/x86/context_x86.cc \
281 arch/x86/entrypoints_init_x86.cc \
282 arch/x86/jni_entrypoints_x86.S \
Alexander Ivchenko907194a2014-07-14 18:54:34 +0400283 arch/x86/memcmp16_x86.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700284 arch/x86/quick_entrypoints_x86.S \
285 arch/x86/thread_x86.cc \
286 arch/x86/fault_handler_x86.cc
Colin Crossdc781a12014-02-04 16:22:03 -0800287
Ying Wangc6585b72014-04-23 18:19:44 -0700288LIBART_TARGET_SRC_FILES_x86 := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700289 $(LIBART_SRC_FILES_x86)
Ying Wangc6585b72014-04-23 18:19:44 -0700290
Dave Allisondfd3b472014-07-16 16:04:32 -0700291# Note that the fault_handler_x86.cc is not a mistake. This file is
292# shared between the x86 and x86_64 architectures.
Ying Wangc6585b72014-04-23 18:19:44 -0700293LIBART_SRC_FILES_x86_64 := \
Serguei Katkov6cbe0812016-03-01 16:10:48 +0600294 interpreter/mterp/mterp.cc \
295 interpreter/mterp/out/mterp_x86_64.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700296 arch/x86_64/context_x86_64.cc \
297 arch/x86_64/entrypoints_init_x86_64.cc \
298 arch/x86_64/jni_entrypoints_x86_64.S \
Varvara Rainchik2a0bffd2014-07-30 17:01:24 +0400299 arch/x86_64/memcmp16_x86_64.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700300 arch/x86_64/quick_entrypoints_x86_64.S \
301 arch/x86_64/thread_x86_64.cc \
302 monitor_pool.cc \
Dave Allisondfd3b472014-07-16 16:04:32 -0700303 arch/x86/fault_handler_x86.cc
Colin Crossdc781a12014-02-04 16:22:03 -0800304
Ying Wangc6585b72014-04-23 18:19:44 -0700305LIBART_TARGET_SRC_FILES_x86_64 := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700306 $(LIBART_SRC_FILES_x86_64) \
Colin Crossdc781a12014-02-04 16:22:03 -0800307
308LIBART_TARGET_SRC_FILES_mips := \
Douglas Leung200f0402016-02-25 20:05:47 -0800309 interpreter/mterp/mterp.cc \
310 interpreter/mterp/out/mterp_mips.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700311 arch/mips/context_mips.cc \
312 arch/mips/entrypoints_init_mips.cc \
313 arch/mips/jni_entrypoints_mips.S \
314 arch/mips/memcmp16_mips.S \
Ian Rogers22d5e732014-07-15 22:23:51 -0700315 arch/mips/quick_entrypoints_mips.S \
316 arch/mips/thread_mips.cc \
317 arch/mips/fault_handler_mips.cc
Colin Crossdc781a12014-02-04 16:22:03 -0800318
Andreas Gampe1a5c4062015-01-15 12:10:47 -0800319LIBART_TARGET_SRC_FILES_mips64 := \
Alexey Frunze00b53b72016-02-02 20:25:45 -0800320 interpreter/mterp/mterp.cc \
321 interpreter/mterp/out/mterp_mips64.S \
Andreas Gampe1a5c4062015-01-15 12:10:47 -0800322 arch/mips64/context_mips64.cc \
323 arch/mips64/entrypoints_init_mips64.cc \
324 arch/mips64/jni_entrypoints_mips64.S \
325 arch/mips64/memcmp16_mips64.S \
326 arch/mips64/quick_entrypoints_mips64.S \
327 arch/mips64/thread_mips64.cc \
328 monitor_pool.cc \
329 arch/mips64/fault_handler_mips64.cc
Brian Carlstrom7940e442013-07-12 13:46:57 -0700330
Brian Carlstrom7940e442013-07-12 13:46:57 -0700331LIBART_HOST_SRC_FILES := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700332 $(LIBART_COMMON_SRC_FILES) \
Ian Rogers22d5e732014-07-15 22:23:51 -0700333 monitor_linux.cc \
334 runtime_linux.cc \
335 thread_linux.cc
Brian Carlstrom7940e442013-07-12 13:46:57 -0700336
Ying Wangc6585b72014-04-23 18:19:44 -0700337LIBART_HOST_SRC_FILES_32 := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700338 $(LIBART_SRC_FILES_x86)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700339
Ying Wangc6585b72014-04-23 18:19:44 -0700340LIBART_HOST_SRC_FILES_64 := \
Ian Rogers22d5e732014-07-15 22:23:51 -0700341 $(LIBART_SRC_FILES_x86_64)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700342
343LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \
Ian Rogersd582fa42014-11-05 23:46:43 -0800344 arch/instruction_set.h \
Mathieu Chartierbad02672014-08-25 13:08:22 -0700345 base/allocator.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700346 base/mutex.h \
Ian Rogers6a3c1fc2014-10-31 00:33:20 -0700347 debugger.h \
Andreas Gampe4303ba92014-11-06 01:00:46 -0800348 base/unix_file/fd_file.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700349 dex_file.h \
350 dex_instruction.h \
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800351 dex_instruction_utils.h \
Mathieu Chartiere34fa1d2015-01-14 14:55:47 -0800352 gc_root.h \
Ian Rogers6a3c1fc2014-10-31 00:33:20 -0700353 gc/allocator_type.h \
Mathieu Chartier14c3bf92015-07-13 14:35:43 -0700354 gc/allocator/rosalloc.h \
Mathieu Chartierb363f662014-07-16 13:28:58 -0700355 gc/collector_type.h \
Mathieu Chartier14c3bf92015-07-13 14:35:43 -0700356 gc/collector/gc_type.h \
357 gc/heap.h \
Hiroshi Yamauchid25f8422015-01-30 16:25:12 -0800358 gc/space/region_space.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700359 gc/space/space.h \
Mathieu Chartier14c3bf92015-07-13 14:35:43 -0700360 gc/weak_root_state.h \
Mathieu Chartiere401d142015-04-22 13:56:20 -0700361 image.h \
Ian Rogers6a3c1fc2014-10-31 00:33:20 -0700362 instrumentation.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700363 indirect_reference_table.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700364 invoke_type.h \
365 jdwp/jdwp.h \
366 jdwp/jdwp_constants.h \
367 lock_word.h \
368 mirror/class.h \
369 oat.h \
370 object_callbacks.h \
Mathieu Chartierf8cb1782016-03-18 18:45:41 -0700371 process_state.h \
Ian Rogers6a3c1fc2014-10-31 00:33:20 -0700372 profiler_options.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700373 quick/inline_method_analyser.h \
Ian Rogers6a3c1fc2014-10-31 00:33:20 -0700374 runtime.h \
375 stack.h \
Ian Rogers22d5e732014-07-15 22:23:51 -0700376 thread.h \
377 thread_state.h \
378 verifier/method_verifier.h
Brian Carlstrom7940e442013-07-12 13:46:57 -0700379
Narayan Kamath18d20952015-12-22 14:56:59 +0000380LIBOPENJDKJVM_SRC_FILES := openjdkjvm/OpenjdkJvm.cc
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000381
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700382LIBART_CFLAGS := -DBUILDING_LIBART=1
Brian Carlstrom7940e442013-07-12 13:46:57 -0700383
Shinichiro Hamaji028aec22015-07-29 16:30:29 +0900384LIBART_TARGET_CFLAGS :=
385LIBART_HOST_CFLAGS :=
386
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700387# Default dex2oat instruction set features.
388LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := default
389LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
3902ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
391ifeq ($(DEX2OAT_TARGET_ARCH),arm)
392 ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
Andreas Gampe72a122c2014-11-13 19:10:33 -0800393 LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700394 else
395 ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
396 LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
397 endif
398 endif
399endif
400ifeq ($(2ND_DEX2OAT_TARGET_ARCH),arm)
401 ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
Andreas Gampe72a122c2014-11-13 19:10:33 -0800402 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700403 else
404 ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
405 2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
406 endif
407 endif
408endif
409
Brian Carlstrom7940e442013-07-12 13:46:57 -0700410# $(1): target or host
411# $(2): ndebug or debug
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000412# $(3): static or shared (note that static only applies for host)
413# $(4): module name : either libart or libopenjdkjvm
414define build-runtime-library
Brian Carlstrom7940e442013-07-12 13:46:57 -0700415 ifneq ($(1),target)
416 ifneq ($(1),host)
417 $$(error expected target or host for argument 1, received $(1))
418 endif
419 endif
420 ifneq ($(2),ndebug)
421 ifneq ($(2),debug)
422 $$(error expected ndebug or debug for argument 2, received $(2))
423 endif
424 endif
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000425 ifneq ($(4),libart)
426 ifneq ($(4),libopenjdkjvm)
427 $$(error expected libart of libopenjdkjvm for argument 4, received $(4))
428 endif
429 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700430
431 art_target_or_host := $(1)
432 art_ndebug_or_debug := $(2)
Calin Juravle65e069d2015-06-08 10:35:24 +0100433 art_static_or_shared := $(3)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700434
Ian Rogersafd9acc2014-06-17 08:21:54 -0700435 include $$(CLEAR_VARS)
436 LOCAL_CPP_EXTENSION := $$(ART_CPP_EXTENSION)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700437 ifeq ($$(art_ndebug_or_debug),ndebug)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000438 LOCAL_MODULE := $(4)
Dehao Chen6c36a8b2014-11-13 14:13:58 -0800439 ifeq ($$(art_target_or_host),target)
440 LOCAL_FDO_SUPPORT := true
441 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700442 else # debug
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000443 LOCAL_MODULE := $(4)d
Brian Carlstrom7940e442013-07-12 13:46:57 -0700444 endif
445
446 LOCAL_MODULE_TAGS := optional
Calin Juravle65e069d2015-06-08 10:35:24 +0100447
448 ifeq ($$(art_static_or_shared),static)
449 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
450 else
451 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
452 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700453
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000454 ifeq ($(4),libart)
455 ifeq ($$(art_target_or_host),target)
456 LOCAL_SRC_FILES := $$(LIBART_TARGET_SRC_FILES)
457 $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \
458 $$(eval LOCAL_SRC_FILES_$$(arch) := $$$$(LIBART_TARGET_SRC_FILES_$$(arch))))
459 else # host
460 LOCAL_SRC_FILES := $$(LIBART_HOST_SRC_FILES)
461 LOCAL_SRC_FILES_32 := $$(LIBART_HOST_SRC_FILES_32)
462 LOCAL_SRC_FILES_64 := $$(LIBART_HOST_SRC_FILES_64)
463 LOCAL_IS_HOST_MODULE := true
464 endif
465 else # libopenjdkjvm
466 LOCAL_SRC_FILES := $$(LIBOPENJDKJVM_SRC_FILES)
467 ifeq ($$(art_target_or_host),host)
468 LOCAL_IS_HOST_MODULE := true
469 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700470 endif
471
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000472ifeq ($(4),libart)
Colin Crossdc781a12014-02-04 16:22:03 -0800473 GENERATED_SRC_DIR := $$(call local-generated-sources-dir)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700474 ENUM_OPERATOR_OUT_CC_FILES := $$(patsubst %.h,%_operator_out.cc,$$(LIBART_ENUM_OPERATOR_OUT_HEADER_FILES))
475 ENUM_OPERATOR_OUT_GEN := $$(addprefix $$(GENERATED_SRC_DIR)/,$$(ENUM_OPERATOR_OUT_CC_FILES))
476
477$$(ENUM_OPERATOR_OUT_GEN): art/tools/generate-operator-out.py
478$$(ENUM_OPERATOR_OUT_GEN): PRIVATE_CUSTOM_TOOL = art/tools/generate-operator-out.py $(LOCAL_PATH) $$< > $$@
479$$(ENUM_OPERATOR_OUT_GEN): $$(GENERATED_SRC_DIR)/%_operator_out.cc : $(LOCAL_PATH)/%.h
480 $$(transform-generated-source)
481
482 LOCAL_GENERATED_SOURCES += $$(ENUM_OPERATOR_OUT_GEN)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000483endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700484
Ian Rogersafd9acc2014-06-17 08:21:54 -0700485 LOCAL_CFLAGS := $$(LIBART_CFLAGS)
Dan Albert58bea4a2014-08-09 18:08:07 -0700486 LOCAL_LDFLAGS := $$(LIBART_LDFLAGS)
Ian Rogersc5f17732014-06-05 20:48:42 -0700487 ifeq ($$(art_target_or_host),target)
Shinichiro Hamaji028aec22015-07-29 16:30:29 +0900488 LOCAL_CFLAGS += $$(LIBART_TARGET_CFLAGS)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700489 LOCAL_LDFLAGS += $$(LIBART_TARGET_LDFLAGS)
Tamas Berghammer76e5eab2015-09-02 11:24:33 +0100490 $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \
491 $$(eval LOCAL_LDFLAGS_$$(arch) := $$(LIBART_TARGET_LDFLAGS_$$(arch))))
Calin Juravle65e069d2015-06-08 10:35:24 +0100492 else #host
Shinichiro Hamaji028aec22015-07-29 16:30:29 +0900493 LOCAL_CFLAGS += $$(LIBART_HOST_CFLAGS)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700494 LOCAL_LDFLAGS += $$(LIBART_HOST_LDFLAGS)
Calin Juravle65e069d2015-06-08 10:35:24 +0100495 ifeq ($$(art_static_or_shared),static)
496 LOCAL_LDFLAGS += -static
497 endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700498 endif
Colin Crossdc781a12014-02-04 16:22:03 -0800499
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700500 # Clang usage
Brian Carlstrom7940e442013-07-12 13:46:57 -0700501 ifeq ($$(art_target_or_host),target)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700502 $$(eval $$(call set-target-local-clang-vars))
503 $$(eval $$(call set-target-local-cflags-vars,$(2)))
Stephen Hinesa388c5a2016-03-02 18:26:29 -0800504 LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700505 LOCAL_CFLAGS_$(DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)"
506 LOCAL_CFLAGS_$(2ND_DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)"
Brian Carlstrom7940e442013-07-12 13:46:57 -0700507 else # host
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700508 LOCAL_CLANG := $$(ART_HOST_CLANG)
509 LOCAL_LDLIBS := $$(ART_HOST_LDLIBS)
510 LOCAL_LDLIBS += -ldl -lpthread
511 ifeq ($$(HOST_OS),linux)
512 LOCAL_LDLIBS += -lrt
513 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700514 LOCAL_CFLAGS += $$(ART_HOST_CFLAGS)
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700515 LOCAL_CFLAGS += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES)"
Roland Levillain12bd7212015-06-04 17:50:27 +0100516 LOCAL_ASFLAGS += $$(ART_HOST_ASFLAGS)
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700517
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700518 ifeq ($$(art_ndebug_or_debug),debug)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700519 LOCAL_CFLAGS += $$(ART_HOST_DEBUG_CFLAGS)
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700520 else
Ian Rogersafd9acc2014-06-17 08:21:54 -0700521 LOCAL_CFLAGS += $$(ART_HOST_NON_DEBUG_CFLAGS)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700522 endif
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700523 LOCAL_MULTILIB := both
Brian Carlstrom7940e442013-07-12 13:46:57 -0700524 endif
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700525
Ian Rogersafd9acc2014-06-17 08:21:54 -0700526 LOCAL_C_INCLUDES += $$(ART_C_INCLUDES)
Igor Murashkinaaebaa02015-01-26 10:55:53 -0800527 LOCAL_C_INCLUDES += art/cmdline
Dave Allisonf4b80bc2014-05-14 15:41:25 -0700528 LOCAL_C_INCLUDES += art/sigchainlib
Igor Murashkinaaebaa02015-01-26 10:55:53 -0800529 LOCAL_C_INCLUDES += art
Dave Allisonf4b80bc2014-05-14 15:41:25 -0700530
Calin Juravle65e069d2015-06-08 10:35:24 +0100531 ifeq ($$(art_static_or_shared),static)
Dmitriy Ivanov44409d32015-11-11 14:18:55 -0800532 LOCAL_STATIC_LIBRARIES := libnativehelper
533 LOCAL_STATIC_LIBRARIES += libnativebridge
534 LOCAL_STATIC_LIBRARIES += libnativeloader
535 LOCAL_STATIC_LIBRARIES += libsigchain_dummy
536 LOCAL_STATIC_LIBRARIES += libbacktrace
537 LOCAL_STATIC_LIBRARIES += liblz4
Calin Juravle65e069d2015-06-08 10:35:24 +0100538 else
Dmitriy Ivanov44409d32015-11-11 14:18:55 -0800539 LOCAL_SHARED_LIBRARIES := libnativehelper
540 LOCAL_SHARED_LIBRARIES += libnativebridge
541 LOCAL_SHARED_LIBRARIES += libnativeloader
542 LOCAL_SHARED_LIBRARIES += libsigchain
543 LOCAL_SHARED_LIBRARIES += libbacktrace
544 LOCAL_SHARED_LIBRARIES += liblz4
Calin Juravle65e069d2015-06-08 10:35:24 +0100545 endif
546
Brian Carlstrom7940e442013-07-12 13:46:57 -0700547 ifeq ($$(art_target_or_host),target)
Ian Rogers872dd822014-10-30 11:19:14 -0700548 LOCAL_SHARED_LIBRARIES += libdl
549 # ZipArchive support, the order matters here to get all symbols.
Narayan Kamath657318c2015-04-28 09:56:28 +0100550 LOCAL_STATIC_LIBRARIES := libziparchive libz libbase
Ian Rogers872dd822014-10-30 11:19:14 -0700551 # For android::FileMap used by libziparchive.
552 LOCAL_SHARED_LIBRARIES += libutils
553 # For liblog, atrace, properties, ashmem, set_sched_policy and socket_peer_is_trusted.
554 LOCAL_SHARED_LIBRARIES += libcutils
Brian Carlstrom7940e442013-07-12 13:46:57 -0700555 else # host
Calin Juravle65e069d2015-06-08 10:35:24 +0100556 ifeq ($$(art_static_or_shared),static)
Alex Light4cd27d62015-08-18 23:03:42 +0000557 LOCAL_STATIC_LIBRARIES += libziparchive-host libz
Calin Juravle65e069d2015-06-08 10:35:24 +0100558 # For ashmem_create_region.
559 LOCAL_STATIC_LIBRARIES += libcutils
560 else
Alex Light4cd27d62015-08-18 23:03:42 +0000561 LOCAL_SHARED_LIBRARIES += libziparchive-host libz-host
Calin Juravle65e069d2015-06-08 10:35:24 +0100562 # For ashmem_create_region.
563 LOCAL_SHARED_LIBRARIES += libcutils
564 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700565 endif
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000566
567 ifeq ($(4),libopenjdkjvm)
568 ifeq ($$(art_ndebug_or_debug),ndebug)
569 LOCAL_SHARED_LIBRARIES += libart
570 else
571 LOCAL_SHARED_LIBRARIES += libartd
572 endif
Narayan Kamath18d20952015-12-22 14:56:59 +0000573 LOCAL_NOTICE_FILE := $(LOCAL_PATH)/openjdkjvm/NOTICE
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000574 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700575 LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk
Ian Rogersc7dd2952014-10-21 23:31:19 -0700576 LOCAL_ADDITIONAL_DEPENDENCIES += $$(LOCAL_PATH)/Android.mk
Colin Crossdc781a12014-02-04 16:22:03 -0800577
578 ifeq ($$(art_target_or_host),target)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700579 LOCAL_MODULE_TARGET_ARCH := $$(ART_TARGET_SUPPORTED_ARCH)
Colin Crossdc781a12014-02-04 16:22:03 -0800580 endif
581
Dan Albert31fb2602014-09-30 22:10:10 -0700582 LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE)
583
Brian Carlstrom7940e442013-07-12 13:46:57 -0700584 ifeq ($$(art_target_or_host),target)
Christopher Ferrisd59b7b12014-04-01 12:29:09 -0700585 ifneq ($$(art_ndebug_or_debug),debug)
586 # Leave the symbols in the shared library so that stack unwinders can
587 # produce meaningful name resolution.
588 LOCAL_STRIP_MODULE := keep_symbols
589 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700590 include $$(BUILD_SHARED_LIBRARY)
Brian Carlstrom7940e442013-07-12 13:46:57 -0700591 else # host
Calin Juravle65e069d2015-06-08 10:35:24 +0100592 ifeq ($$(art_static_or_shared),static)
593 include $$(BUILD_HOST_STATIC_LIBRARY)
594 else
595 include $$(BUILD_HOST_SHARED_LIBRARY)
596 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700597 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700598
599 # Clear locally defined variables.
600 GENERATED_SRC_DIR :=
601 ENUM_OPERATOR_OUT_CC_FILES :=
602 ENUM_OPERATOR_OUT_GEN :=
603 art_target_or_host :=
604 art_ndebug_or_debug :=
Calin Juravle65e069d2015-06-08 10:35:24 +0100605 art_static_or_shared :=
Brian Carlstrom7940e442013-07-12 13:46:57 -0700606endef
607
Ian Rogers719d1a32014-03-06 12:13:39 -0800608# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since
609# they are used to cross compile for the target.
Junmo Park76ab3472014-08-11 21:28:16 +0900610ifeq ($(ART_BUILD_HOST_NDEBUG),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000611 $(eval $(call build-runtime-library,host,ndebug,shared,libart))
612 $(eval $(call build-runtime-library,host,ndebug,shared,libopenjdkjvm))
Calin Juravle65e069d2015-06-08 10:35:24 +0100613 ifeq ($(ART_BUILD_HOST_STATIC),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000614 $(eval $(call build-runtime-library,host,ndebug,static,libart))
615 $(eval $(call build-runtime-library,host,ndebug,static,libopenjdkjvm))
Calin Juravle65e069d2015-06-08 10:35:24 +0100616 endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700617endif
Junmo Park76ab3472014-08-11 21:28:16 +0900618ifeq ($(ART_BUILD_HOST_DEBUG),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000619 $(eval $(call build-runtime-library,host,debug,shared,libart))
620 $(eval $(call build-runtime-library,host,debug,shared,libopenjdkjvm))
Calin Juravle65e069d2015-06-08 10:35:24 +0100621 ifeq ($(ART_BUILD_HOST_STATIC),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000622 $(eval $(call build-runtime-library,host,debug,static,libart))
623 $(eval $(call build-runtime-library,host,debug,static,libopenjdkjvm))
Calin Juravle65e069d2015-06-08 10:35:24 +0100624 endif
Brian Carlstrom7940e442013-07-12 13:46:57 -0700625endif
Ian Rogers719d1a32014-03-06 12:13:39 -0800626
627ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000628# $(error $(call build-runtime-library,target,ndebug))
629 $(eval $(call build-runtime-library,target,ndebug,shared,libart))
630 $(eval $(call build-runtime-library,target,ndebug,shared,libopenjdkjvm))
Ian Rogers719d1a32014-03-06 12:13:39 -0800631endif
632ifeq ($(ART_BUILD_TARGET_DEBUG),true)
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000633 $(eval $(call build-runtime-library,target,debug,shared,libart))
634 $(eval $(call build-runtime-library,target,debug,shared,libopenjdkjvm))
Ian Rogers719d1a32014-03-06 12:13:39 -0800635endif
Dave Allisonf4b80bc2014-05-14 15:41:25 -0700636
Ian Rogersafd9acc2014-06-17 08:21:54 -0700637# Clear locally defined variables.
638LOCAL_PATH :=
639LIBART_COMMON_SRC_FILES :=
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700640LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES :=
641LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
6422ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
Tamas Berghammer0fd58122015-11-12 11:05:50 +0000643LIBART_HOST_LDFLAGS :=
Tamas Berghammer76e5eab2015-09-02 11:24:33 +0100644LIBART_TARGET_LDFLAGS :=
645LIBART_TARGET_LDFLAGS_arm :=
646LIBART_TARGET_LDFLAGS_arm64 :=
647LIBART_TARGET_LDFLAGS_x86 :=
648LIBART_TARGET_LDFLAGS_x86_64 :=
649LIBART_TARGET_LDFLAGS_mips :=
650LIBART_TARGET_LDFLAGS_mips64 :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700651LIBART_TARGET_SRC_FILES :=
652LIBART_TARGET_SRC_FILES_arm :=
653LIBART_TARGET_SRC_FILES_arm64 :=
654LIBART_TARGET_SRC_FILES_x86 :=
655LIBART_TARGET_SRC_FILES_x86_64 :=
656LIBART_TARGET_SRC_FILES_mips :=
Andreas Gampe1a5c4062015-01-15 12:10:47 -0800657LIBART_TARGET_SRC_FILES_mips64 :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700658LIBART_HOST_SRC_FILES :=
659LIBART_HOST_SRC_FILES_32 :=
660LIBART_HOST_SRC_FILES_64 :=
661LIBART_ENUM_OPERATOR_OUT_HEADER_FILES :=
662LIBART_CFLAGS :=
Shinichiro Hamaji028aec22015-07-29 16:30:29 +0900663LIBART_TARGET_CFLAGS :=
664LIBART_HOST_CFLAGS :=
Narayan Kamath6ca77ec2015-12-18 11:08:27 +0000665build-runtime-library :=