Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 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 | |
Bob Badour | d594958 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 15 | package { |
| 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 | |
Kohsuke Yatoh | 5ef0ea1 | 2021-06-25 21:48:03 +0000 | [diff] [blame] | 24 | filegroup { |
Kohsuke Yatoh | 5b1bac7 | 2021-07-22 18:54:46 +0000 | [diff] [blame] | 25 | name: "UpdatableSystemFontTest_NotoColorEmoji.ttf", |
Kohsuke Yatoh | 5045660 | 2022-02-16 16:36:25 -0800 | [diff] [blame] | 26 | srcs: ["UpdatableSystemFontTest_NotoColorEmoji.ttf"], |
| 27 | } |
| 28 | |
| 29 | filegroup { |
| 30 | name: "UpdatableSystemFontTest_NotoSerif-Regular.ttf", |
| 31 | srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], |
| 32 | } |
| 33 | |
| 34 | filegroup { |
| 35 | name: "UpdatableSystemFontTest_NotoSerif-Bold.ttf", |
| 36 | srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], |
Kohsuke Yatoh | 5ef0ea1 | 2021-06-25 21:48:03 +0000 | [diff] [blame] | 37 | } |
| 38 | |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 39 | filegroup { |
| 40 | name: "UpdatableSystemFontTestKeyPem", |
| 41 | srcs: ["UpdatableSystemFontTestKey.pem"], |
| 42 | } |
| 43 | |
| 44 | filegroup { |
| 45 | name: "UpdatableSystemFontTestCertPem", |
| 46 | srcs: ["UpdatableSystemFontTestCert.pem"], |
| 47 | } |
| 48 | |
| 49 | filegroup { |
| 50 | name: "UpdatableSystemFontTestCertDer", |
| 51 | srcs: ["UpdatableSystemFontTestCert.der"], |
| 52 | } |
| 53 | |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 54 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 55 | name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf", |
Kohsuke Yatoh | 5b1bac7 | 2021-07-22 18:54:46 +0000 | [diff] [blame] | 56 | srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 57 | out: ["UpdatableSystemFontTest_NotoColorEmojiV0.ttf"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 58 | tools: ["update_font_metadata"], |
| 59 | cmd: "$(location update_font_metadata) " + |
| 60 | "--input=$(in) " + |
| 61 | "--output=$(out) " + |
| 62 | "--revision=0", |
| 63 | } |
| 64 | |
| 65 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 66 | name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf", |
Kohsuke Yatoh | 5b1bac7 | 2021-07-22 18:54:46 +0000 | [diff] [blame] | 67 | srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 68 | out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 69 | tools: ["update_font_metadata"], |
| 70 | cmd: "$(location update_font_metadata) " + |
| 71 | "--input=$(in) " + |
| 72 | "--output=$(out) " + |
| 73 | "--revision=+1", |
| 74 | } |
| 75 | |
| 76 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 77 | name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf", |
Kohsuke Yatoh | 5b1bac7 | 2021-07-22 18:54:46 +0000 | [diff] [blame] | 78 | srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 79 | out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 80 | tools: ["update_font_metadata"], |
| 81 | cmd: "$(location update_font_metadata) " + |
| 82 | "--input=$(in) " + |
| 83 | "--output=$(out) " + |
| 84 | "--revision=+2", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | genrule_defaults { |
| 88 | name: "updatable_system_font_sig_gen_default", |
| 89 | tools: ["fsverity"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 90 | tool_files: [ |
| 91 | ":UpdatableSystemFontTestKeyPem", |
| 92 | ":UpdatableSystemFontTestCertPem", |
| 93 | ], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 94 | cmd: "$(location fsverity) sign $(in) $(out) " + |
| 95 | "--key=$(location :UpdatableSystemFontTestKeyPem) " + |
| 96 | "--cert=$(location :UpdatableSystemFontTestCertPem) " + |
| 97 | "> /dev/null", |
| 98 | } |
| 99 | |
| 100 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 101 | name: "UpdatableSystemFontTest_NotoColorEmoji.sig", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 102 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 5b1bac7 | 2021-07-22 18:54:46 +0000 | [diff] [blame] | 103 | srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 104 | out: ["UpdatableSystemFontTest_NotoColorEmoji.sig"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 105 | } |
| 106 | |
| 107 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 108 | name: "UpdatableSystemFontTest_NotoColorEmojiV0.sig", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 109 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 110 | srcs: [":UpdatableSystemFontTest_NotoColorEmojiV0.ttf"], |
| 111 | out: ["UpdatableSystemFontTest_NotoColorEmojiV0.sig"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 115 | name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 116 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 117 | srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"], |
| 118 | out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | genrule { |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 122 | name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig", |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame] | 123 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 124 | srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"], |
| 125 | out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig"], |
| 126 | } |
| 127 | |
| 128 | genrule { |
| 129 | name: "UpdatableSystemFontTest_NotoSerif-Regular.sig", |
| 130 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 5045660 | 2022-02-16 16:36:25 -0800 | [diff] [blame] | 131 | srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 132 | out: ["UpdatableSystemFontTest_NotoSerif-Regular.sig"], |
| 133 | } |
| 134 | |
| 135 | genrule { |
| 136 | name: "UpdatableSystemFontTest_NotoSerif-Bold.sig", |
| 137 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | 5045660 | 2022-02-16 16:36:25 -0800 | [diff] [blame] | 138 | srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], |
Kohsuke Yatoh | 865a9cb | 2021-05-19 11:36:23 -0700 | [diff] [blame] | 139 | out: ["UpdatableSystemFontTest_NotoSerif-Bold.sig"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 140 | } |