Dan Willemsen | 3bf15e7 | 2016-07-25 16:03:53 -0700 | [diff] [blame] | 1 | $(call record-module-type,HOST_EXECUTABLE) |
Dan Willemsen | ed635cf | 2015-09-04 15:08:08 -0700 | [diff] [blame] | 2 | LOCAL_IS_HOST_MODULE := true |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 3 | my_prefix := HOST_ |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 4 | LOCAL_HOST_PREFIX := |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 5 | include $(BUILD_SYSTEM)/multilib.mk |
| 6 | |
Ying Wang | 6e85f8b | 2014-06-10 16:21:50 -0700 | [diff] [blame] | 7 | ifndef LOCAL_MODULE_HOST_ARCH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 8 | ifndef my_module_multilib |
| 9 | # By default we only build host module for the first arch. |
| 10 | my_module_multilib := first |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 11 | endif |
Ying Wang | 966c1e0 | 2014-05-20 14:43:51 -0700 | [diff] [blame] | 12 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 13 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 14 | ifeq ($(my_module_multilib),both) |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 15 | ifneq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 16 | ifeq ($(LOCAL_MODULE_PATH_32)$(LOCAL_MODULE_STEM_32),) |
| 17 | $(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] | 18 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 19 | ifeq ($(LOCAL_MODULE_PATH_64)$(LOCAL_MODULE_STEM_64),) |
| 20 | $(error $(LOCAL_PATH): LOCAL_MODULE_STEM_64 or LOCAL_MODULE_PATH_64 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE)) |
| 21 | endif |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 22 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 23 | else #!LOCAL_MULTILIB == both |
| 24 | LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 25 | endif |
| 26 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 27 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 28 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 29 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 30 | ifeq ($(my_module_arch_supported),true) |
| 31 | include $(BUILD_SYSTEM)/host_executable_internal.mk |
| 32 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 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 |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 39 | LOCAL_BUILT_MODULE := |
| 40 | LOCAL_INSTALLED_MODULE := |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 41 | LOCAL_INTERMEDIATE_TARGETS := |
Ying Wang | 63d94fa | 2012-12-13 18:23:01 -0800 | [diff] [blame] | 42 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 43 | include $(BUILD_SYSTEM)/host_executable_internal.mk |
| 44 | endif |
| 45 | LOCAL_2ND_ARCH_VAR_PREFIX := |
| 46 | endif # HOST_2ND_ARCH |
| 47 | |
| 48 | LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := |
| 49 | my_module_arch_supported := |