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