blob: 38355530b8c49830c3c5347b21effdd868eef845 [file] [log] [blame]
Kohsuke Yatohbc718222021-01-31 23:48:46 -08001// 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 Badourd5949582021-02-23 13:18:34 -080015package {
Aditya Choudharyb4262272024-01-31 11:09:29 +000016 default_team: "trendy_team_android_gpu",
Bob Badourd5949582021-02-23 13:18:34 -080017 // 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 Yatoh5ef0ea12021-06-25 21:48:03 +000025filegroup {
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000026 name: "UpdatableSystemFontTest_NotoColorEmoji.ttf",
Kohsuke Yatoh50456602022-02-16 16:36:25 -080027 srcs: ["UpdatableSystemFontTest_NotoColorEmoji.ttf"],
28}
29
30filegroup {
31 name: "UpdatableSystemFontTest_NotoSerif-Regular.ttf",
32 srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"],
33}
34
35filegroup {
36 name: "UpdatableSystemFontTest_NotoSerif-Bold.ttf",
37 srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"],
Kohsuke Yatoh5ef0ea12021-06-25 21:48:03 +000038}
39
Kohsuke Yatohbc718222021-01-31 23:48:46 -080040filegroup {
41 name: "UpdatableSystemFontTestKeyPem",
42 srcs: ["UpdatableSystemFontTestKey.pem"],
43}
44
45filegroup {
46 name: "UpdatableSystemFontTestCertPem",
47 srcs: ["UpdatableSystemFontTestCert.pem"],
48}
49
50filegroup {
51 name: "UpdatableSystemFontTestCertDer",
52 srcs: ["UpdatableSystemFontTestCert.der"],
53}
54
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070055genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070056 name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000057 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070058 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070059 tools: ["update_font_metadata"],
60 cmd: "$(location update_font_metadata) " +
61 "--input=$(in) " +
62 "--output=$(out) " +
63 "--revision=0",
64}
65
66genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070067 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000068 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070069 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080070 tools: ["update_font_metadata"],
71 cmd: "$(location update_font_metadata) " +
72 "--input=$(in) " +
73 "--output=$(out) " +
74 "--revision=+1",
75}
76
77genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070078 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000079 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070080 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070081 tools: ["update_font_metadata"],
82 cmd: "$(location update_font_metadata) " +
83 "--input=$(in) " +
84 "--output=$(out) " +
85 "--revision=+2",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080086}
87
88genrule_defaults {
89 name: "updatable_system_font_sig_gen_default",
90 tools: ["fsverity"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070091 tool_files: [
92 ":UpdatableSystemFontTestKeyPem",
93 ":UpdatableSystemFontTestCertPem",
94 ],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080095 cmd: "$(location fsverity) sign $(in) $(out) " +
96 "--key=$(location :UpdatableSystemFontTestKeyPem) " +
97 "--cert=$(location :UpdatableSystemFontTestCertPem) " +
98 "> /dev/null",
99}
100
101genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700102 name: "UpdatableSystemFontTest_NotoColorEmoji.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800103 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +0000104 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700105 out: ["UpdatableSystemFontTest_NotoColorEmoji.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800106}
107
108genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700109 name: "UpdatableSystemFontTest_NotoColorEmojiV0.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800110 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700111 srcs: [":UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
112 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800113}
114
115genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700116 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800117 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700118 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
119 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700120}
121
122genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700123 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig",
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700124 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700125 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"],
126 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig"],
127}
128
129genrule {
130 name: "UpdatableSystemFontTest_NotoSerif-Regular.sig",
131 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh50456602022-02-16 16:36:25 -0800132 srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700133 out: ["UpdatableSystemFontTest_NotoSerif-Regular.sig"],
134}
135
136genrule {
137 name: "UpdatableSystemFontTest_NotoSerif-Bold.sig",
138 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh50456602022-02-16 16:36:25 -0800139 srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700140 out: ["UpdatableSystemFontTest_NotoSerif-Bold.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800141}