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