To be paired with $(call record-module-type) Bug: 324465531 Test: CIs Change-Id: Ie1649093e299c43a2642fb9d27a0a56b1c8e40c1
23 lines
710 B
Makefile
23 lines
710 B
Makefile
###########################################################
|
|
## Standard rules for building a header library.
|
|
##
|
|
## Additional inputs from base_rules.make:
|
|
## None.
|
|
###########################################################
|
|
|
|
LOCAL_MODULE_CLASS := HEADER_LIBRARIES
|
|
LOCAL_UNINSTALLABLE_MODULE := true
|
|
ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
|
|
$(error $(LOCAL_PATH): Cannot set module stem for a library)
|
|
endif
|
|
|
|
include $(BUILD_SYSTEM)/binary.mk
|
|
|
|
ifneq ($(strip $(all_objects)),)
|
|
$(call pretty-error,Header libraries may not have any sources)
|
|
endif
|
|
|
|
$(LOCAL_BUILT_MODULE):
|
|
$(hide) touch $@
|
|
|
|
$(if $(my_register_name),$(eval ALL_MODULES.$(my_register_name).MAKE_MODULE_TYPE:=HEADER_LIBRARY)) |