2009-03-04 04:28:42 +01:00
|
|
|
###########################################################
|
2009-10-15 22:01:36 +02:00
|
|
|
## Standard rules for building a static library for the host.
|
2009-03-04 04:28:42 +01:00
|
|
|
##
|
|
|
|
## Additional inputs from base_rules.make:
|
|
|
|
## None.
|
|
|
|
##
|
|
|
|
## LOCAL_MODULE_SUFFIX will be set for you.
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
ifeq ($(strip $(LOCAL_MODULE_CLASS)),)
|
|
|
|
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
|
|
|
endif
|
|
|
|
ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),)
|
|
|
|
LOCAL_MODULE_SUFFIX := .a
|
|
|
|
endif
|
2011-11-08 18:31:21 +01:00
|
|
|
ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
|
|
|
|
$(error $(LOCAL_PATH): Can not set module stem for a library)
|
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
|
|
|
2009-10-15 22:01:36 +02:00
|
|
|
LOCAL_IS_HOST_MODULE := true
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(BUILD_SYSTEM)/binary.mk
|
|
|
|
|
2009-10-15 22:01:36 +02:00
|
|
|
$(LOCAL_BUILT_MODULE): $(built_whole_libraries)
|
2009-03-04 04:28:42 +01:00
|
|
|
$(LOCAL_BUILT_MODULE): $(all_objects)
|
|
|
|
$(transform-host-o-to-static-lib)
|