1// Copyright (C) 2021 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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_base_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_base_license"], 22} 23 24filegroup { 25 name: "UpdatableSystemFontTest_NotoColorEmoji.ttf", 26 srcs: ["UpdatableSystemFontTest_NotoColorEmoji.ttf"], 27} 28 29filegroup { 30 name: "UpdatableSystemFontTest_NotoSerif-Regular.ttf", 31 srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], 32} 33 34filegroup { 35 name: "UpdatableSystemFontTest_NotoSerif-Bold.ttf", 36 srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], 37} 38 39filegroup { 40 name: "UpdatableSystemFontTestKeyPem", 41 srcs: ["UpdatableSystemFontTestKey.pem"], 42} 43 44filegroup { 45 name: "UpdatableSystemFontTestCertPem", 46 srcs: ["UpdatableSystemFontTestCert.pem"], 47} 48 49filegroup { 50 name: "UpdatableSystemFontTestCertDer", 51 srcs: ["UpdatableSystemFontTestCert.der"], 52} 53 54genrule { 55 name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf", 56 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], 57 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.ttf"], 58 tools: ["update_font_metadata"], 59 cmd: "$(location update_font_metadata) " + 60 "--input=$(in) " + 61 "--output=$(out) " + 62 "--revision=0", 63} 64 65genrule { 66 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf", 67 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], 68 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"], 69 tools: ["update_font_metadata"], 70 cmd: "$(location update_font_metadata) " + 71 "--input=$(in) " + 72 "--output=$(out) " + 73 "--revision=+1", 74} 75 76genrule { 77 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf", 78 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], 79 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"], 80 tools: ["update_font_metadata"], 81 cmd: "$(location update_font_metadata) " + 82 "--input=$(in) " + 83 "--output=$(out) " + 84 "--revision=+2", 85} 86 87genrule_defaults { 88 name: "updatable_system_font_sig_gen_default", 89 tools: ["fsverity"], 90 tool_files: [ 91 ":UpdatableSystemFontTestKeyPem", 92 ":UpdatableSystemFontTestCertPem", 93 ], 94 cmd: "$(location fsverity) sign $(in) $(out) " + 95 "--key=$(location :UpdatableSystemFontTestKeyPem) " + 96 "--cert=$(location :UpdatableSystemFontTestCertPem) " + 97 "> /dev/null", 98} 99 100genrule { 101 name: "UpdatableSystemFontTest_NotoColorEmoji.sig", 102 defaults: ["updatable_system_font_sig_gen_default"], 103 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], 104 out: ["UpdatableSystemFontTest_NotoColorEmoji.sig"], 105} 106 107genrule { 108 name: "UpdatableSystemFontTest_NotoColorEmojiV0.sig", 109 defaults: ["updatable_system_font_sig_gen_default"], 110 srcs: [":UpdatableSystemFontTest_NotoColorEmojiV0.ttf"], 111 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.sig"], 112} 113 114genrule { 115 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig", 116 defaults: ["updatable_system_font_sig_gen_default"], 117 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"], 118 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig"], 119} 120 121genrule { 122 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig", 123 defaults: ["updatable_system_font_sig_gen_default"], 124 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"], 125 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig"], 126} 127 128genrule { 129 name: "UpdatableSystemFontTest_NotoSerif-Regular.sig", 130 defaults: ["updatable_system_font_sig_gen_default"], 131 srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], 132 out: ["UpdatableSystemFontTest_NotoSerif-Regular.sig"], 133} 134 135genrule { 136 name: "UpdatableSystemFontTest_NotoSerif-Bold.sig", 137 defaults: ["updatable_system_font_sig_gen_default"], 138 srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], 139 out: ["UpdatableSystemFontTest_NotoSerif-Bold.sig"], 140} 141