blob: 1e6cb5e0567c5bf6e6ba17f65fca1aa992a54a01 [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 Yatohbc718222021-01-31 23:48:46 -080024filegroup {
25 name: "UpdatableSystemFontTestKeyPem",
26 srcs: ["UpdatableSystemFontTestKey.pem"],
27}
28
29filegroup {
30 name: "UpdatableSystemFontTestCertPem",
31 srcs: ["UpdatableSystemFontTestCert.pem"],
32}
33
34filegroup {
35 name: "UpdatableSystemFontTestCertDer",
36 srcs: ["UpdatableSystemFontTestCert.der"],
37}
38
39genrule_defaults {
40 name: "updatable_system_font_increment_font_revision_default",
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070041}
42
43genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070044 name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf",
45 srcs: [":NotoColorEmoji.ttf"],
46 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070047 tools: ["update_font_metadata"],
48 cmd: "$(location update_font_metadata) " +
49 "--input=$(in) " +
50 "--output=$(out) " +
51 "--revision=0",
52}
53
54genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070055 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf",
56 srcs: [":NotoColorEmoji.ttf"],
57 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080058 tools: ["update_font_metadata"],
59 cmd: "$(location update_font_metadata) " +
60 "--input=$(in) " +
61 "--output=$(out) " +
62 "--revision=+1",
63}
64
65genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070066 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf",
67 srcs: [":NotoColorEmoji.ttf"],
68 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070069 tools: ["update_font_metadata"],
70 cmd: "$(location update_font_metadata) " +
71 "--input=$(in) " +
72 "--output=$(out) " +
73 "--revision=+2",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080074}
75
76genrule_defaults {
77 name: "updatable_system_font_sig_gen_default",
78 tools: ["fsverity"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070079 tool_files: [
80 ":UpdatableSystemFontTestKeyPem",
81 ":UpdatableSystemFontTestCertPem",
82 ],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080083 cmd: "$(location fsverity) sign $(in) $(out) " +
84 "--key=$(location :UpdatableSystemFontTestKeyPem) " +
85 "--cert=$(location :UpdatableSystemFontTestCertPem) " +
86 "> /dev/null",
87}
88
89genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070090 name: "UpdatableSystemFontTest_NotoColorEmoji.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080091 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070092 srcs: [":NotoColorEmoji.ttf"],
93 out: ["UpdatableSystemFontTest_NotoColorEmoji.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -080094}
95
96genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070097 name: "UpdatableSystemFontTest_NotoColorEmojiV0.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080098 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -070099 srcs: [":UpdatableSystemFontTest_NotoColorEmojiV0.ttf"],
100 out: ["UpdatableSystemFontTest_NotoColorEmojiV0.sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800101}
102
103genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700104 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800105 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700106 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus1.ttf"],
107 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700108}
109
110genrule {
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700111 name: "UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig",
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700112 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatoh865a9cb2021-05-19 11:36:23 -0700113 srcs: [":UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf"],
114 out: ["UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig"],
115}
116
117genrule {
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
124genrule {
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 Yatohbc718222021-01-31 23:48:46 -0800129}