android.mk eval,Android.mk · 斗大的熊猫/external_noto-fonts - Gitee.com

# 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.

# We have to use BUILD_PREBUILT instead of PRODUCT_COPY_FIES,

# to copy over the NOTICE file.

LOCAL_PATH := $(call my-dir)

font_src_files :=

#############################################################################

# 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 only included in EXTENDED_FONT_FOOTPRINT builds

#############################################################################

ifeq ($(EXTENDED_FONT_FOOTPRINT),true)

font_src_files += \

NotoSansCanadianAboriginal-Regular.ttf \

NotoSansCherokee-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 \

NotoSansHans-Regular.otf \

NotoSansHant-Regular.otf \

NotoSansKR-Regular.otf \

NotoSansSinhala-Regular.ttf \

NotoSansSinhala-Bold.ttf \

NotoSansYi-Regular.ttf

endif # EXTENDED_FONT_FOOTPRINT

#############################################################################

# The following fonts are excluded from SMALLER_FONT_FOOTPRINT builds

#############################################################################

ifneq ($(SMALLER_FONT_FOOTPRINT),true)

font_src_files += \

NotoSansBengali-Regular.ttf \

NotoSansBengali-Bold.ttf \

NotoSansBengaliUI-Regular.ttf \

NotoSansBengaliUI-Bold.ttf \

NotoSansDevanagari-Regular.ttf \

NotoSansDevanagari-Bold.ttf \

NotoSansDevanagariUI-Regular.ttf \

NotoSansDevanagariUI-Bold.ttf \

NotoSansEthiopic-Regular.ttf \

NotoSansEthiopic-Bold.ttf \

NotoSansKannada-Regular.ttf \

NotoSansKannada-Bold.ttf \

NotoSansKannadaUI-Regular.ttf \

NotoSansKannadaUI-Bold.ttf \

NotoSansKhmer-Regular.ttf \

NotoSansKhmer-Bold.ttf \

NotoSansKhmerUI-Regular.ttf \

NotoSansKhmerUI-Bold.ttf \

NotoSansLao-Regular.ttf \

NotoSansLao-Bold.ttf \

NotoSansLaoUI-Regular.ttf \

NotoSansLaoUI-Bold.ttf \

NotoSansMalayalam-Regular.ttf \

NotoSansMalayalam-Bold.ttf \

NotoSansMalayalamUI-Regular.ttf \

NotoSansMalayalamUI-Bold.ttf \

NotoSansMyanmar-Regular.ttf \

NotoSansMyanmar-Bold.ttf \

NotoSansMyanmarUI-Regular.ttf \

NotoSansMyanmarUI-Bold.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 \

NotoSansThai-Regular.ttf \

NotoSansThai-Bold.ttf \

NotoSansThaiUI-Regular.ttf \

NotoSansThaiUI-Bold.ttf

endif # !SMALLER_FONT_FOOTPRINT

#############################################################################

# The following fonts are excluded from MINIMAL_FONT_FOOTPRINT builds

#############################################################################

ifneq ($(MINIMAL_FONT_FOOTPRINT),true)

font_src_files += \

NotoNaskh-Regular.ttf \

NotoNaskh-Bold.ttf \

NotoNaskhUI-Regular.ttf \

NotoNaskhUI-Bold.ttf \

NotoSansArmenian-Regular.ttf \

NotoSansArmenian-Bold.ttf \

NotoSansGeorgian-Regular.ttf \

NotoSansGeorgian-Bold.ttf \

NotoSansHebrew-Regular.ttf \

NotoSansHebrew-Bold.ttf

endif # !MINIMAL_FONT_FOOTPRINT

#############################################################################

# $(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

$(foreach f, $(font_src_files), $(call build-one-font-module, $(f)))

build-one-font-module :=

font_src_files :=

#############################################################################

# Use a larger subset of Noto Sans Symbols on EXTENDED_FONT_FOOTPRINT

# builds, but a smaller subset on other devices.

#############################################################################

ifeq ($(EXTENDED_FONT_FOOTPRINT),true)

noto_symbols_src := NotoSansSymbols-Regular-Subsetted-Extended.ttf

else # !EXTENDED_FONT_FOOTPRINT

noto_symbols_src := NotoSansSymbols-Regular-Subsetted.ttf

endif # EXTENDED_FONT_FOOTPRINT

include $(CLEAR_VARS)

LOCAL_MODULE := NotoSansSymbols-Regular-Subsetted.ttf

LOCAL_SRC_FILES := $(noto_symbols_src)

LOCAL_MODULE_CLASS := ETC

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts

include $(BUILD_PREBUILT)

noto_symbols_src :=

#############################################################################

# Use Noto Color Emoji with all the flags on EXTENDED_FONT_FOOTPRINT builds,

# but without it on other builds. On SMALLER_FONT_FOOTPRINT devices, no

# color emoji font is included.

#############################################################################

ifneq ($(SMALLER_FONT_FOOTPRINT),true)

ifeq ($(EXTENDED_FONT_FOOTPRINT),true)

color_emoji_src := NotoColorEmoji.ttf

else # !EXTENDED_FONT_FOOTPRINT

color_emoji_src := NotoColorEmoji-Subsetted.ttf

endif # EXTENDED_FONT_FOOTPRINT

include $(CLEAR_VARS)

LOCAL_MODULE := NotoColorEmoji.ttf

LOCAL_SRC_FILES := $(color_emoji_src)

LOCAL_MODULE_CLASS := ETC

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts

include $(BUILD_PREBUILT)

color_emoji_src :=

endif # !SMALLER_FONT_FOOTPRINT

#############################################################################

# Include a subset of NotoSansJP in EXTENDED_FONT_FOOTPRINT builds.

#############################################################################

ifeq ($(EXTENDED_FONT_FOOTPRINT),true)

noto_sans_jp_src := NotoSansJP-Regular-Subsetted.otf

include $(CLEAR_VARS)

LOCAL_MODULE := NotoSansJP-Regular.otf

LOCAL_SRC_FILES := $(noto_sans_jp_src)

LOCAL_MODULE_CLASS := ETC

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts

include $(BUILD_PREBUILT)

noto_sans_jp_src :=

endif # EXTENDED_FONT_FOOTPRINT

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值