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