The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 2 | my_prefix := HOST_ |
| 3 | include $(BUILD_SYSTEM)/multilib.mk |
| 4 | |
| 5 | ifndef my_module_multilib |
| 6 | # By default we only build host module for the first arch. |
| 7 | my_module_multilib := first |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 8 | endif |
| 9 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 10 | ifeq ($(my_module_multilib),both) |
| 11 | ifeq ($(LOCAL_MODULE_PATH_32)$(LOCAL_MODULE_STEM_32),) |
| 12 | $(error $(LOCAL_PATH): LOCAL_MODULE_STEM_32 or LOCAL_MODULE_PATH_32 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE)) |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 13 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 14 | ifeq ($(LOCAL_MODULE_PATH_64)$(LOCAL_MODULE_STEM_64),) |
| 15 | $(error $(LOCAL_PATH): LOCAL_MODULE_STEM_64 or LOCAL_MODULE_PATH_64 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE)) |
| 16 | endif |
| 17 | else #!LOCAL_MULTILIB == both |
| 18 | LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 19 | endif |
| 20 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 21 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 22 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 23 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 24 | ifeq ($(my_module_arch_supported),true) |
| 25 | include $(BUILD_SYSTEM)/host_executable_internal.mk |
| 26 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 28 | ifdef HOST_2ND_ARCH |
| 29 | LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX) |
| 30 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 31 | ifeq ($(my_module_arch_supported),true) |
| 32 | # Build for HOST_2ND_ARCH |
| 33 | OVERRIDE_BUILT_MODULE_PATH := |
| 34 | LOCAL_BUILT_MODULE := |
| 35 | LOCAL_INSTALLED_MODULE := |
| 36 | LOCAL_MODULE_STEM := |
| 37 | LOCAL_BUILT_MODULE_STEM := |
| 38 | LOCAL_INSTALLED_MODULE_STEM := |
| 39 | LOCAL_INTERMEDIATE_TARGETS := |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 40 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame^] | 41 | include $(BUILD_SYSTEM)/host_executable_internal.mk |
| 42 | endif |
| 43 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 44 | endif # HOST_2ND_ARCH |
| 45 | |
| 46 | LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := |
| 47 | my_module_arch_supported := |