Add output file and dependencies to fontchain_lint
Keep fontchain_lint from rerunning on every make checkbuild by making it touch an output file and giving it dependencies on anything that should cause it to rerun. Bug: 27727331 Test: m checkbuild Change-Id: I0d8a41b308cac04844e27beb51c12dbf46cb1a4a
This commit is contained in:
@@ -119,6 +119,22 @@ else
|
||||
CHECK_EMOJI := true
|
||||
endif
|
||||
|
||||
fontchain_lint_timestamp := $(call intermediates-dir-for,PACKAGING,fontchain_lint)/stamp
|
||||
|
||||
.PHONY: fontchain_lint
|
||||
fontchain_lint: $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.img
|
||||
fontchain_lint: $(fontchain_lint_timestamp)
|
||||
|
||||
fontchain_lint_deps := \
|
||||
external/unicode/DerivedAge.txt \
|
||||
external/unicode/emoji-data.txt \
|
||||
external/unicode/emoji-sequences.txt \
|
||||
external/unicode/emoji-variation-sequences.txt \
|
||||
external/unicode/emoji-zwj-sequences.txt \
|
||||
external/unicode/additions/emoji-data.txt \
|
||||
external/unicode/additions/emoji-sequences.txt \
|
||||
external/unicode/additions/emoji-zwj-sequences.txt \
|
||||
|
||||
$(fontchain_lint_timestamp): $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.img $(fontchain_lint_deps)
|
||||
@echo Running fontchain lint
|
||||
$(FONTCHAIN_LINTER) $(TARGET_OUT) $(CHECK_EMOJI) external/unicode
|
||||
touch $@
|
||||
|
||||
Reference in New Issue
Block a user