blob: 0f01be014d523bf95ba9da5de54ac35e4eb9b7c8 [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 {
44 name: "UpdatableSystemFontTestNotoColorEmojiV0Ttf",
45 srcs: [":NotoColorEmojiTtf"],
46 out: ["UpdatableSystemFontTestNotoColorEmojiV0.ttf"],
47 tools: ["update_font_metadata"],
48 cmd: "$(location update_font_metadata) " +
49 "--input=$(in) " +
50 "--output=$(out) " +
51 "--revision=0",
52}
53
54genrule {
55 name: "UpdatableSystemFontTestNotoColorEmojiVPlus1Ttf",
56 srcs: [":NotoColorEmojiTtf"],
57 out: ["UpdatableSystemFontTestNotoColorEmojiVPlus1.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 Yatohbd636d82021-04-08 12:54:29 -070066 name: "UpdatableSystemFontTestNotoColorEmojiVPlus2Ttf",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080067 srcs: [":NotoColorEmojiTtf"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070068 out: ["UpdatableSystemFontTestNotoColorEmojiVPlus2.ttf"],
69 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 {
90 name: "UpdatableSystemFontTestNotoColorEmojiTtfFsvSig",
91 defaults: ["updatable_system_font_sig_gen_default"],
92 srcs: [":NotoColorEmojiTtf"],
93 out: ["UpdatableSystemFontTestNotoColorEmoji.ttf.fsv_sig"],
94}
95
96genrule {
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070097 name: "UpdatableSystemFontTestNotoColorEmojiV0TtfFsvSig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -080098 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -070099 srcs: [":UpdatableSystemFontTestNotoColorEmojiV0Ttf"],
100 out: ["UpdatableSystemFontTestNotoColorEmojiV0.ttf.fsv_sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800101}
102
103genrule {
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700104 name: "UpdatableSystemFontTestNotoColorEmojiVPlus1TtfFsvSig",
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800105 defaults: ["updatable_system_font_sig_gen_default"],
Kohsuke Yatohbd636d82021-04-08 12:54:29 -0700106 srcs: [":UpdatableSystemFontTestNotoColorEmojiVPlus1Ttf"],
107 out: ["UpdatableSystemFontTestNotoColorEmojiVPlus1.ttf.fsv_sig"],
108}
109
110genrule {
111 name: "UpdatableSystemFontTestNotoColorEmojiVPlus2TtfFsvSig",
112 defaults: ["updatable_system_font_sig_gen_default"],
113 srcs: [":UpdatableSystemFontTestNotoColorEmojiVPlus2Ttf"],
114 out: ["UpdatableSystemFontTestNotoColorEmojiVPlus2.ttf.fsv_sig"],
Kohsuke Yatohbc718222021-01-31 23:48:46 -0800115}