1# Copyright (C) 2011 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16 17# Run sanity tests on fonts on checkbuild 18checkbuild: fontchain_lint 19 20FONTCHAIN_LINTER := $(HOST_OUT_EXECUTABLES)/fontchain_linter 21ifeq ($(MINIMAL_FONT_FOOTPRINT),true) 22CHECK_EMOJI := false 23else 24CHECK_EMOJI := true 25endif 26 27fontchain_lint_timestamp := $(call intermediates-dir-for,PACKAGING,fontchain_lint)/stamp 28 29.PHONY: fontchain_lint 30fontchain_lint: $(fontchain_lint_timestamp) 31 32fontchain_lint_deps := \ 33 external/unicode/DerivedAge.txt \ 34 external/unicode/emoji-data.txt \ 35 external/unicode/emoji-sequences.txt \ 36 external/unicode/emoji-variation-sequences.txt \ 37 external/unicode/emoji-zwj-sequences.txt \ 38 external/unicode/additions/emoji-data.txt \ 39 external/unicode/additions/emoji-sequences.txt \ 40 external/unicode/additions/emoji-zwj-sequences.txt \ 41 42$(fontchain_lint_timestamp): $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.img $(fontchain_lint_deps) 43 @echo Running fontchain lint 44 $(FONTCHAIN_LINTER) $(TARGET_OUT) $(CHECK_EMOJI) external/unicode 45 touch $@ 46