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