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