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