1 ########################################################### 2 ## Standard rules for building a static library. 3 ## 4 ## Additional inputs from base_rules.make: 5 ## None. 6 ## 7 ## LOCAL_MODULE_SUFFIX will be set for you. 8 ########################################################### 9 10 ifeq ($(strip $(LOCAL_MODULE_CLASS)),) 11 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 12 endif 13 ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) 14 LOCAL_MODULE_SUFFIX := .a 15 endif 16 LOCAL_UNINSTALLABLE_MODULE := true 17 ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),) 18 $(error $(LOCAL_PATH): Cannot set module stem for a library) 19 endif 20 21 #################################################### 22 ## Add profiling libraries if aprof is turned 23 #################################################### 24 ifeq ($(strip $(LOCAL_ENABLE_APROF)),true) 25 LOCAL_WHOLE_STATIC_LIBRARIES += libaprof 26 endif 27 28 include $(BUILD_SYSTEM)/binary.mk 29 30 ifeq ($(LOCAL_RAW_STATIC_LIBRARY),true) 31 LOCAL_RAW_STATIC_LIBRARY:= 32 $(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES := 33 $(all_objects) : PRIVATE_TARGET_C_INCLUDES := 34 $(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS := 35 $(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS := 36 endif 37 38 $(LOCAL_BUILT_MODULE): $(built_whole_libraries) 39 $(LOCAL_BUILT_MODULE): $(all_objects) 40 $(transform-o-to-static-lib) 41