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