1 2 my_prefix := HOST_ 3 include $(BUILD_SYSTEM)/multilib.mk 4 5 ifndef LOCAL_MODULE_HOST_ARCH 6 ifndef my_module_multilib 7 ifeq ($(HOST_PREFER_32_BIT),true) 8 my_module_multilib := 32 9 else 10 # By default we only build host module for the first arch. 11 my_module_multilib := first 12 endif 13 endif 14 endif 15 16 ifeq ($(my_module_multilib),both) 17 ifeq ($(LOCAL_MODULE_PATH_32)$(LOCAL_MODULE_STEM_32),) 18 $(error $(LOCAL_PATH): LOCAL_MODULE_STEM_32 or LOCAL_MODULE_PATH_32 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE)) 19 endif 20 ifeq ($(LOCAL_MODULE_PATH_64)$(LOCAL_MODULE_STEM_64),) 21 $(error $(LOCAL_PATH): LOCAL_MODULE_STEM_64 or LOCAL_MODULE_PATH_64 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE)) 22 endif 23 else #!LOCAL_MULTILIB == both 24 LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true 25 endif 26 27 LOCAL_2ND_ARCH_VAR_PREFIX := 28 include $(BUILD_SYSTEM)/module_arch_supported.mk 29 30 ifeq ($(my_module_arch_supported),true) 31 include $(BUILD_SYSTEM)/host_executable_internal.mk 32 endif 33 34 ifdef HOST_2ND_ARCH 35 LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX) 36 include $(BUILD_SYSTEM)/module_arch_supported.mk 37 ifeq ($(my_module_arch_supported),true) 38 # Build for HOST_2ND_ARCH 39 OVERRIDE_BUILT_MODULE_PATH := 40 LOCAL_BUILT_MODULE := 41 LOCAL_INSTALLED_MODULE := 42 LOCAL_INTERMEDIATE_TARGETS := 43 44 include $(BUILD_SYSTEM)/host_executable_internal.mk 45 endif 46 LOCAL_2ND_ARCH_VAR_PREFIX := 47 endif # HOST_2ND_ARCH 48 49 LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := 50 my_module_arch_supported := 51