platform_build/core/header_library_internal.mk
Colin Cross 8fb525db71 Add soong_cc_prebuilt.mk
Add soong_cc_prebuilt.mk for Soong modules to use so they can avoid
going through all of prebuilt_internal.mk, dynamic_binary.mk and
binary.mk.  Also moves stripping support into Soong.

Relands I8b37dda2b449b6b5d48d5b983f43de452f494a1e with fixes for
builds with GENERATE_BREAKPAD_SYMBOLS=true

Bug: 113936524
Test: m checkbuild
Change-Id: Id41cd76ccb1b5bb6ac43b41ae3e8f1ce46d7ad7e
2018-09-10 14:46:52 -07:00

21 lines
611 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 $@