• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10ifeq ($(strip $(LOCAL_MODULE_CLASS)),)
11LOCAL_MODULE_CLASS := STATIC_LIBRARIES
12endif
13ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),)
14LOCAL_MODULE_SUFFIX := .a
15endif
16LOCAL_UNINSTALLABLE_MODULE := true
17
18include $(BUILD_SYSTEM)/binary.mk
19
20ifeq ($(LOCAL_RAW_STATIC_LIBRARY),true)
21LOCAL_RAW_STATIC_LIBRARY:=
22$(all_objects) : PRIVATE_TARGET_PROJECT_INCLUDES :=
23$(all_objects) : PRIVATE_TARGET_C_INCLUDES :=
24$(all_objects) : PRIVATE_TARGET_GLOBAL_CFLAGS :=
25$(all_objects) : PRIVATE_TARGET_GLOBAL_CPPFLAGS :=
26endif
27
28$(LOCAL_BUILT_MODULE): $(built_whole_libraries)
29$(LOCAL_BUILT_MODULE): $(all_objects)
30	$(transform-o-to-static-lib)
31