host_static_library_internal.mk revision ed635cfc0d77de471152f59fad99d4b8898a0f37
1###########################################################
2## Standard rules for building a static library for the host.
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
16ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
17$(error $(LOCAL_PATH): Cannot set module stem for a library)
18endif
19LOCAL_UNINSTALLABLE_MODULE := true
20
21include $(BUILD_SYSTEM)/binary.mk
22
23$(LOCAL_BUILT_MODULE): $(built_whole_libraries)
24$(LOCAL_BUILT_MODULE): $(all_objects)
25	$(transform-host-o-to-static-lib)
26