Android.mk revision d582fa4ea62083a7598dded5b82dc2198b3daac7
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  dex_file.h \
306  dex_instruction.h \
307  gc/allocator/rosalloc.h \
308  gc/collector/gc_type.h \
309  gc/allocator_type.h \
310  gc/collector_type.h \
311  gc/space/space.h \
312  gc/heap.h \
313  instrumentation.h \
314  indirect_reference_table.h \
315  invoke_type.h \
316  jdwp/jdwp.h \
317  jdwp/jdwp_constants.h \
318  lock_word.h \
319  mirror/class.h \
320  oat.h \
321  object_callbacks.h \
322  profiler_options.h \
323  quick/inline_method_analyser.h \
324  runtime.h \
325  stack.h \
326  thread.h \
327  thread_state.h \
328  verifier/method_verifier.h
329
330LIBART_CFLAGS := -DBUILDING_LIBART=1
331ifeq ($(ART_USE_PORTABLE_COMPILER),true)
332  LIBART_CFLAGS += -DART_USE_PORTABLE_COMPILER=1
333endif
334
335ifeq ($(MALLOC_IMPL),dlmalloc)
336  LIBART_CFLAGS += -DUSE_DLMALLOC
337else
338  LIBART_CFLAGS += -DUSE_JEMALLOC
339endif
340
341# Default dex2oat instruction set features.
342LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := default
343LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
3442ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := default
345ifeq ($(DEX2OAT_TARGET_ARCH),arm)
346  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
347    LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := lpae,div
348  else
349    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
350      LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
351    endif
352  endif
353endif
354ifeq ($(2ND_DEX2OAT_TARGET_ARCH),arm)
355  ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a15 krait denver))
356    2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := lpae,div
357  else
358    ifneq (,$(filter $(DEX2OAT_TARGET_CPU_VARIANT),cortex-a7))
359      2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := div
360    endif
361  endif
362endif
363
364# $(1): target or host
365# $(2): ndebug or debug
366define build-libart
367  ifneq ($(1),target)
368    ifneq ($(1),host)
369      $$(error expected target or host for argument 1, received $(1))
370    endif
371  endif
372  ifneq ($(2),ndebug)
373    ifneq ($(2),debug)
374      $$(error expected ndebug or debug for argument 2, received $(2))
375    endif
376  endif
377
378  art_target_or_host := $(1)
379  art_ndebug_or_debug := $(2)
380
381  include $$(CLEAR_VARS)
382  # Clang assembler has problem with macros in asm_support_x86.S, http://b/17443165,
383  # on linux. Yet sdk on mac needs integrated assembler.
384  ifeq ($$(HOST_OS),darwin)
385    LOCAL_CLANG_ASFLAGS += -integrated-as
386  else
387    LOCAL_CLANG_ASFLAGS += -no-integrated-as
388  endif
389  LOCAL_CPP_EXTENSION := $$(ART_CPP_EXTENSION)
390  ifeq ($$(art_ndebug_or_debug),ndebug)
391    LOCAL_MODULE := libart
392    LOCAL_FDO_SUPPORT := true
393  else # debug
394    LOCAL_MODULE := libartd
395  endif
396
397  LOCAL_MODULE_TAGS := optional
398  LOCAL_MODULE_CLASS := SHARED_LIBRARIES
399
400  ifeq ($$(art_target_or_host),target)
401    LOCAL_SRC_FILES := $$(LIBART_TARGET_SRC_FILES)
402    $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \
403      $$(eval LOCAL_SRC_FILES_$$(arch) := $$$$(LIBART_TARGET_SRC_FILES_$$(arch))))
404  else # host
405    LOCAL_SRC_FILES := $$(LIBART_HOST_SRC_FILES)
406    LOCAL_SRC_FILES_32 := $$(LIBART_HOST_SRC_FILES_32)
407    LOCAL_SRC_FILES_64 := $$(LIBART_HOST_SRC_FILES_64)
408    LOCAL_IS_HOST_MODULE := true
409  endif
410
411  GENERATED_SRC_DIR := $$(call local-generated-sources-dir)
412  ENUM_OPERATOR_OUT_CC_FILES := $$(patsubst %.h,%_operator_out.cc,$$(LIBART_ENUM_OPERATOR_OUT_HEADER_FILES))
413  ENUM_OPERATOR_OUT_GEN := $$(addprefix $$(GENERATED_SRC_DIR)/,$$(ENUM_OPERATOR_OUT_CC_FILES))
414
415$$(ENUM_OPERATOR_OUT_GEN): art/tools/generate-operator-out.py
416$$(ENUM_OPERATOR_OUT_GEN): PRIVATE_CUSTOM_TOOL = art/tools/generate-operator-out.py $(LOCAL_PATH) $$< > $$@
417$$(ENUM_OPERATOR_OUT_GEN): $$(GENERATED_SRC_DIR)/%_operator_out.cc : $(LOCAL_PATH)/%.h
418	$$(transform-generated-source)
419
420  LOCAL_GENERATED_SOURCES += $$(ENUM_OPERATOR_OUT_GEN)
421
422  LOCAL_CFLAGS := $$(LIBART_CFLAGS)
423  LOCAL_LDFLAGS := $$(LIBART_LDFLAGS)
424  ifeq ($$(art_target_or_host),target)
425    LOCAL_LDFLAGS += $$(LIBART_TARGET_LDFLAGS)
426  else
427    LOCAL_LDFLAGS += $$(LIBART_HOST_LDFLAGS)
428  endif
429  $$(foreach arch,$$(ART_TARGET_SUPPORTED_ARCH), \
430    $$(eval LOCAL_LDFLAGS_$$(arch) := $$(LIBART_TARGET_LDFLAGS_$$(arch))))
431
432  # Clang usage
433  ifeq ($$(art_target_or_host),target)
434    $$(eval $$(call set-target-local-clang-vars))
435    $$(eval $$(call set-target-local-cflags-vars,$(2)))
436    LOCAL_CFLAGS_$(DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)"
437    LOCAL_CFLAGS_$(2ND_DEX2OAT_TARGET_ARCH) += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(2ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES)"
438
439    # TODO: Loop with ifeq, ART_TARGET_CLANG
440    ifneq ($$(ART_TARGET_CLANG_$$(TARGET_ARCH)),true)
441      LOCAL_SRC_FILES_$$(TARGET_ARCH) += $$(LIBART_GCC_ONLY_SRC_FILES)
442    endif
443    ifneq ($$(ART_TARGET_CLANG_$$(TARGET_2ND_ARCH)),true)
444      LOCAL_SRC_FILES_$$(TARGET_2ND_ARCH) += $$(LIBART_GCC_ONLY_SRC_FILES)
445    endif
446  else # host
447    ifneq ($$(ART_HOST_CLANG),true)
448      # Add files only built with GCC on the host.
449      LOCAL_SRC_FILES += $$(LIBART_GCC_ONLY_SRC_FILES)
450    endif
451    LOCAL_CLANG := $$(ART_HOST_CLANG)
452    LOCAL_LDLIBS := $$(ART_HOST_LDLIBS)
453    LOCAL_LDLIBS += -ldl -lpthread
454    ifeq ($$(HOST_OS),linux)
455      LOCAL_LDLIBS += -lrt
456    endif
457    LOCAL_CFLAGS += $$(ART_HOST_CFLAGS)
458    LOCAL_CFLAGS += -DART_DEFAULT_INSTRUCTION_SET_FEATURES="$(LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES)"
459
460    ifeq ($$(art_ndebug_or_debug),debug)
461      LOCAL_CFLAGS += $$(ART_HOST_DEBUG_CFLAGS)
462    else
463      LOCAL_CFLAGS += $$(ART_HOST_NON_DEBUG_CFLAGS)
464    endif
465    LOCAL_MULTILIB := both
466  endif
467
468  LOCAL_C_INCLUDES += $$(ART_C_INCLUDES)
469  LOCAL_C_INCLUDES += art/sigchainlib
470
471  LOCAL_SHARED_LIBRARIES := libnativehelper libnativebridge libsigchain
472  include external/libcxx/libcxx.mk
473  LOCAL_SHARED_LIBRARIES += libbacktrace
474  ifeq ($$(art_target_or_host),target)
475    LOCAL_SHARED_LIBRARIES += libdl
476    # ZipArchive support, the order matters here to get all symbols.
477    LOCAL_STATIC_LIBRARIES := libziparchive libz
478    # For android::FileMap used by libziparchive.
479    LOCAL_SHARED_LIBRARIES += libutils
480    # For liblog, atrace, properties, ashmem, set_sched_policy and socket_peer_is_trusted.
481    LOCAL_SHARED_LIBRARIES += libcutils
482  else # host
483    LOCAL_SHARED_LIBRARIES += libziparchive-host
484    # For ashmem_create_region.
485    LOCAL_STATIC_LIBRARIES += libcutils
486  endif
487  ifeq ($$(ART_USE_PORTABLE_COMPILER),true)
488    include $$(LLVM_GEN_INTRINSICS_MK)
489    ifeq ($$(art_target_or_host),target)
490      include $$(LLVM_DEVICE_BUILD_MK)
491    else # host
492      include $$(LLVM_HOST_BUILD_MK)
493    endif
494  endif
495  LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk
496  LOCAL_ADDITIONAL_DEPENDENCIES += $$(LOCAL_PATH)/Android.mk
497
498  ifeq ($$(art_target_or_host),target)
499    LOCAL_MODULE_TARGET_ARCH := $$(ART_TARGET_SUPPORTED_ARCH)
500  endif
501
502  ifeq ($$(art_target_or_host),target)
503    ifneq ($$(art_ndebug_or_debug),debug)
504      # Leave the symbols in the shared library so that stack unwinders can
505      # produce meaningful name resolution.
506      LOCAL_STRIP_MODULE := keep_symbols
507    endif
508    include $$(BUILD_SHARED_LIBRARY)
509  else # host
510    include $$(BUILD_HOST_SHARED_LIBRARY)
511  endif
512
513  # Clear locally defined variables.
514  GENERATED_SRC_DIR :=
515  ENUM_OPERATOR_OUT_CC_FILES :=
516  ENUM_OPERATOR_OUT_GEN :=
517  art_target_or_host :=
518  art_ndebug_or_debug :=
519endef
520
521# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since
522# they are used to cross compile for the target.
523ifeq ($(ART_BUILD_HOST_NDEBUG),true)
524  $(eval $(call build-libart,host,ndebug))
525endif
526ifeq ($(ART_BUILD_HOST_DEBUG),true)
527  $(eval $(call build-libart,host,debug))
528endif
529
530ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
531#  $(error $(call build-libart,target,ndebug))
532  $(eval $(call build-libart,target,ndebug))
533endif
534ifeq ($(ART_BUILD_TARGET_DEBUG),true)
535  $(eval $(call build-libart,target,debug))
536endif
537
538# Clear locally defined variables.
539LOCAL_PATH :=
540LIBART_COMMON_SRC_FILES :=
541LIBART_GCC_ONLY_SRC_FILES :=
542LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES :=
543LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
5442ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES :=
545LIBART_TARGET_LDFLAGS :=
546LIBART_HOST_LDFLAGS :=
547LIBART_TARGET_SRC_FILES :=
548LIBART_TARGET_SRC_FILES_arm :=
549LIBART_TARGET_SRC_FILES_arm64 :=
550LIBART_TARGET_SRC_FILES_x86 :=
551LIBART_TARGET_SRC_FILES_x86_64 :=
552LIBART_TARGET_SRC_FILES_mips :=
553LIBART_HOST_SRC_FILES :=
554LIBART_HOST_SRC_FILES_32 :=
555LIBART_HOST_SRC_FILES_64 :=
556LIBART_ENUM_OPERATOR_OUT_HEADER_FILES :=
557LIBART_CFLAGS :=
558build-libart :=
559