Home | History | Annotate | Download | only in core
      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 LOCAL_BUILT_MODULE :=
     40 LOCAL_INSTALLED_MODULE :=
     41 LOCAL_INTERMEDIATE_TARGETS :=
     42 
     43 include $(BUILD_SYSTEM)/shared_library_internal.mk
     44 
     45 endif
     46 
     47 LOCAL_2ND_ARCH_VAR_PREFIX :=
     48 
     49 endif # TARGET_2ND_ARCH
     50 
     51 my_module_arch_supported :=
     52 
     53 ###########################################################
     54 ## Copy headers to the install tree
     55 ###########################################################
     56 include $(BUILD_COPY_HEADERS)
     57