blob: f744d5dd2b51e8d6cc632e8477cd2587e47a8da9 [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",
41 tools: ["update_font_metadata"],
42 cmd: "$(location update_font_metadata) " +
43 "--input=$(in) " +
44 "--output=$(out) " +
45 "--revision=+1",
46}
47
48genrule {
49 name: "UpdatableSystemFontTestNotoColorEmojiV1Ttf",
50 defaults: ["updatable_system_font_increment_font_revision_default"],
51 srcs: [":NotoColorEmojiTtf"],
52 out: ["UpdatableSystemFontTestNotoColorEmojiV1.ttf"],
53}
54
55genrule {
56 name: "UpdatableSystemFontTestNotoColorEmojiV2Ttf",
57 defaults: ["updatable_system_font_increment_font_revision_default"],
58 srcs: [":UpdatableSystemFontTestNotoColorEmojiV1Ttf"],
59 out: ["UpdatableSystemFontTestNotoColorEmojiV2.ttf"],
60}
61
62genrule_defaults {
63 name: "updatable_system_font_sig_gen_default",
64 tools: ["fsverity"],
65 tool_files: [":UpdatableSystemFontTestKeyPem", ":UpdatableSystemFontTestCertPem"],
66 cmd: "$(location fsverity) sign $(in) $(out) " +
67 "--key=$(location :UpdatableSystemFontTestKeyPem) " +
68 "--cert=$(location :UpdatableSystemFontTestCertPem) " +
69 "> /dev/null",
70}
71
72genrule {
73 name: "UpdatableSystemFontTestNotoColorEmojiTtfFsvSig",
74 defaults: ["updatable_system_font_sig_gen_default"],
75 srcs: [":NotoColorEmojiTtf"],
76 out: ["UpdatableSystemFontTestNotoColorEmoji.ttf.fsv_sig"],
77}
78
79genrule {
80 name: "UpdatableSystemFontTestNotoColorEmojiV1TtfFsvSig",
81 defaults: ["updatable_system_font_sig_gen_default"],
82 srcs: [":UpdatableSystemFontTestNotoColorEmojiV1Ttf"],
83 out: ["UpdatableSystemFontTestNotoColorEmojiV1.ttf.fsv_sig"],
84}
85
86genrule {
87 name: "UpdatableSystemFontTestNotoColorEmojiV2TtfFsvSig",
88 defaults: ["updatable_system_font_sig_gen_default"],
89 srcs: [":UpdatableSystemFontTestNotoColorEmojiV2Ttf"],
90 out: ["UpdatableSystemFontTestNotoColorEmojiV2.ttf.fsv_sig"],
91}