blob: 899a02fb260301c266359026834ba2a2f8ba47f2 [file] [log] [blame]
Ying Wangdd814bf2014-01-17 16:17:28 -08001# 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.
Colin Cross78d642f2014-01-29 18:20:01 -08004# To build it for TARGET_2ND_ARCH in a 64bit product, use "LOCAL_32_BIT_ONLY := true".
The Android Open Source Project88b60792009-03-03 19:28:42 -08005
Ying Wang14a6cbd2014-02-10 22:26:23 -08006ifeq ($(TARGET_PREFER_32_BIT),true)
7ifneq ($(LOCAL_NO_2ND_ARCH),true)
8LOCAL_32_BIT_ONLY := true
9endif
10endif
11
Colin Crossaee1e772014-02-04 11:16:16 -080012LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
Colin Cross8e404122014-02-06 14:45:37 -080013
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
Ying Wangdd814bf2014-01-17 16:17:28 -080018include $(BUILD_SYSTEM)/executable_internal.mk
Colin Cross8e404122014-02-06 14:45:37 -080019else 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
Ying Wangdd814bf2014-01-17 16:17:28 -080029LOCAL_2ND_ARCH_VAR_PREFIX :=
Colin Crossaee1e772014-02-04 11:16:16 -080030LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
Colin Cross8e404122014-02-06 14:45:37 -080031
32my_module_arch_supported :=