Alexander Martinz | bacc967 | 2020-02-14 17:39:50 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2019, The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | ### Fonts |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_MODULE := OpenSans-Bold.ttf |
| 23 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 24 | LOCAL_MODULE_CLASS := ETC |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 27 | include $(BUILD_PREBUILT) |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | LOCAL_MODULE := OpenSans-BoldItalic.ttf |
| 31 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 32 | LOCAL_MODULE_CLASS := ETC |
| 33 | LOCAL_MODULE_TAGS := optional |
| 34 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 35 | include $(BUILD_PREBUILT) |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | LOCAL_MODULE := OpenSans-ExtraBold.ttf |
| 39 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 40 | LOCAL_MODULE_CLASS := ETC |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 43 | include $(BUILD_PREBUILT) |
| 44 | |
| 45 | include $(CLEAR_VARS) |
| 46 | LOCAL_MODULE := OpenSans-ExtraBoldItalic.ttf |
| 47 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 48 | LOCAL_MODULE_CLASS := ETC |
| 49 | LOCAL_MODULE_TAGS := optional |
| 50 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 51 | include $(BUILD_PREBUILT) |
| 52 | |
| 53 | include $(CLEAR_VARS) |
| 54 | LOCAL_MODULE := OpenSans-Italic.ttf |
| 55 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 56 | LOCAL_MODULE_CLASS := ETC |
| 57 | LOCAL_MODULE_TAGS := optional |
| 58 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 59 | include $(BUILD_PREBUILT) |
| 60 | |
| 61 | include $(CLEAR_VARS) |
| 62 | LOCAL_MODULE := OpenSans-Light.ttf |
| 63 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 64 | LOCAL_MODULE_CLASS := ETC |
| 65 | LOCAL_MODULE_TAGS := optional |
| 66 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 67 | include $(BUILD_PREBUILT) |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | LOCAL_MODULE := OpenSans-LightItalic.ttf |
| 71 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 72 | LOCAL_MODULE_CLASS := ETC |
| 73 | LOCAL_MODULE_TAGS := optional |
| 74 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 75 | include $(BUILD_PREBUILT) |
| 76 | |
| 77 | include $(CLEAR_VARS) |
| 78 | LOCAL_MODULE := OpenSans-Regular.ttf |
| 79 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 80 | LOCAL_MODULE_CLASS := ETC |
| 81 | LOCAL_MODULE_TAGS := optional |
| 82 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 83 | include $(BUILD_PREBUILT) |
| 84 | |
| 85 | include $(CLEAR_VARS) |
| 86 | LOCAL_MODULE := OpenSans-SemiBold.ttf |
| 87 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 88 | LOCAL_MODULE_CLASS := ETC |
| 89 | LOCAL_MODULE_TAGS := optional |
| 90 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 91 | include $(BUILD_PREBUILT) |
| 92 | |
| 93 | include $(CLEAR_VARS) |
| 94 | LOCAL_MODULE := OpenSans-SemiBoldItalic.ttf |
| 95 | LOCAL_SRC_FILES := fonts/$(LOCAL_MODULE) |
| 96 | LOCAL_MODULE_CLASS := ETC |
| 97 | LOCAL_MODULE_TAGS := optional |
| 98 | LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts |
| 99 | include $(BUILD_PREBUILT) |
| 100 | |
| 101 | ### Overlay |
| 102 | |
| 103 | include $(CLEAR_VARS) |
| 104 | LOCAL_RRO_THEME := FontOpenSans |
| 105 | LOCAL_PRODUCT_MODULE := true |
| 106 | |
Alexander Martinz | bacc967 | 2020-02-14 17:39:50 +0100 | [diff] [blame] | 107 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 108 | |
| 109 | LOCAL_PACKAGE_NAME := FontOpenSansOverlay |
| 110 | LOCAL_SDK_VERSION := current |
| 111 | include $(BUILD_RRO_PACKAGE) |