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