252 lines
8.8 KiB
Makefile
252 lines
8.8 KiB
Makefile
# Copyright (C) 2013 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
NOTO_DIR := $(call my-dir)
|
|
|
|
include $(call all-makefiles-under,$(NOTO_DIR))
|
|
|
|
# We have to use BUILD_PREBUILT instead of PRODUCT_COPY_FILES,
|
|
# to copy over the NOTICE file.
|
|
#############################################################################
|
|
# $(1): The source file name in LOCAL_PATH.
|
|
# It also serves as the module name and the dest file name.
|
|
#############################################################################
|
|
define build-one-font-module
|
|
$(eval include $(CLEAR_VARS))\
|
|
$(eval LOCAL_MODULE := $(1))\
|
|
$(eval LOCAL_SRC_FILES := $(1))\
|
|
$(eval LOCAL_MODULE_CLASS := ETC)\
|
|
$(eval LOCAL_MODULE_TAGS := optional)\
|
|
$(eval LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts)\
|
|
$(eval include $(BUILD_PREBUILT))
|
|
endef
|
|
|
|
|
|
#############################################################################
|
|
# First "build" the Noto CJK fonts, which have a different directory and
|
|
# copyright holder. These are not included in MINIMAL_FONT_FOOTPRINT builds.
|
|
#############################################################################
|
|
ifneq ($(MINIMAL_FONT_FOOTPRINT),true)
|
|
LOCAL_PATH := $(NOTO_DIR)/cjk
|
|
|
|
font_src_files := \
|
|
NotoSansCJK-Regular.ttc
|
|
|
|
$(foreach f, $(font_src_files), $(call build-one-font-module, $(f)))
|
|
font_src_files :=
|
|
|
|
endif # !MINIMAL_FONT_FOOTPRINT
|
|
|
|
#############################################################################
|
|
# Now "build" the Noto Color Emoji font, which is in its own directory. It is
|
|
# not included in the MINIMAL_FONT_FOOTPRINT builds.
|
|
#############################################################################
|
|
ifneq ($(MINIMAL_FONT_FOOTPRINT),true)
|
|
LOCAL_PATH := $(NOTO_DIR)/emoji
|
|
|
|
font_src_files := \
|
|
NotoColorEmoji.ttf
|
|
|
|
$(foreach f, $(font_src_files), $(call build-one-font-module, $(f)))
|
|
font_src_files :=
|
|
|
|
endif # !MINIMAL_FONT_FOOTPRINT
|
|
|
|
#############################################################################
|
|
# Now "build" the rest of the fonts, which live in a separate subdirectory.
|
|
#############################################################################
|
|
LOCAL_PATH := $(NOTO_DIR)/other
|
|
|
|
#############################################################################
|
|
# The following fonts are included in all builds.
|
|
#############################################################################
|
|
font_src_files := \
|
|
NotoSerif-Regular.ttf \
|
|
NotoSerif-Bold.ttf \
|
|
NotoSerif-Italic.ttf \
|
|
NotoSerif-BoldItalic.ttf
|
|
|
|
#############################################################################
|
|
# The following fonts are excluded from SMALLER_FONT_FOOTPRINT builds.
|
|
#############################################################################
|
|
ifneq ($(SMALLER_FONT_FOOTPRINT),true)
|
|
font_src_files += \
|
|
NotoSansAdlam-Regular.ttf \
|
|
NotoSansAvestan-Regular.ttf \
|
|
NotoSansBalinese-Regular.ttf \
|
|
NotoSansBamum-Regular.ttf \
|
|
NotoSansBatak-Regular.ttf \
|
|
NotoSansBengali-Regular.ttf \
|
|
NotoSansBengali-Bold.ttf \
|
|
NotoSansBengaliUI-Regular.ttf \
|
|
NotoSansBengaliUI-Bold.ttf \
|
|
NotoSansBrahmi-Regular.ttf \
|
|
NotoSansBuginese-Regular.ttf \
|
|
NotoSansBuhid-Regular.ttf \
|
|
NotoSansCanadianAboriginal-Regular.ttf \
|
|
NotoSansCarian-Regular.ttf \
|
|
NotoSansCham-Regular.ttf \
|
|
NotoSansCham-Bold.ttf \
|
|
NotoSansCherokee-Regular.ttf \
|
|
NotoSansCoptic-Regular.ttf \
|
|
NotoSansCuneiform-Regular.ttf \
|
|
NotoSansCypriot-Regular.ttf \
|
|
NotoSansDeseret-Regular.ttf \
|
|
NotoSansEgyptianHieroglyphs-Regular.ttf \
|
|
NotoSansEthiopic-Regular.ttf \
|
|
NotoSansEthiopic-Bold.ttf \
|
|
NotoSansGlagolitic-Regular.ttf \
|
|
NotoSansGothic-Regular.ttf \
|
|
NotoSansGujarati-Regular.ttf \
|
|
NotoSansGujarati-Bold.ttf \
|
|
NotoSansGujaratiUI-Regular.ttf \
|
|
NotoSansGujaratiUI-Bold.ttf \
|
|
NotoSansGurmukhi-Regular.ttf \
|
|
NotoSansGurmukhi-Bold.ttf \
|
|
NotoSansGurmukhiUI-Regular.ttf \
|
|
NotoSansGurmukhiUI-Bold.ttf \
|
|
NotoSansHanunoo-Regular.ttf \
|
|
NotoSansImperialAramaic-Regular.ttf \
|
|
NotoSansInscriptionalPahlavi-Regular.ttf \
|
|
NotoSansInscriptionalParthian-Regular.ttf \
|
|
NotoSansJavanese-Regular.ttf \
|
|
NotoSansKaithi-Regular.ttf \
|
|
NotoSansKannada-Regular.ttf \
|
|
NotoSansKannada-Bold.ttf \
|
|
NotoSansKannadaUI-Regular.ttf \
|
|
NotoSansKannadaUI-Bold.ttf \
|
|
NotoSansKayahLi-Regular.ttf \
|
|
NotoSansKharoshthi-Regular.ttf \
|
|
NotoSansKhmerUI-Regular.ttf \
|
|
NotoSansKhmerUI-Bold.ttf \
|
|
NotoSansLao-Regular.ttf \
|
|
NotoSansLao-Bold.ttf \
|
|
NotoSansLaoUI-Regular.ttf \
|
|
NotoSansLaoUI-Bold.ttf \
|
|
NotoSansLepcha-Regular.ttf \
|
|
NotoSansLimbu-Regular.ttf \
|
|
NotoSansLinearB-Regular.ttf \
|
|
NotoSansLisu-Regular.ttf \
|
|
NotoSansLycian-Regular.ttf \
|
|
NotoSansLydian-Regular.ttf \
|
|
NotoSansMalayalam-Regular.ttf \
|
|
NotoSansMalayalam-Bold.ttf \
|
|
NotoSansMalayalamUI-Regular.ttf \
|
|
NotoSansMalayalamUI-Bold.ttf \
|
|
NotoSansMandaic-Regular.ttf \
|
|
NotoSansMeeteiMayek-Regular.ttf \
|
|
NotoSansMongolian-Regular.ttf \
|
|
NotoSansMyanmar-Regular.ttf \
|
|
NotoSansMyanmar-Bold.ttf \
|
|
NotoSansMyanmarUI-Regular.ttf \
|
|
NotoSansMyanmarUI-Bold.ttf \
|
|
NotoSansNewTaiLue-Regular.ttf \
|
|
NotoSansNKo-Regular.ttf \
|
|
NotoSansOgham-Regular.ttf \
|
|
NotoSansOlChiki-Regular.ttf \
|
|
NotoSansOldItalic-Regular.ttf \
|
|
NotoSansOldPersian-Regular.ttf \
|
|
NotoSansOldSouthArabian-Regular.ttf \
|
|
NotoSansOldTurkic-Regular.ttf \
|
|
NotoSansOriya-Regular.ttf \
|
|
NotoSansOriya-Bold.ttf \
|
|
NotoSansOriyaUI-Regular.ttf \
|
|
NotoSansOriyaUI-Bold.ttf \
|
|
NotoSansOsmanya-Regular.ttf \
|
|
NotoSansPhagsPa-Regular.ttf \
|
|
NotoSansPhoenician-Regular.ttf \
|
|
NotoSansRejang-Regular.ttf \
|
|
NotoSansRunic-Regular.ttf \
|
|
NotoSansSamaritan-Regular.ttf \
|
|
NotoSansSaurashtra-Regular.ttf \
|
|
NotoSansShavian-Regular.ttf \
|
|
NotoSansSinhala-Regular.ttf \
|
|
NotoSansSinhala-Bold.ttf \
|
|
NotoSansSundanese-Regular.ttf \
|
|
NotoSansSylotiNagri-Regular.ttf \
|
|
NotoSansSyriacEastern-Regular.ttf \
|
|
NotoSansSyriacEstrangela-Regular.ttf \
|
|
NotoSansSyriacWestern-Regular.ttf \
|
|
NotoSansTagalog-Regular.ttf \
|
|
NotoSansTagbanwa-Regular.ttf \
|
|
NotoSansTaiLe-Regular.ttf \
|
|
NotoSansTaiTham-Regular.ttf \
|
|
NotoSansTaiViet-Regular.ttf \
|
|
NotoSansTamil-Regular.ttf \
|
|
NotoSansTamil-Bold.ttf \
|
|
NotoSansTamilUI-Regular.ttf \
|
|
NotoSansTamilUI-Bold.ttf \
|
|
NotoSansTelugu-Regular.ttf \
|
|
NotoSansTelugu-Bold.ttf \
|
|
NotoSansTeluguUI-Regular.ttf \
|
|
NotoSansTeluguUI-Bold.ttf \
|
|
NotoSansThaana-Regular.ttf \
|
|
NotoSansThaana-Bold.ttf \
|
|
NotoSansTibetan-Regular.ttf \
|
|
NotoSansTibetan-Bold.ttf \
|
|
NotoSansTifinagh-Regular.ttf \
|
|
NotoSansUgaritic-Regular.ttf \
|
|
NotoSansVai-Regular.ttf \
|
|
NotoSansYi-Regular.ttf
|
|
endif # !SMALLER_FONT_FOOTPRINT
|
|
|
|
#############################################################################
|
|
# The following fonts are excluded from MINIMAL_FONT_FOOTPRINT builds.
|
|
#############################################################################
|
|
ifneq ($(MINIMAL_FONT_FOOTPRINT),true)
|
|
font_src_files += \
|
|
NotoNaskhArabic-Regular.ttf \
|
|
NotoNaskhArabic-Bold.ttf \
|
|
NotoNaskhArabicUI-Regular.ttf \
|
|
NotoNaskhArabicUI-Bold.ttf \
|
|
NotoSansArmenian-Regular.ttf \
|
|
NotoSansArmenian-Bold.ttf \
|
|
NotoSansDevanagari-Regular.ttf \
|
|
NotoSansDevanagari-Bold.ttf \
|
|
NotoSansDevanagariUI-Regular.ttf \
|
|
NotoSansDevanagariUI-Bold.ttf \
|
|
NotoSansGeorgian-Regular.ttf \
|
|
NotoSansGeorgian-Bold.ttf \
|
|
NotoSansHebrew-Regular.ttf \
|
|
NotoSansHebrew-Bold.ttf \
|
|
NotoSansSymbols-Regular-Subsetted.ttf \
|
|
NotoSansSymbols-Regular-Subsetted2.ttf \
|
|
NotoSansThai-Regular.ttf \
|
|
NotoSansThai-Bold.ttf \
|
|
NotoSansThaiUI-Regular.ttf \
|
|
NotoSansThaiUI-Bold.ttf
|
|
endif # !MINIMAL_FONT_FOOTPRINT
|
|
|
|
$(foreach f, $(font_src_files), $(call build-one-font-module, $(f)))
|
|
|
|
#############################################################################
|
|
# Now "build" the variable fonts, which live in a separate subdirectory.
|
|
# The only variable fonts are for Khmer Sans, which is excluded in
|
|
# SMALLER_FONT_FOOTPRINT build.
|
|
#############################################################################
|
|
|
|
ifneq ($(SMALLER_FONT_FOOTPRINT),true)
|
|
|
|
LOCAL_PATH := $(NOTO_DIR)/other-vf
|
|
|
|
font_src_files := \
|
|
NotoSansKhmer-VF.ttf
|
|
|
|
$(foreach f, $(font_src_files), $(call build-one-font-module, $(f)))
|
|
|
|
endif # !SMALLER_FONT_FOOTPRINT
|
|
|
|
NOTO_DIR :=
|
|
build-one-font-module :=
|
|
font_src_files :=
|