Android.mk revision b5fb207ed5e3570ec14e18811b3fa066168fe493
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  gc/allocator/dlmalloc.cc \
46  gc/allocator/rosalloc.cc \
47  gc/accounting/card_table.cc \
48  gc/accounting/heap_bitmap.cc \
49  gc/accounting/mod_union_table.cc \
50  gc/accounting/remembered_set.cc \
51  gc/accounting/space_bitmap.cc \
52  gc/collector/concurrent_copying.cc \
53  gc/collector/garbage_collector.cc \
54  gc/collector/immune_region.cc \
55  gc/collector/mark_compact.cc \
56  gc/collector/mark_sweep.cc \
57  gc/collector/partial_mark_sweep.cc \
58  gc/collector/semi_space.cc \
59  gc/collector/sticky_mark_sweep.cc \
60  gc/gc_cause.cc \
61  gc/heap.cc \
62  gc/reference_processor.cc \
63  gc/reference_queue.cc \
64  gc/space/bump_pointer_space.cc \
65  gc/space/dlmalloc_space.cc \
66  gc/space/image_space.cc \
67  gc/space/large_object_space.cc \
68  gc/space/malloc_space.cc \
69  gc/space/rosalloc_space.cc \
70  gc/space/space.cc \
71  gc/space/zygote_space.cc \
72  hprof/hprof.cc \
73  image.cc \
74  indirect_reference_table.cc \
75  instrumentation.cc \
76  intern_table.cc \
77  interpreter/interpreter.cc \
78  interpreter/interpreter_common.cc \
79  interpreter/interpreter_switch_impl.cc \
80  java_vm_ext.cc \
81  jdwp/jdwp_event.cc \
82  jdwp/jdwp_expand_buf.cc \
83  jdwp/jdwp_handler.cc \
84  jdwp/jdwp_main.cc \
85  jdwp/jdwp_request.cc \
86  jdwp/jdwp_socket.cc \
87  jdwp/object_registry.cc \
88  jni_env_ext.cc \
89  jni_internal.cc \
90  jobject_comparator.cc \
91  mem_map.cc \
92  memory_region.cc \
93  mirror/art_field.cc \
94  mirror/art_method.cc \
95  mirror/array.cc \
96  mirror/class.cc \
97  mirror/dex_cache.cc \
98  mirror/object.cc \
99  mirror/reference.cc \
100  mirror/stack_trace_element.cc \
101  mirror/string.cc \
102  mirror/throwable.cc \
103  monitor.cc \
104  native_bridge_art_interface.cc \
105  native/dalvik_system_DexFile.cc \
106  native/dalvik_system_VMDebug.cc \
107  native/dalvik_system_VMRuntime.cc \
108  native/dalvik_system_VMStack.cc \
109  native/dalvik_system_ZygoteHooks.cc \
110  native/java_lang_Class.cc \
111  native/java_lang_DexCache.cc \
112  native/java_lang_Object.cc \
113  native/java_lang_Runtime.cc \
114  native/java_lang_String.cc \
115  native/java_lang_System.cc \
116  native/java_lang_Thread.cc \
117  native/java_lang_Throwable.cc \
118  native/java_lang_VMClassLoader.cc \
119  native/java_lang_ref_FinalizerReference.cc \
120  native/java_lang_ref_Reference.cc \
121  native/java_lang_reflect_Array.cc \
122  native/java_lang_reflect_Constructor.cc \
123  native/java_lang_reflect_Field.cc \
124  native/java_lang_reflect_Method.cc \
125  native/java_lang_reflect_Proxy.cc \
126  native/java_util_concurrent_atomic_AtomicLong.cc \
127  native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \
128  native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \
129  native/sun_misc_Unsafe.cc \
130  oat.cc \
131  oat_file.cc \
132  object_lock.cc \
133  offsets.cc \
134  os_linux.cc \
135  parsed_options.cc \
136  primitive.cc \
137  quick_exception_handler.cc \
138  quick/inline_method_analyser.cc \
139  reference_table.cc \
140  reflection.cc \
141  runtime.cc \
142  signal_catcher.cc \
143  stack.cc \
144  thread.cc \
145  thread_list.cc \
146  thread_pool.cc \
147  throw_location.cc \
148  trace.cc \
149  transaction.cc \
150  profiler.cc \
151  fault_handler.cc \
152  utf.cc \
153  utils.cc \
154  verifier/dex_gc_map.cc \
155  verifier/instruction_flags.cc \
156  verifier/method_verifier.cc \
157  verifier/reg_type.cc \
158  verifier/reg_type_cache.cc \
159  verifier/register_line.cc \
160  well_known_classes.cc \
161  zip_archive.cc
162
163LIBART_COMMON_SRC_FILES += \
164  arch/context.cc \
165  arch/instruction_set.cc \
166  arch/instruction_set_features.cc \
167  arch/memcmp16.cc \
168  arch/arm/instruction_set_features_arm.cc \
169  arch/arm/registers_arm.cc \
170  arch/arm64/instruction_set_features_arm64.cc \
171  arch/arm64/registers_arm64.cc \
172  arch/mips/instruction_set_features_mips.cc \
173  arch/mips/registers_mips.cc \
174  arch/x86/instruction_set_features_x86.cc \
175  arch/x86/registers_x86.cc \
176  arch/x86_64/registers_x86_64.cc \
177  entrypoints/entrypoint_utils.cc \
178  entrypoints/interpreter/interpreter_entrypoints.cc \
179  entrypoints/jni/jni_entrypoints.cc \
180  entrypoints/math_entrypoints.cc \
181  entrypoints/portable/portable_alloc_entrypoints.cc \
182  entrypoints/portable/portable_cast_entrypoints.cc \
183  entrypoints/portable/portable_dexcache_entrypoints.cc \
184  entrypoints/portable/portable_field_entrypoints.cc \
185  entrypoints/portable/portable_fillarray_entrypoints.cc \
186  entrypoints/portable/portable_invoke_entrypoints.cc \
187  entrypoints/portable/portable_jni_entrypoints.cc \
188  entrypoints/portable/portable_lock_entrypoints.cc \
189  entrypoints/portable/portable_thread_entrypoints.cc \
190  entrypoints/portable/portable_throw_entrypoints.cc \
191  entrypoints/portable/portable_trampoline_entrypoints.cc \
192  entrypoints/quick/quick_alloc_entrypoints.cc \
193  entrypoints/quick/quick_cast_entrypoints.cc \
194  entrypoints/quick/quick_deoptimization_entrypoints.cc \
195  entrypoints/quick/quick_dexcache_entrypoints.cc \
196  entrypoints/quick/quick_field_entrypoints.cc \
197  entrypoints/quick/quick_fillarray_entrypoints.cc \
198  entrypoints/quick/quick_instrumentation_entrypoints.cc \
199  entrypoints/quick/quick_jni_entrypoints.cc \
200  entrypoints/quick/quick_lock_entrypoints.cc \
201  entrypoints/quick/quick_math_entrypoints.cc \
202  entrypoints/quick/quick_thread_entrypoints.cc \
203  entrypoints/quick/quick_throw_entrypoints.cc \
204  entrypoints/quick/quick_trampoline_entrypoints.cc
205
206# Source files that only compile with GCC.
207LIBART_GCC_ONLY_SRC_FILES := \
208  interpreter/interpreter_goto_table_impl.cc
209
210LIBART_TARGET_LDFLAGS :=
211LIBART_HOST_LDFLAGS :=
212
213LIBART_TARGET_SRC_FILES := \
214  $(LIBART_COMMON_SRC_FILES) \
215  jdwp/jdwp_adb.cc \
216  monitor_android.cc \
217  runtime_android.cc \
218  thread_android.cc
219
220LIBART_TARGET_SRC_FILES_arm := \
221  arch/arm/context_arm.cc.arm \
222  arch/arm/entrypoints_init_arm.cc \
223  arch/arm/instruction_set_features_assembly_tests.S \
224  arch/arm/jni_entrypoints_arm.S \
225  arch/arm/memcmp16_arm.S \
226  arch/arm/portable_entrypoints_arm.S \
227  arch/arm/quick_entrypoints_arm.S \
228  arch/arm/quick_entrypoints_cc_arm.cc \
229  arch/arm/thread_arm.cc \
230  arch/arm/fault_handler_arm.cc
231
232LIBART_TARGET_SRC_FILES_arm64 := \
233  arch/arm64/context_arm64.cc \
234  arch/arm64/entrypoints_init_arm64.cc \
235  arch/arm64/jni_entrypoints_arm64.S \
236  arch/arm64/memcmp16_arm64.S \
237  arch/arm64/portable_entrypoints_arm64.S \
238  arch/arm64/quick_entrypoints_arm64.S \
239  arch/arm64/thread_arm64.cc \
240  monitor_pool.cc \
241  arch/arm64/fault_handler_arm64.cc
242
243LIBART_SRC_FILES_x86 := \
244  arch/x86/context_x86.cc \
245  arch/x86/entrypoints_init_x86.cc \
246  arch/x86/jni_entrypoints_x86.S \
247  arch/x86/memcmp16_x86.S \
248  arch/x86/portable_entrypoints_x86.S \
249  arch/x86/quick_entrypoints_x86.S \
250  arch/x86/thread_x86.cc \
251  arch/x86/fault_handler_x86.cc
252
253LIBART_TARGET_SRC_FILES_x86 := \
254  $(LIBART_SRC_FILES_x86)
255
256# Note that the fault_handler_x86.cc is not a mistake.  This file is
257# shared between the x86 and x86_64 architectures.
258LIBART_SRC_FILES_x86_64 := \
259  arch/x86_64/context_x86_64.cc \
260  arch/x86_64/entrypoints_init_x86_64.cc \
261  arch/x86_64/jni_entrypoints_x86_64.S \
262  arch/x86_64/memcmp16_x86_64.S \
263  arch/x86_64/portable_entrypoints_x86_64.S \
264  arch/x86_64/quick_entrypoints_x86_64.S \
265  arch/x86_64/thread_x86_64.cc \
266  monitor_pool.cc \
267  arch/x86/fault_handler_x86.cc
268
269LIBART_TARGET_SRC_FILES_x86_64 := \
270  $(LIBART_SRC_FILES_x86_64) \
271
272LIBART_TARGET_SRC_FILES_mips := \
273  arch/mips/context_mips.cc \
274  arch/mips/entrypoints_init_mips.cc \
275  arch/mips/jni_entrypoints_mips.S \
276  arch/mips/memcmp16_mips.S \
277  arch/mips/portable_entrypoints_mips.S \
278  arch/mips/quick_entrypoints_mips.S \
279  arch/mips/thread_mips.cc \
280  arch/mips/fault_handler_mips.cc
281
282ifeq ($(TARGET_ARCH),mips64)
283$(info TODOMips64: $(LOCAL_PATH)/Android.mk Add mips64 specific runtime files)
284endif # TARGET_ARCH != mips64
285
286LIBART_HOST_SRC_FILES := \
287  $(LIBART_COMMON_SRC_FILES) \
288  monitor_linux.cc \
289  runtime_linux.cc \
290  thread_linux.cc
291
292LIBART_HOST_SRC_FILES_32 := \
293  $(LIBART_SRC_FILES_x86)
294
295LIBART_HOST_SRC_FILES_64 := \
296  $(LIBART_SRC_FILES_x86_64)
297
298LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \
299  arch/instruction_set.h \
300  base/allocator.h \
301  base/mutex.h \
302  debugger.h \
303  base/unix_file/fd_file.h \
304  dex_file.h \
305  dex_instruction.h \
306  gc/allocator/rosalloc.h \
307  gc/collector/gc_type.h \
308  gc/allocator_type.h \
309  gc/collector_type.h \
310  gc/space/space.h \
311  gc/heap.h \
312  instrumentation.h \
313  indirect_reference_table.h \
314  invoke_type.h \
315  jdwp/jdwp.h \
316  jdwp/jdwp_constants.h \
317  lock_word.h \
318  mirror/class.h \
319  oat.h \
320  object_callbacks.h \
321  profiler_options.h \
322  quick/inline_method_analyser.h \
323  runtime.h \
324  stack.h \
325  thread.h \
326  thread_state.h \
327  verifier/method_verifier.h
328
329LIBART_CFLAGS := -DBUILDING_LIBART=1
330ifeq ($(ART_USE_PORTABLE_COMPILER),true)
331  LIBART_CFLAGS += -DART_USE_PORTABLE_COMPILER=1
332endif
333
334ifeq ($(MALLOC_IMPL),dlmalloc)
335  LIBART_CFLAGS += -DUSE_DLMALLOC
336else
337  LIBART_CFLAGS += -DUSE_JEMALLOC
338endif
339
340# Default dex2oat instruction set features.
341LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := default
342LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
3432ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
344ifeq ($(DEX2OAT_TARGET_ARCH),arm)
345  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
346    LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
347  else
348    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
349      LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
350    endif
351  endif
352endif
353ifeq ($(2ND_DEX2OAT_TARGET_ARCH),arm)
354  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
355    2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := atomic_ldrd_strd,div
356  else
357    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
358      2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
359    endif
360  endif
361endif
362
363# $(1): target or host
364# $(2): ndebug or debug
365define 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
380  include $$(CLEAR_VARS)
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
388  LOCAL_CPP_EXTENSION := $$(ART_CPP_EXTENSION)
389  ifeq ($$(art_ndebug_or_debug),ndebug)
390    LOCAL_MODULE := libart
391    ifeq ($$(art_target_or_host),target)
392      LOCAL_FDO_SUPPORT := true
393    endif
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