blob: a322b829932b94f8b7fc5fdddc635ef54fcb1f00 [file] [log] [blame]
Ying Wang46b20e72011-09-29 18:07:41 -07001# 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
Ying Wang46b20e72011-09-29 18:07:41 -070015LOCAL_PATH := $(call my-dir)
16
Roozbeh Pournader0e969e22016-03-09 23:08:45 -080017# Run sanity tests on fonts on checkbuild
18checkbuild: fontchain_lint
19
Nan Zhang2db709d2017-11-08 20:48:46 -080020FONTCHAIN_LINTER := $(HOST_OUT_EXECUTABLES)/fontchain_linter
Roozbeh Pournaderaba60b52016-12-09 19:21:01 -080021ifeq ($(MINIMAL_FONT_FOOTPRINT),true)
Roozbeh Pournader27ec3ac2016-03-31 13:05:32 -070022CHECK_EMOJI := false
23else
24CHECK_EMOJI := true
25endif
Roozbeh Pournader0e969e22016-03-09 23:08:45 -080026
Colin Crossf5de5252017-11-10 20:30:56 -080027fontchain_lint_timestamp := $(call intermediates-dir-for,PACKAGING,fontchain_lint)/stamp
28
Roozbeh Pournader0e969e22016-03-09 23:08:45 -080029.PHONY: fontchain_lint
Colin Crossf5de5252017-11-10 20:30:56 -080030fontchain_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
Nan Zhang2db709d2017-11-08 20:48:46 -080044 $(FONTCHAIN_LINTER) $(TARGET_OUT) $(CHECK_EMOJI) external/unicode
Colin Crossf5de5252017-11-10 20:30:56 -080045 touch $@