1$(call record-module-type,SHARED_LIBRARY)
2my_prefix := TARGET_
3include $(BUILD_SYSTEM)/multilib.mk
4
5ifndef my_module_multilib
6# libraries default to building for both architecturess
7my_module_multilib := both
8endif
9
10ifeq ($(my_module_multilib),both)
11ifneq ($(LOCAL_MODULE_PATH),)
12ifneq ($(TARGET_2ND_ARCH),)
13$(error $(LOCAL_MODULE): LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead)
14endif
15endif
16
17ifneq ($(LOCAL_UNSTRIPPED_PATH),)
18ifneq ($(TARGET_2ND_ARCH),)
19$(error $(LOCAL_MODULE): LOCAL_UNSTRIPPED_PATH for shared libraries is unsupported in multiarch builds)
20endif
21endif
22endif # my_module_multilib == both
23
24
25LOCAL_2ND_ARCH_VAR_PREFIX :=
26include $(BUILD_SYSTEM)/module_arch_supported.mk
27
28ifeq ($(my_module_arch_supported),true)
29include $(BUILD_SYSTEM)/shared_library_internal.mk
30endif
31
32ifdef TARGET_2ND_ARCH
33
34LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
35include $(BUILD_SYSTEM)/module_arch_supported.mk
36
37ifeq ($(my_module_arch_supported),true)
38# Build for TARGET_2ND_ARCH
39LOCAL_BUILT_MODULE :=
40LOCAL_INSTALLED_MODULE :=
41LOCAL_INTERMEDIATE_TARGETS :=
42
43include $(BUILD_SYSTEM)/shared_library_internal.mk
44
45endif
46
47LOCAL_2ND_ARCH_VAR_PREFIX :=
48
49endif # TARGET_2ND_ARCH
50
51my_module_arch_supported :=
52
53###########################################################
54## Copy headers to the install tree
55###########################################################
56include $(BUILD_COPY_HEADERS)
57