Android.mk revision 2535abe7d1fcdd0e6aca782b1f1932a703ed50a4
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/arena_allocator.cc \ 26 base/bit_vector.cc \ 27 base/hex_dump.cc \ 28 base/logging.cc \ 29 base/mutex.cc \ 30 base/scoped_arena_allocator.cc \ 31 base/scoped_flock.cc \ 32 base/stringpiece.cc \ 33 base/stringprintf.cc \ 34 base/timing_logger.cc \ 35 base/unix_file/fd_file.cc \ 36 base/unix_file/random_access_file_utils.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/region_space.cc \ 70 gc/space/rosalloc_space.cc \ 71 gc/space/space.cc \ 72 gc/space/zygote_space.cc \ 73 gc/task_processor.cc \ 74 hprof/hprof.cc \ 75 image.cc \ 76 indirect_reference_table.cc \ 77 instrumentation.cc \ 78 intern_table.cc \ 79 interpreter/interpreter.cc \ 80 interpreter/interpreter_common.cc \ 81 interpreter/interpreter_switch_impl.cc \ 82 java_vm_ext.cc \ 83 jdwp/jdwp_event.cc \ 84 jdwp/jdwp_expand_buf.cc \ 85 jdwp/jdwp_handler.cc \ 86 jdwp/jdwp_main.cc \ 87 jdwp/jdwp_request.cc \ 88 jdwp/jdwp_socket.cc \ 89 jdwp/object_registry.cc \ 90 jni_env_ext.cc \ 91 jit/jit.cc \ 92 jit/jit_code_cache.cc \ 93 jit/jit_instrumentation.cc \ 94 jni_internal.cc \ 95 jobject_comparator.cc \ 96 mem_map.cc \ 97 memory_region.cc \ 98 mirror/art_field.cc \ 99 mirror/art_method.cc \ 100 mirror/array.cc \ 101 mirror/class.cc \ 102 mirror/dex_cache.cc \ 103 mirror/object.cc \ 104 mirror/reference.cc \ 105 mirror/stack_trace_element.cc \ 106 mirror/string.cc \ 107 mirror/throwable.cc \ 108 monitor.cc \ 109 native_bridge_art_interface.cc \ 110 native/dalvik_system_DexFile.cc \ 111 native/dalvik_system_VMDebug.cc \ 112 native/dalvik_system_VMRuntime.cc \ 113 native/dalvik_system_VMStack.cc \ 114 native/dalvik_system_ZygoteHooks.cc \ 115 native/java_lang_Class.cc \ 116 native/java_lang_DexCache.cc \ 117 native/java_lang_Object.cc \ 118 native/java_lang_Runtime.cc \ 119 native/java_lang_String.cc \ 120 native/java_lang_System.cc \ 121 native/java_lang_Thread.cc \ 122 native/java_lang_Throwable.cc \ 123 native/java_lang_VMClassLoader.cc \ 124 native/java_lang_ref_FinalizerReference.cc \ 125 native/java_lang_ref_Reference.cc \ 126 native/java_lang_reflect_Array.cc \ 127 native/java_lang_reflect_Constructor.cc \ 128 native/java_lang_reflect_Field.cc \ 129 native/java_lang_reflect_Method.cc \ 130 native/java_lang_reflect_Proxy.cc \ 131 native/java_util_concurrent_atomic_AtomicLong.cc \ 132 native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ 133 native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ 134 native/sun_misc_Unsafe.cc \ 135 oat.cc \ 136 oat_file.cc \ 137 object_lock.cc \ 138 offsets.cc \ 139 os_linux.cc \ 140 parsed_options.cc \ 141 primitive.cc \ 142 quick_exception_handler.cc \ 143 quick/inline_method_analyser.cc \ 144 reference_table.cc \ 145 reflection.cc \ 146 runtime.cc \ 147 runtime_options.cc \ 148 signal_catcher.cc \ 149 stack.cc \ 150 thread.cc \ 151 thread_list.cc \ 152 thread_pool.cc \ 153 throw_location.cc \ 154 trace.cc \ 155 transaction.cc \ 156 profiler.cc \ 157 fault_handler.cc \ 158 utf.cc \ 159 utils.cc \ 160 verifier/dex_gc_map.cc \ 161 verifier/instruction_flags.cc \ 162 verifier/method_verifier.cc \ 163 verifier/reg_type.cc \ 164 verifier/reg_type_cache.cc \ 165 verifier/register_line.cc \ 166 well_known_classes.cc \ 167 zip_archive.cc 168 169LIBART_COMMON_SRC_FILES += \ 170 arch/context.cc \ 171 arch/instruction_set.cc \ 172 arch/instruction_set_features.cc \ 173 arch/memcmp16.cc \ 174 arch/arm/instruction_set_features_arm.cc \ 175 arch/arm/registers_arm.cc \ 176 arch/arm64/instruction_set_features_arm64.cc \ 177 arch/arm64/registers_arm64.cc \ 178 arch/mips/instruction_set_features_mips.cc \ 179 arch/mips/registers_mips.cc \ 180 arch/mips64/instruction_set_features_mips64.cc \ 181 arch/mips64/registers_mips64.cc \ 182 arch/x86/instruction_set_features_x86.cc \ 183 arch/x86/registers_x86.cc \ 184 arch/x86_64/registers_x86_64.cc \ 185 entrypoints/entrypoint_utils.cc \ 186 entrypoints/interpreter/interpreter_entrypoints.cc \ 187 entrypoints/jni/jni_entrypoints.cc \ 188 entrypoints/math_entrypoints.cc \ 189 entrypoints/quick/quick_alloc_entrypoints.cc \ 190 entrypoints/quick/quick_cast_entrypoints.cc \ 191 entrypoints/quick/quick_deoptimization_entrypoints.cc \ 192 entrypoints/quick/quick_dexcache_entrypoints.cc \ 193 entrypoints/quick/quick_field_entrypoints.cc \ 194 entrypoints/quick/quick_fillarray_entrypoints.cc \ 195 entrypoints/quick/quick_instrumentation_entrypoints.cc \ 196 entrypoints/quick/quick_jni_entrypoints.cc \ 197 entrypoints/quick/quick_lock_entrypoints.cc \ 198 entrypoints/quick/quick_math_entrypoints.cc \ 199 entrypoints/quick/quick_thread_entrypoints.cc \ 200 entrypoints/quick/quick_throw_entrypoints.cc \ 201 entrypoints/quick/quick_trampoline_entrypoints.cc 202 203# Source files that only compile with GCC. 204LIBART_GCC_ONLY_SRC_FILES := \ 205 interpreter/interpreter_goto_table_impl.cc 206 207LIBART_TARGET_LDFLAGS := 208LIBART_HOST_LDFLAGS := 209 210LIBART_TARGET_SRC_FILES := \ 211 $(LIBART_COMMON_SRC_FILES) \ 212 jdwp/jdwp_adb.cc \ 213 monitor_android.cc \ 214 runtime_android.cc \ 215 thread_android.cc 216 217LIBART_TARGET_SRC_FILES_arm := \ 218 arch/arm/context_arm.cc.arm \ 219 arch/arm/entrypoints_init_arm.cc \ 220 arch/arm/instruction_set_features_assembly_tests.S \ 221 arch/arm/jni_entrypoints_arm.S \ 222 arch/arm/memcmp16_arm.S \ 223 arch/arm/quick_entrypoints_arm.S \ 224 arch/arm/quick_entrypoints_cc_arm.cc \ 225 arch/arm/thread_arm.cc \ 226 arch/arm/fault_handler_arm.cc 227 228LIBART_TARGET_SRC_FILES_arm64 := \ 229 arch/arm64/context_arm64.cc \ 230 arch/arm64/entrypoints_init_arm64.cc \ 231 arch/arm64/jni_entrypoints_arm64.S \ 232 arch/arm64/memcmp16_arm64.S \ 233 arch/arm64/quick_entrypoints_arm64.S \ 234 arch/arm64/thread_arm64.cc \ 235 monitor_pool.cc \ 236 arch/arm64/fault_handler_arm64.cc 237 238LIBART_SRC_FILES_x86 := \ 239 arch/x86/context_x86.cc \ 240 arch/x86/entrypoints_init_x86.cc \ 241 arch/x86/jni_entrypoints_x86.S \ 242 arch/x86/memcmp16_x86.S \ 243 arch/x86/quick_entrypoints_x86.S \ 244 arch/x86/thread_x86.cc \ 245 arch/x86/fault_handler_x86.cc 246 247LIBART_TARGET_SRC_FILES_x86 := \ 248 $(LIBART_SRC_FILES_x86) 249 250# Note that the fault_handler_x86.cc is not a mistake. This file is 251# shared between the x86 and x86_64 architectures. 252LIBART_SRC_FILES_x86_64 := \ 253 arch/x86_64/context_x86_64.cc \ 254 arch/x86_64/entrypoints_init_x86_64.cc \ 255 arch/x86_64/jni_entrypoints_x86_64.S \ 256 arch/x86_64/memcmp16_x86_64.S \ 257 arch/x86_64/quick_entrypoints_x86_64.S \ 258 arch/x86_64/thread_x86_64.cc \ 259 monitor_pool.cc \ 260 arch/x86/fault_handler_x86.cc 261 262LIBART_TARGET_SRC_FILES_x86_64 := \ 263 $(LIBART_SRC_FILES_x86_64) \ 264 265LIBART_TARGET_SRC_FILES_mips := \ 266 arch/mips/context_mips.cc \ 267 arch/mips/entrypoints_init_mips.cc \ 268 arch/mips/jni_entrypoints_mips.S \ 269 arch/mips/memcmp16_mips.S \ 270 arch/mips/quick_entrypoints_mips.S \ 271 arch/mips/thread_mips.cc \ 272 arch/mips/fault_handler_mips.cc 273 274LIBART_TARGET_SRC_FILES_mips64 := \ 275 arch/mips64/context_mips64.cc \ 276 arch/mips64/entrypoints_init_mips64.cc \ 277 arch/mips64/jni_entrypoints_mips64.S \ 278 arch/mips64/memcmp16_mips64.S \ 279 arch/mips64/quick_entrypoints_mips64.S \ 280 arch/mips64/thread_mips64.cc \ 281 monitor_pool.cc \ 282 arch/mips64/fault_handler_mips64.cc 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 dex_instruction_utils.h \ 305 gc_root.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/region_space.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 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/cmdline 469 LOCAL_C_INCLUDES += art/sigchainlib 470 LOCAL_C_INCLUDES += art 471 472 LOCAL_SHARED_LIBRARIES := libnativehelper libnativebridge libsigchain 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 LOCAL_ADDITIONAL_DEPENDENCIES := art/build/Android.common_build.mk 488 LOCAL_ADDITIONAL_DEPENDENCIES += $$(LOCAL_PATH)/Android.mk 489 490 ifeq ($$(art_target_or_host),target) 491 LOCAL_MODULE_TARGET_ARCH := $$(ART_TARGET_SUPPORTED_ARCH) 492 endif 493 494 LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) 495 496 ifeq ($$(art_target_or_host),target) 497 ifneq ($$(art_ndebug_or_debug),debug) 498 # Leave the symbols in the shared library so that stack unwinders can 499 # produce meaningful name resolution. 500 LOCAL_STRIP_MODULE := keep_symbols 501 endif 502 include $$(BUILD_SHARED_LIBRARY) 503 else # host 504 include $$(BUILD_HOST_SHARED_LIBRARY) 505 endif 506 507 # Clear locally defined variables. 508 GENERATED_SRC_DIR := 509 ENUM_OPERATOR_OUT_CC_FILES := 510 ENUM_OPERATOR_OUT_GEN := 511 art_target_or_host := 512 art_ndebug_or_debug := 513endef 514 515# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since 516# they are used to cross compile for the target. 517ifeq ($(ART_BUILD_HOST_NDEBUG),true) 518 $(eval $(call build-libart,host,ndebug)) 519endif 520ifeq ($(ART_BUILD_HOST_DEBUG),true) 521 $(eval $(call build-libart,host,debug)) 522endif 523 524ifeq ($(ART_BUILD_TARGET_NDEBUG),true) 525# $(error $(call build-libart,target,ndebug)) 526 $(eval $(call build-libart,target,ndebug)) 527endif 528ifeq ($(ART_BUILD_TARGET_DEBUG),true) 529 $(eval $(call build-libart,target,debug)) 530endif 531 532# Clear locally defined variables. 533LOCAL_PATH := 534LIBART_COMMON_SRC_FILES := 535LIBART_GCC_ONLY_SRC_FILES := 536LIBART_HOST_DEFAULT_INSTRUCTION_SET_FEATURES := 537LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := 5382ND_LIBART_TARGET_DEFAULT_INSTRUCTION_SET_FEATURES := 539LIBART_TARGET_LDFLAGS := 540LIBART_HOST_LDFLAGS := 541LIBART_TARGET_SRC_FILES := 542LIBART_TARGET_SRC_FILES_arm := 543LIBART_TARGET_SRC_FILES_arm64 := 544LIBART_TARGET_SRC_FILES_x86 := 545LIBART_TARGET_SRC_FILES_x86_64 := 546LIBART_TARGET_SRC_FILES_mips := 547LIBART_TARGET_SRC_FILES_mips64 := 548LIBART_HOST_SRC_FILES := 549LIBART_HOST_SRC_FILES_32 := 550LIBART_HOST_SRC_FILES_64 := 551LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := 552LIBART_CFLAGS := 553build-libart := 554