blob: 3e4958fb41498d023ab5e02ece543f0e3cf8f294 [file] [log] [blame]
Dan Willemsen8dae49c2017-02-15 15:48:11 -08001###########################################################
2## Standard rules for building a header library.
3##
4## Additional inputs from base_rules.make:
5## None.
6###########################################################
7
8LOCAL_MODULE_CLASS := HEADER_LIBRARIES
9LOCAL_UNINSTALLABLE_MODULE := true
10ifneq ($(strip $(LOCAL_MODULE_STEM)$(LOCAL_BUILT_MODULE_STEM)),)
11$(error $(LOCAL_PATH): Cannot set module stem for a library)
12endif
13
Colin Cross635733b2018-09-10 21:35:55 +000014ifeq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK))
15 ifdef LOCAL_USE_VNDK
16 name_without_suffix := $(patsubst %.vendor,%,$(LOCAL_MODULE))
17 ifneq ($(name_without_suffix),$(LOCAL_MODULE))
18 SPLIT_VENDOR.$(LOCAL_MODULE_CLASS).$(name_without_suffix) := 1
19 endif
20 name_without_suffix :=
21 endif
22endif
23
Dan Willemsen8dae49c2017-02-15 15:48:11 -080024include $(BUILD_SYSTEM)/binary.mk
25
26ifneq ($(strip $(all_objects)),)
27$(call pretty-error,Header libraries may not have any sources)
28endif
29
30$(LOCAL_BUILT_MODULE):
31 $(hide) touch $@