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", |
| 41 | tools: ["update_font_metadata"], |
| 42 | cmd: "$(location update_font_metadata) " + |
| 43 | "--input=$(in) " + |
| 44 | "--output=$(out) " + |
| 45 | "--revision=+1", |
| 46 | } |
| 47 | |
| 48 | genrule { |
| 49 | name: "UpdatableSystemFontTestNotoColorEmojiV1Ttf", |
| 50 | defaults: ["updatable_system_font_increment_font_revision_default"], |
| 51 | srcs: [":NotoColorEmojiTtf"], |
| 52 | out: ["UpdatableSystemFontTestNotoColorEmojiV1.ttf"], |
| 53 | } |
| 54 | |
| 55 | genrule { |
| 56 | name: "UpdatableSystemFontTestNotoColorEmojiV2Ttf", |
| 57 | defaults: ["updatable_system_font_increment_font_revision_default"], |
| 58 | srcs: [":UpdatableSystemFontTestNotoColorEmojiV1Ttf"], |
| 59 | out: ["UpdatableSystemFontTestNotoColorEmojiV2.ttf"], |
| 60 | } |
| 61 | |
| 62 | genrule_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 | |
| 72 | genrule { |
| 73 | name: "UpdatableSystemFontTestNotoColorEmojiTtfFsvSig", |
| 74 | defaults: ["updatable_system_font_sig_gen_default"], |
| 75 | srcs: [":NotoColorEmojiTtf"], |
| 76 | out: ["UpdatableSystemFontTestNotoColorEmoji.ttf.fsv_sig"], |
| 77 | } |
| 78 | |
| 79 | genrule { |
| 80 | name: "UpdatableSystemFontTestNotoColorEmojiV1TtfFsvSig", |
| 81 | defaults: ["updatable_system_font_sig_gen_default"], |
| 82 | srcs: [":UpdatableSystemFontTestNotoColorEmojiV1Ttf"], |
| 83 | out: ["UpdatableSystemFontTestNotoColorEmojiV1.ttf.fsv_sig"], |
| 84 | } |
| 85 | |
| 86 | genrule { |
| 87 | name: "UpdatableSystemFontTestNotoColorEmojiV2TtfFsvSig", |
| 88 | defaults: ["updatable_system_font_sig_gen_default"], |
| 89 | srcs: [":UpdatableSystemFontTestNotoColorEmojiV2Ttf"], |
| 90 | out: ["UpdatableSystemFontTestNotoColorEmojiV2.ttf.fsv_sig"], |
| 91 | } |