1my_prefix := HOST_ 2include $(BUILD_SYSTEM)/multilib.mk 3 4ifndef LOCAL_MODULE_HOST_ARCH 5ifndef my_module_multilib 6ifeq ($(HOST_PREFER_32_BIT),true) 7my_module_multilib := 32 8else 9# By default we only build host module for the first arch. 10my_module_multilib := first 11endif 12endif 13endif 14 15LOCAL_2ND_ARCH_VAR_PREFIX := 16include $(BUILD_SYSTEM)/module_arch_supported.mk 17 18ifeq ($(my_module_arch_supported),true) 19include $(BUILD_SYSTEM)/host_static_library_internal.mk 20endif 21 22ifdef HOST_2ND_ARCH 23LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX) 24include $(BUILD_SYSTEM)/module_arch_supported.mk 25ifeq ($(my_module_arch_supported),true) 26# Build for HOST_2ND_ARCH 27OVERRIDE_BUILT_MODULE_PATH := 28LOCAL_BUILT_MODULE := 29LOCAL_INSTALLED_MODULE := 30LOCAL_INTERMEDIATE_TARGETS := 31 32include $(BUILD_SYSTEM)/host_static_library_internal.mk 33endif 34LOCAL_2ND_ARCH_VAR_PREFIX := 35endif # HOST_2ND_ARCH 36 37my_module_arch_supported := 38 39########################################################### 40## Copy headers to the install tree 41########################################################### 42include $(BUILD_COPY_HEADERS) 43