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