Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 1 | // 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 Badour | d594958 | 2021-02-23 13:18:34 -0800 | [diff] [blame] | 15 | package { |
| 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 Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 24 | filegroup { |
| 25 | name: "UpdatableSystemFontTestKeyPem", |
| 26 | srcs: ["UpdatableSystemFontTestKey.pem"], |
| 27 | } |
| 28 | |
| 29 | filegroup { |
| 30 | name: "UpdatableSystemFontTestCertPem", |
| 31 | srcs: ["UpdatableSystemFontTestCert.pem"], |
| 32 | } |
| 33 | |
| 34 | filegroup { |
| 35 | name: "UpdatableSystemFontTestCertDer", |
| 36 | srcs: ["UpdatableSystemFontTestCert.der"], |
| 37 | } |
| 38 | |
| 39 | genrule_defaults { |
| 40 | name: "updatable_system_font_increment_font_revision_default", |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 41 | } |
| 42 | |
| 43 | genrule { |
| 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 | |
| 54 | genrule { |
| 55 | name: "UpdatableSystemFontTestNotoColorEmojiVPlus1Ttf", |
| 56 | srcs: [":NotoColorEmojiTtf"], |
| 57 | out: ["UpdatableSystemFontTestNotoColorEmojiVPlus1.ttf"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 58 | tools: ["update_font_metadata"], |
| 59 | cmd: "$(location update_font_metadata) " + |
| 60 | "--input=$(in) " + |
| 61 | "--output=$(out) " + |
| 62 | "--revision=+1", |
| 63 | } |
| 64 | |
| 65 | genrule { |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 66 | name: "UpdatableSystemFontTestNotoColorEmojiVPlus2Ttf", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 67 | srcs: [":NotoColorEmojiTtf"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 68 | out: ["UpdatableSystemFontTestNotoColorEmojiVPlus2.ttf"], |
| 69 | tools: ["update_font_metadata"], |
| 70 | cmd: "$(location update_font_metadata) " + |
| 71 | "--input=$(in) " + |
| 72 | "--output=$(out) " + |
| 73 | "--revision=+2", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | genrule_defaults { |
| 77 | name: "updatable_system_font_sig_gen_default", |
| 78 | tools: ["fsverity"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 79 | tool_files: [ |
| 80 | ":UpdatableSystemFontTestKeyPem", |
| 81 | ":UpdatableSystemFontTestCertPem", |
| 82 | ], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 83 | cmd: "$(location fsverity) sign $(in) $(out) " + |
| 84 | "--key=$(location :UpdatableSystemFontTestKeyPem) " + |
| 85 | "--cert=$(location :UpdatableSystemFontTestCertPem) " + |
| 86 | "> /dev/null", |
| 87 | } |
| 88 | |
| 89 | genrule { |
| 90 | name: "UpdatableSystemFontTestNotoColorEmojiTtfFsvSig", |
| 91 | defaults: ["updatable_system_font_sig_gen_default"], |
| 92 | srcs: [":NotoColorEmojiTtf"], |
| 93 | out: ["UpdatableSystemFontTestNotoColorEmoji.ttf.fsv_sig"], |
| 94 | } |
| 95 | |
| 96 | genrule { |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 97 | name: "UpdatableSystemFontTestNotoColorEmojiV0TtfFsvSig", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 98 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 99 | srcs: [":UpdatableSystemFontTestNotoColorEmojiV0Ttf"], |
| 100 | out: ["UpdatableSystemFontTestNotoColorEmojiV0.ttf.fsv_sig"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | genrule { |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 104 | name: "UpdatableSystemFontTestNotoColorEmojiVPlus1TtfFsvSig", |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 105 | defaults: ["updatable_system_font_sig_gen_default"], |
Kohsuke Yatoh | bd636d8 | 2021-04-08 12:54:29 -0700 | [diff] [blame^] | 106 | srcs: [":UpdatableSystemFontTestNotoColorEmojiVPlus1Ttf"], |
| 107 | out: ["UpdatableSystemFontTestNotoColorEmojiVPlus1.ttf.fsv_sig"], |
| 108 | } |
| 109 | |
| 110 | genrule { |
| 111 | name: "UpdatableSystemFontTestNotoColorEmojiVPlus2TtfFsvSig", |
| 112 | defaults: ["updatable_system_font_sig_gen_default"], |
| 113 | srcs: [":UpdatableSystemFontTestNotoColorEmojiVPlus2Ttf"], |
| 114 | out: ["UpdatableSystemFontTestNotoColorEmojiVPlus2.ttf.fsv_sig"], |
Kohsuke Yatoh | bc71822 | 2021-01-31 23:48:46 -0800 | [diff] [blame] | 115 | } |