Android.mk revision 4303ba97313458491e038d78efa041d41cf7bb43
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
17LOCAL_PATH := $(call my-dir)
18
19include art/build/Android.common_build.mk
20
21LIBART_COMMON_SRC_FILES := \
22  atomic.cc.arm \
23  barrier.cc \
24  base/allocator.cc \
25  base/bit_vector.cc \
26  base/hex_dump.cc \
27  base/logging.cc \
28  base/mutex.cc \
29  base/scoped_flock.cc \
30  base/stringpiece.cc \
31  base/stringprintf.cc \
32  base/timing_logger.cc \
33  base/unix_file/fd_file.cc \
34  base/unix_file/null_file.cc \
35  base/unix_file/random_access_file_utils.cc \
36  base/unix_file/string_file.cc \
37  check_jni.cc \
38  class_linker.cc \
39  common_throws.cc \
40  debugger.cc \
41  dex_file.cc \
42  dex_file_verifier.cc \
43  dex_instruction.cc \
44  elf_file.cc \
45  field_helper.cc \
46  gc/allocator/dlmalloc.cc \
47  gc/allocator/rosalloc.cc \
48  gc/accounting/card_table.cc \
49  gc/accounting/heap_bitmap.cc \
50  gc/accounting/mod_union_table.cc \
51  gc/accounting/remembered_set.cc \
52  gc/accounting/space_bitmap.cc \
53  gc/collector/concurrent_copying.cc \
54  gc/collector/garbage_collector.cc \
55  gc/collector/immune_region.cc \
56  gc/collector/mark_compact.cc \
57  gc/collector/mark_sweep.cc \
58  gc/collector/partial_mark_sweep.cc \
59  gc/collector/semi_space.cc \
60  gc/collector/sticky_mark_sweep.cc \
61  gc/gc_cause.cc \
62  gc/heap.cc \
63  gc/reference_processor.cc \
64  gc/reference_queue.cc \
65  gc/space/bump_pointer_space.cc \
66  gc/space/dlmalloc_space.cc \
67  gc/space/image_space.cc \
68  gc/space/large_object_space.cc \
69  gc/space/malloc_space.cc \
70  gc/space/rosalloc_space.cc \
71  gc/space/space.cc \
72  gc/space/zygote_space.cc \
73  hprof/hprof.cc \
74  image.cc \
75  indirect_reference_table.cc \
76  instrumentation.cc \
77  intern_table.cc \
78  interpreter/interpreter.cc \
79  interpreter/interpreter_common.cc \
80  interpreter/interpreter_switch_impl.cc \
81  java_vm_ext.cc \
82  jdwp/jdwp_event.cc \
83  jdwp/jdwp_expand_buf.cc \
84  jdwp/jdwp_handler.cc \
85  jdwp/jdwp_main.cc \
86  jdwp/jdwp_request.cc \
87  jdwp/jdwp_socket.cc \
88  jdwp/object_registry.cc \
89  jni_env_ext.cc \
90  jni_internal.cc \
91  jobject_comparator.cc \
92  mem_map.cc \
93  memory_region.cc \
94  method_helper.cc \
95  mirror/art_field.cc \
96  mirror/art_method.cc \
97  mirror/array.cc \
98  mirror/class.cc \
99  mirror/dex_cache.cc \
100  mirror/object.cc \
101  mirror/reference.cc \
102  mirror/stack_trace_element.cc \
103  mirror/string.cc \
104  mirror/throwable.cc \
105  monitor.cc \
106  native_bridge_art_interface.cc \
107  native/dalvik_system_DexFile.cc \
108  native/dalvik_system_VMDebug.cc \
109  native/dalvik_system_VMRuntime.cc \
110  native/dalvik_system_VMStack.cc \
111  native/dalvik_system_ZygoteHooks.cc \
112  native/java_lang_Class.cc \
113  native/java_lang_DexCache.cc \
114  native/java_lang_Object.cc \
115  native/java_lang_Runtime.cc \
116  native/java_lang_String.cc \
117  native/java_lang_System.cc \
118  native/java_lang_Thread.cc \
119  native/java_lang_Throwable.cc \
120  native/java_lang_VMClassLoader.cc \
121  native/java_lang_ref_FinalizerReference.cc \
122  native/java_lang_ref_Reference.cc \
123  native/java_lang_reflect_Array.cc \
124  native/java_lang_reflect_Constructor.cc \
125  native/java_lang_reflect_Field.cc \
126  native/java_lang_reflect_Method.cc \
127  native/java_lang_reflect_Proxy.cc \
128  native/java_util_concurrent_atomic_AtomicLong.cc \
129  native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
130  native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
131  native/sun_misc_Unsafe.cc \
132  oat.cc \
133  oat_file.cc \
134  object_lock.cc \
135  offsets.cc \
136  os_linux.cc \
137  parsed_options.cc \
138  primitive.cc \
139  quick_exception_handler.cc \
140  quick/inline_method_analyser.cc \
141  reference_table.cc \
142  reflection.cc \
143  runtime.cc \
144  signal_catcher.cc \
145  stack.cc \
146  thread.cc \
147  thread_list.cc \
148  thread_pool.cc \
149  throw_location.cc \
150  trace.cc \
151  transaction.cc \
152  profiler.cc \
153  fault_handler.cc \
154  utf.cc \
155  utils.cc \
156  verifier/dex_gc_map.cc \
157  verifier/instruction_flags.cc \
158  verifier/method_verifier.cc \
159  verifier/reg_type.cc \
160  verifier/reg_type_cache.cc \
161  verifier/register_line.cc \
162  well_known_classes.cc \
163  zip_archive.cc
164
165LIBART_COMMON_SRC_FILES += \
166  arch/context.cc \
167  arch/instruction_set.cc \
168  arch/instruction_set_features.cc \
169  arch/memcmp16.cc \
170  arch/arm/instruction_set_features_arm.cc \
171  arch/arm/registers_arm.cc \
172  arch/arm64/instruction_set_features_arm64.cc \
173  arch/arm64/registers_arm64.cc \
174  arch/mips/instruction_set_features_mips.cc \
175  arch/mips/registers_mips.cc \
176  arch/x86/instruction_set_features_x86.cc \
177  arch/x86/registers_x86.cc \
178  arch/x86_64/registers_x86_64.cc \
179  entrypoints/entrypoint_utils.cc \
180  entrypoints/interpreter/interpreter_entrypoints.cc \
181  entrypoints/jni/jni_entrypoints.cc \
182  entrypoints/math_entrypoints.cc \
183  entrypoints/portable/portable_alloc_entrypoints.cc \
184  entrypoints/portable/portable_cast_entrypoints.cc \
185  entrypoints/portable/portable_dexcache_entrypoints.cc \
186  entrypoints/portable/portable_field_entrypoints.cc \
187  entrypoints/portable/portable_fillarray_entrypoints.cc \
188  entrypoints/portable/portable_invoke_entrypoints.cc \
189  entrypoints/portable/portable_jni_entrypoints.cc \
190  entrypoints/portable/portable_lock_entrypoints.cc \
191  entrypoints/portable/portable_thread_entrypoints.cc \
192  entrypoints/portable/portable_throw_entrypoints.cc \
193  entrypoints/portable/portable_trampoline_entrypoints.cc \
194  entrypoints/quick/quick_alloc_entrypoints.cc \
195  entrypoints/quick/quick_cast_entrypoints.cc \
196  entrypoints/quick/quick_deoptimization_entrypoints.cc \
197  entrypoints/quick/quick_dexcache_entrypoints.cc \
198  entrypoints/quick/quick_field_entrypoints.cc \
199  entrypoints/quick/quick_fillarray_entrypoints.cc \
200  entrypoints/quick/quick_instrumentation_entrypoints.cc \
201  entrypoints/quick/quick_jni_entrypoints.cc \
202  entrypoints/quick/quick_lock_entrypoints.cc \
203  entrypoints/quick/quick_math_entrypoints.cc \
204  entrypoints/quick/quick_thread_entrypoints.cc \
205  entrypoints/quick/quick_throw_entrypoints.cc \
206  entrypoints/quick/quick_trampoline_entrypoints.cc
207
208# Source files that only compile with GCC.
209LIBART_GCC_ONLY_SRC_FILES := \
210  interpreter/interpreter_goto_table_impl.cc
211
212LIBART_TARGET_LDFLAGS :=
213LIBART_HOST_LDFLAGS :=
214
215LIBART_TARGET_SRC_FILES := \
216  $(LIBART_COMMON_SRC_FILES) \
217  jdwp/jdwp_adb.cc \
218  monitor_android.cc \
219  runtime_android.cc \
220  thread_android.cc
221
222LIBART_TARGET_SRC_FILES_arm := \
223  arch/arm/context_arm.cc.arm \
224  arch/arm/entrypoints_init_arm.cc \
225  arch/arm/instruction_set_features_assembly_tests.S \
226  arch/arm/jni_entrypoints_arm.S \
227  arch/arm/memcmp16_arm.S \
228  arch/arm/portable_entrypoints_arm.S \
229  arch/arm/quick_entrypoints_arm.S \
230  arch/arm/quick_entrypoints_cc_arm.cc \
231  arch/arm/thread_arm.cc \
232  arch/arm/fault_handler_arm.cc
233
234LIBART_TARGET_SRC_FILES_arm64 := \
235  arch/arm64/context_arm64.cc \
236  arch/arm64/entrypoints_init_arm64.cc \
237  arch/arm64/jni_entrypoints_arm64.S \
238  arch/arm64/memcmp16_arm64.S \
239  arch/arm64/portable_entrypoints_arm64.S \
240  arch/arm64/quick_entrypoints_arm64.S \
241  arch/arm64/thread_arm64.cc \
242  monitor_pool.cc \
243  arch/arm64/fault_handler_arm64.cc
244
245LIBART_SRC_FILES_x86 := \
246  arch/x86/context_x86.cc \
247  arch/x86/entrypoints_init_x86.cc \
248  arch/x86/jni_entrypoints_x86.S \
249  arch/x86/memcmp16_x86.S \
250  arch/x86/portable_entrypoints_x86.S \
251  arch/x86/quick_entrypoints_x86.S \
252  arch/x86/thread_x86.cc \
253  arch/x86/fault_handler_x86.cc
254
255LIBART_TARGET_SRC_FILES_x86 := \
256  $(LIBART_SRC_FILES_x86)
257
258# Note that the fault_handler_x86.cc is not a mistake.  This file is
259# shared between the x86 and x86_64 architectures.
260LIBART_SRC_FILES_x86_64 := \
261  arch/x86_64/context_x86_64.cc \
262  arch/x86_64/entrypoints_init_x86_64.cc \
263  arch/x86_64/jni_entrypoints_x86_64.S \
264  arch/x86_64/memcmp16_x86_64.S \
265  arch/x86_64/portable_entrypoints_x86_64.S \
266  arch/x86_64/quick_entrypoints_x86_64.S \
267  arch/x86_64/thread_x86_64.cc \
268  monitor_pool.cc \
269  arch/x86/fault_handler_x86.cc
270
271LIBART_TARGET_SRC_FILES_x86_64 := \
272  $(LIBART_SRC_FILES_x86_64) \
273
274LIBART_TARGET_SRC_FILES_mips := \
275  arch/mips/context_mips.cc \
276  arch/mips/entrypoints_init_mips.cc \
277  arch/mips/jni_entrypoints_mips.S \
278  arch/mips/memcmp16_mips.S \
279  arch/mips/portable_entrypoints_mips.S \
280  arch/mips/quick_entrypoints_mips.S \
281  arch/mips/thread_mips.cc \
282  arch/mips/fault_handler_mips.cc
283
284ifeq ($(TARGET_ARCH),mips64)
285$(info TODOMips64: $(LOCAL_PATH)/Android.mk Add mips64 specific runtime files)
286endif # TARGET_ARCH != mips64
287
288LIBART_HOST_SRC_FILES := \
289  $(LIBART_COMMON_SRC_FILES) \
290  monitor_linux.cc \
291  runtime_linux.cc \
292  thread_linux.cc
293
294LIBART_HOST_SRC_FILES_32 := \
295  $(LIBART_SRC_FILES_x86)
296
297LIBART_HOST_SRC_FILES_64 := \
298  $(LIBART_SRC_FILES_x86_64)
299
300LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \
301  arch/instruction_set.h \
302  base/allocator.h \
303  base/mutex.h \
304  debugger.h \
305  base/unix_file/fd_file.h \
306  dex_file.h \
307  dex_instruction.h \
308  gc/allocator/rosalloc.h \
309  gc/collector/gc_type.h \
310  gc/allocator_type.h \
311  gc/collector_type.h \
312  gc/space/space.h \
313  gc/heap.h \
314  instrumentation.h \
315  indirect_reference_table.h \
316  invoke_type.h \
317  jdwp/jdwp.h \
318  jdwp/jdwp_constants.h \
319  lock_word.h \
320  mirror/class.h \
321  oat.h \
322  object_callbacks.h \
323  profiler_options.h \
324  quick/inline_method_analyser.h \
325  runtime.h \
326  stack.h \
327  thread.h \
328  thread_state.h \
329  verifier/method_verifier.h
330
331LIBART_CFLAGS := -DBUILDING_LIBART=1
332ifeq ($(ART_USE_PORTABLE_COMPILER),true)
333  LIBART_CFLAGS += -DART_USE_PORTABLE_COMPILER=1
334endif
335
336ifeq ($(MALLOC_IMPL),dlmalloc)
337  LIBART_CFLAGS += -DUSE_DLMALLOC
338else
339  LIBART_CFLAGS += -DUSE_JEMALLOC
340endif
341
342# Default dex2oat instruction set features.
343LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := default
344LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
3452ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
346ifeq ($(DEX2OAT_TARGET_ARCH),arm)
347  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
348    LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
349  else
350    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
351      LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
352    endif
353  endif
354endif
355ifeq ($(2ND_DEX2OAT_TARGET_ARCH),arm)
356  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
357    2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
358  else
359    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
360      2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
361    endif
362  endif
363endif
364
365# $(1): target or host
366# $(2): ndebug or debug
367define build-libart
368  ifneq ($(1),target)
369    ifneq ($(1),host)
370      $$(error expected target or host for argument 1, received $(1))
371    endif
372  endif
373  ifneq ($(2),ndebug)
374    ifneq ($(2),debug)
375      $$(error expected ndebug or debug for argument 2, received $(2))
376    endif
377  endif
378
379  art_target_or_host := $(1)
380  art_ndebug_or_debug := $(2)
381
382  include $$(CLEAR_VARS)
383  # Clang assembler has problem with macros in asm_support_x86.S, http://b/17443165,
384  # on linux. Yet sdk on mac needs integrated assembler.
385  ifeq ($$(HOST_OS),darwin)
386    LOCAL_CLANG_ASFLAGS += -integrated-as
387  else
388    LOCAL_CLANG_ASFLAGS += -no-integrated-as
389  endif
390  LOCAL_CPP_EXTENSION := $$(ART_CPP_EXTENSION)
391  ifeq ($$(art_ndebug_or_debug),ndebug)
392    LOCAL_MODULE := libart
393    LOCAL_FDO_SUPPORT := true
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)
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))))
405  else # host
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)
409    LOCAL_IS_HOST_MODULE := true
410  endif
411
412  GENERATED_SRC_DIR := $$(call local-generated-sources-dir)
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
423  LOCAL_CFLAGS := $$(LIBART_CFLAGS)
424  LOCAL_LDFLAGS := $$(LIBART_LDFLAGS)
425  ifeq ($$(art_target_or_host),target)
426    LOCAL_LDFLAGS += $$(LIBART_TARGET_LDFLAGS)
427  else
428    LOCAL_LDFLAGS += $$(LIBART_HOST_LDFLAGS)
429  endif
430  $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \
431    $$(eval LOCAL_LDFLAGS_$$(arch) := $$(LIBART_TARGET_LDFLAGS_$$(arch))))
432
433  # Clang usage
434  ifeq ($$(art_target_or_host),target)
435    $$(eval $$(call set-target-local-clang-vars))
436    $$(eval $$(call set-target-local-cflags-vars,$(2)))
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)"
439
440    # TODO: Loop with ifeq, ART_TARGET_CLANG
441    ifneq ($$(ART_TARGET_CLANG_$$(TARGET_ARCH)),true)
442      LOCAL_SRC_FILES_$$(TARGET_ARCH) += $$(LIBART_GCC_ONLY_SRC_FILES)
443    endif
444    ifneq ($$(ART_TARGET_CLANG_$$(TARGET_2ND_ARCH)),true)
445      LOCAL_SRC_FILES_$$(TARGET_2ND_ARCH) += $$(LIBART_GCC_ONLY_SRC_FILES)
446    endif
447  else # host
448    ifneq ($$(ART_HOST_CLANG),true)
449      # Add files only built with GCC on the host.
450      LOCAL_SRC_FILES += $$(LIBART_GCC_ONLY_SRC_FILES)
451    endif
452    LOCAL_CLANG := $$(ART_HOST_CLANG)
453    LOCAL_LDLIBS := $$(ART_HOST_LDLIBS)
454    LOCAL_LDLIBS += -ldl -lpthread
455    ifeq ($$(HOST_OS),linux)
456      LOCAL_LDLIBS += -lrt
457    endif
458    LOCAL_CFLAGS += $$(ART_HOST_CFLAGS)
459    LOCAL_CFLAGS += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES)"
460
461    ifeq ($$(art_ndebug_or_debug),debug)
462      LOCAL_CFLAGS += $$(ART_HOST_DEBUG_CFLAGS)
463    else
464      LOCAL_CFLAGS += $$(ART_HOST_NON_DEBUG_CFLAGS)
465    endif
466    LOCAL_MULTILIB := both
467  endif
468
469  LOCAL_C_INCLUDES += $$(ART_C_INCLUDES)
470  LOCAL_C_INCLUDES += art/sigchainlib
471
472  LOCAL_SHARED_LIBRARIES := libnativehelper libnativebridge libsigchain
473  include external/libcxx/libcxx.mk
474  LOCAL_SHARED_LIBRARIES += libbacktrace
475  ifeq ($$(art_target_or_host),target)
476    LOCAL_SHARED_LIBRARIES += libdl
477    # ZipArchive support, the order matters here to get all symbols.
478    LOCAL_STATIC_LIBRARIES := libziparchive libz
479    # For android::FileMap used by libziparchive.
480    LOCAL_SHARED_LIBRARIES += libutils
481    # For liblog, atrace, properties, ashmem, set_sched_policy and socket_peer_is_trusted.
482    LOCAL_SHARED_LIBRARIES += libcutils
483  else # host
484    LOCAL_SHARED_LIBRARIES += libziparchive-host
485    # For ashmem_create_region.
486    LOCAL_STATIC_LIBRARIES += libcutils
487  endif
488  ifeq ($$(ART_USE_PORTABLE_COMPILER),true)
489    include $$(LLVM_GEN_INTRINSICS_MK)
490    ifeq ($$(art_target_or_host),target)
491      include $$(LLVM_DEVICE_BUILD_MK)
492    else # host
493      include $$(LLVM_HOST_BUILD_MK)
494    endif
495  endif
496  LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk
497  LOCAL_ADDITIONAL_DEPENDENCIES += $$(LOCAL_PATH)/Android.mk
498
499  ifeq ($$(art_target_or_host),target)
500    LOCAL_MODULE_TARGET_ARCH := $$(ART_TARGET_SUPPORTED_ARCH)
501  endif
502
503  ifeq ($$(art_target_or_host),target)
504    ifneq ($$(art_ndebug_or_debug),debug)
505      # Leave the symbols in the shared library so that stack unwinders can
506      # produce meaningful name resolution.
507      LOCAL_STRIP_MODULE := keep_symbols
508    endif
509    include $$(BUILD_SHARED_LIBRARY)
510  else # host
511    include $$(BUILD_HOST_SHARED_LIBRARY)
512  endif
513
514  # Clear locally defined variables.
515  GENERATED_SRC_DIR :=
516  ENUM_OPERATOR_OUT_CC_FILES :=
517  ENUM_OPERATOR_OUT_GEN :=
518  art_target_or_host :=
519  art_ndebug_or_debug :=
520endef
521
522# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since
523# they are used to cross compile for the target.
524ifeq ($(ART_BUILD_HOST_NDEBUG),true)
525  $(eval $(call build-libart,host,ndebug))
526endif
527ifeq ($(ART_BUILD_HOST_DEBUG),true)
528  $(eval $(call build-libart,host,debug))
529endif
530
531ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
532#  $(error $(call build-libart,target,ndebug))
533  $(eval $(call build-libart,target,ndebug))
534endif
535ifeq ($(ART_BUILD_TARGET_DEBUG),true)
536  $(eval $(call build-libart,target,debug))
537endif
538
539# Clear locally defined variables.
540LOCAL_PATH :=
541LIBART_COMMON_SRC_FILES :=
542LIBART_GCC_ONLY_SRC_FILES :=
543LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES :=
544LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
5452ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
546LIBART_TARGET_LDFLAGS :=
547LIBART_HOST_LDFLAGS :=
548LIBART_TARGET_SRC_FILES :=
549LIBART_TARGET_SRC_FILES_arm :=
550LIBART_TARGET_SRC_FILES_arm64 :=
551LIBART_TARGET_SRC_FILES_x86 :=
552LIBART_TARGET_SRC_FILES_x86_64 :=
553LIBART_TARGET_SRC_FILES_mips :=
554LIBART_HOST_SRC_FILES :=
555LIBART_HOST_SRC_FILES_32 :=
556LIBART_HOST_SRC_FILES_64 :=
557LIBART_ENUM_OPERATOR_OUT_HEADER_FILES :=
558LIBART_CFLAGS :=
559build-libart :=
560