executable.mk revision c92f1407a1cc32e81971d89086f84a6dc643ef9d
1# We don't automatically set up rules to build executables for both 2# TARGET_ARCH and TARGET_2ND_ARCH. 3# By default, an executable is built for TARGET_ARCH. 4# To build it for TARGET_2ND_ARCH in a 64bit product, use "LOCAL_32_BIT_ONLY := true". 5 6ifeq ($(TARGET_PREFER_32_BIT),true) 7ifneq ($(LOCAL_NO_2ND_ARCH),true) 8LOCAL_32_BIT_ONLY := true 9endif 10endif 11 12LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true 13 14# check if primary arch is supported 15include $(BUILD_SYSTEM)/module_arch_supported.mk 16ifeq ($(my_module_arch_supported),true) 17# primary arch is supported 18include $(BUILD_SYSTEM)/executable_internal.mk 19else ifneq (,$(TARGET_2ND_ARCH)) 20# check if secondary arch is supported 21LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) 22include $(BUILD_SYSTEM)/module_arch_supported.mk 23ifeq ($(my_module_arch_supported),true) 24# secondary arch is supported 25include $(BUILD_SYSTEM)/executable_internal.mk 26endif 27endif # TARGET_2ND_ARCH 28 29LOCAL_2ND_ARCH_VAR_PREFIX := 30LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := 31 32my_module_arch_supported := 33