blob: 0bdb3a8c6b14c2c9f8410dacb022a5646557903c [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 {
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 Yatoh5ef0ea12021-06-25 21:48:03 +000024filegroup {
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000025 name: "UpdatableSystemFontTest_NotoColorEmoji.ttf",
Kohsuke Yatoh50456602022-02-16 16:36:25 -080026 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"],
Kohsuke Yatoh5ef0ea12021-06-25 21:48:03 +000037}
38
Kohsuke Yatohbc718222021-01-31 23:48:46 -080039filegroup {
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
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070054genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070055 name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000056 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070057 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070058 tools: ["update_font_metadata"],
59 cmd: "$(location update_font_metadata) " +
60 "--input=$(in) " +
61 "--output=$(out) " +
62 "--revision=0",
63}
64
65genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070066 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000067 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070068 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080069 tools: ["update_font_metadata"],
70 cmd: "$(location update_font_metadata) " +
71 "--input=$(in) " +
72 "--output=$(out) " +
73 "--revision=+1",
74}
75
76genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070077 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf",
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +000078 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070079 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070080 tools: ["update_font_metadata"],
81 cmd: "$(location update_font_metadata) " +
82 "--input=$(in) " +
83 "--output=$(out) " +
84 "--revision=+2",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080085}
86
87genrule_defaults {
88 name: "updatable_system_font_sig_gen_default",
89 tools: ["fsverity"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070090 tool_files: [
91 ":UpdatableSystemFontTestKeyPem",
92 ":UpdatableSystemFontTestCertPem",
93 ],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080094 cmd: "$(location fsverity) sign $(in) $(out) " +
95 "--key=$(location :UpdatableSystemFontTestKeyPem) " +
96 "--cert=$(location :UpdatableSystemFontTestCertPem) " +
97 "> /dev/null",
98}
99
100genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700101 name: "UpdatableSystemFontTest_NotoColorEmoji.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800102 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh5b1bac72021-07-22 18:54:46 +0000103 srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700104 out: ["UpdatableSystemFontTest_NotoColorEmoji.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800105}
106
107genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700108 name: "UpdatableSystemFontTest_NotoColorEmojiV0.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800109 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700110 srcs: [":UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
111 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800112}
113
114genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700115 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800116 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700117 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
118 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700119}
120
121genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700122 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig",
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700123 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700124 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"],
Kohsuke Yatoh50456602022-02-16 16:36:25 -0800131 srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700132 out: ["UpdatableSystemFontTest_NotoSerif-Regular.sig"],
133}
134
135genrule {
136 name: "UpdatableSystemFontTest_NotoSerif-Bold.sig",
137 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh50456602022-02-16 16:36:25 -0800138 srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700139 out: ["UpdatableSystemFontTest_NotoSerif-Bold.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800140}