executable.mk revision 14a6cbd9026659b30f63c31e112d6cce9b47a9d6
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 12ifeq ($(TARGET_IS_64_BIT)|$(LOCAL_32_BIT_ONLY),true|true) 13LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX) 14else 15LOCAL_2ND_ARCH_VAR_PREFIX := 16endif 17 18LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true 19include $(BUILD_SYSTEM)/executable_internal.mk 20LOCAL_2ND_ARCH_VAR_PREFIX := 21LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := 22