1$(call record-module-type,HOST_EXECUTABLE)
2LOCAL_IS_HOST_MODULE := true
3my_prefix := HOST_
4LOCAL_HOST_PREFIX :=
5include $(BUILD_SYSTEM)/multilib.mk
6
7ifndef LOCAL_MODULE_HOST_ARCH
8ifndef my_module_multilib
9# By default we only build host module for the first arch.
10my_module_multilib := first
11endif
12endif
13
14ifeq ($(my_module_multilib),both)
15ifneq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS)
16ifeq ($(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))
18endif
19ifeq ($(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))
21endif
22endif
23else #!LOCAL_MULTILIB == both
24LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
25endif
26
27LOCAL_2ND_ARCH_VAR_PREFIX :=
28include $(BUILD_SYSTEM)/module_arch_supported.mk
29
30ifeq ($(my_module_arch_supported),true)
31include $(BUILD_SYSTEM)/host_executable_internal.mk
32endif
33
34ifdef HOST_2ND_ARCH
35LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
36include $(BUILD_SYSTEM)/module_arch_supported.mk
37ifeq ($(my_module_arch_supported),true)
38# Build for HOST_2ND_ARCH
39LOCAL_BUILT_MODULE :=
40LOCAL_INSTALLED_MODULE :=
41LOCAL_INTERMEDIATE_TARGETS :=
42
43include $(BUILD_SYSTEM)/host_executable_internal.mk
44endif
45LOCAL_2ND_ARCH_VAR_PREFIX :=
46endif  # HOST_2ND_ARCH
47
48LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
49my_module_arch_supported :=
50