blob: 874bf8757411d6d98e9f575c5a9f6a93a9fdf43b [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001
Ying Wang6feb6d52014-04-17 10:03:35 -07002my_prefix := HOST_
3include $(BUILD_SYSTEM)/multilib.mk
4
5ifndef my_module_multilib
6# By default we only build host module for the first arch.
7my_module_multilib := first
The Android Open Source Project88b60792009-03-03 19:28:42 -08008endif
9
Ying Wang6feb6d52014-04-17 10:03:35 -070010ifeq ($(my_module_multilib),both)
11ifeq ($(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 Wang63d94fa2012-12-13 18:23:01 -080013endif
Ying Wang6feb6d52014-04-17 10:03:35 -070014ifeq ($(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))
16endif
17else #!LOCAL_MULTILIB == both
18LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
Ying Wang63d94fa2012-12-13 18:23:01 -080019endif
20
Ying Wang6feb6d52014-04-17 10:03:35 -070021LOCAL_2ND_ARCH_VAR_PREFIX :=
22include $(BUILD_SYSTEM)/module_arch_supported.mk
Ying Wang63d94fa2012-12-13 18:23:01 -080023
Ying Wang6feb6d52014-04-17 10:03:35 -070024ifeq ($(my_module_arch_supported),true)
25include $(BUILD_SYSTEM)/host_executable_internal.mk
26endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080027
Ying Wang6feb6d52014-04-17 10:03:35 -070028ifdef HOST_2ND_ARCH
29LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
30include $(BUILD_SYSTEM)/module_arch_supported.mk
31ifeq ($(my_module_arch_supported),true)
32# Build for HOST_2ND_ARCH
33OVERRIDE_BUILT_MODULE_PATH :=
34LOCAL_BUILT_MODULE :=
35LOCAL_INSTALLED_MODULE :=
36LOCAL_MODULE_STEM :=
37LOCAL_BUILT_MODULE_STEM :=
38LOCAL_INSTALLED_MODULE_STEM :=
39LOCAL_INTERMEDIATE_TARGETS :=
Ying Wang63d94fa2012-12-13 18:23:01 -080040
Ying Wang6feb6d52014-04-17 10:03:35 -070041include $(BUILD_SYSTEM)/host_executable_internal.mk
42endif
43LOCAL_2ND_ARCH_VAR_PREFIX :=
44endif # HOST_2ND_ARCH
45
46LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
47my_module_arch_supported :=