1LOCAL_IS_HOST_MODULE := true
2my_prefix := HOST_
3LOCAL_HOST_PREFIX :=
4include $(BUILD_SYSTEM)/multilib.mk
5
6ifndef LOCAL_MODULE_HOST_ARCH
7ifndef my_module_multilib
8ifeq ($(HOST_PREFER_32_BIT),true)
9my_module_multilib := 32
10else
11# libraries default to building for both architecturess
12my_module_multilib := both
13endif
14endif
15endif
16
17LOCAL_2ND_ARCH_VAR_PREFIX :=
18include $(BUILD_SYSTEM)/module_arch_supported.mk
19
20ifeq ($(my_module_arch_supported),true)
21include $(BUILD_SYSTEM)/host_shared_library_internal.mk
22endif
23
24ifdef HOST_2ND_ARCH
25LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
26include $(BUILD_SYSTEM)/module_arch_supported.mk
27ifeq ($(my_module_arch_supported),true)
28# Build for HOST_2ND_ARCH
29OVERRIDE_BUILT_MODULE_PATH :=
30LOCAL_BUILT_MODULE :=
31LOCAL_INSTALLED_MODULE :=
32LOCAL_INTERMEDIATE_TARGETS :=
33
34include $(BUILD_SYSTEM)/host_shared_library_internal.mk
35endif
36LOCAL_2ND_ARCH_VAR_PREFIX :=
37endif  # HOST_2ND_ARCH
38
39ifdef HOST_CROSS_OS
40my_prefix := HOST_CROSS_
41LOCAL_HOST_PREFIX := $(my_prefix)
42include $(BUILD_SYSTEM)/module_arch_supported.mk
43ifeq ($(my_module_arch_supported),true)
44# Build for Windows
45OVERRIDE_BUILT_MODULE_PATH :=
46LOCAL_BUILT_MODULE :=
47LOCAL_MODULE_SUFFIX :=
48# We don't want makefiles using the cross-compiled host tool
49saved_LOCAL_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE)
50LOCAL_INSTALLED_MODULE :=
51LOCAL_INTERMEDIATE_TARGETS :=
52
53include $(BUILD_SYSTEM)/host_shared_library_internal.mk
54LOCAL_INSTALLED_MODULE := $(saved_LOCAL_INSTALLED_MODULE)
55endif
56
57ifdef HOST_CROSS_2ND_ARCH
58LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)
59include $(BUILD_SYSTEM)/module_arch_supported.mk
60ifeq ($(my_module_arch_supported),true)
61# Build for HOST_CROSS_2ND_ARCH
62OVERRIDE_BUILT_MODULE_PATH :=
63LOCAL_BUILT_MODULE :=
64LOCAL_MODULE_SUFFIX :=
65# We don't want makefiles using the cross-compiled host tool
66saved_LOCAL_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE)
67LOCAL_INSTALLED_MODULE :=
68LOCAL_INTERMEDIATE_TARGETS :=
69
70include $(BUILD_SYSTEM)/host_shared_library_internal.mk
71LOCAL_INSTALLED_MODULE := $(saved_LOCAL_INSTALLED_MODULE)
72endif
73LOCAL_2ND_ARCH_VAR_PREFIX :=
74endif
75LOCAL_HOST_PREFIX :=
76endif
77
78my_module_arch_supported :=
79
80###########################################################
81## Copy headers to the install tree
82###########################################################
83include $(BUILD_COPY_HEADERS)
84