Home | History | Annotate | Download | only in core
      1 ###########################################################
      2 ## Standard rules for building a normal shared library.
      3 ##
      4 ## Additional inputs from base_rules.make:
      5 ## None.
      6 ##
      7 ## LOCAL_MODULE_SUFFIX will be set for you.
      8 ###########################################################
      9 
     10 LOCAL_IS_HOST_MODULE := true
     11 
     12 ifeq ($(strip $(LOCAL_MODULE_CLASS)),)
     13 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     14 endif
     15 ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),)
     16 LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX)
     17 endif
     18 ifneq ($(strip $(OVERRIDE_BUILT_MODULE_PATH)),)
     19 $(error $(LOCAL_PATH): Illegal use of OVERRIDE_BUILT_MODULE_PATH)
     20 endif
     21 
     22 # Put the built modules of all shared libraries in a common directory
     23 # to simplify the link line.
     24 OVERRIDE_BUILT_MODULE_PATH := $(HOST_OUT_INTERMEDIATE_LIBRARIES)
     25 
     26 include $(BUILD_SYSTEM)/binary.mk
     27 
     28 $(LOCAL_BUILT_MODULE): $(all_objects) $(all_libraries) $(LOCAL_ADDITIONAL_DEPENDENCIES)
     29 	$(transform-host-o-to-shared-lib)
     30