xref: /aosp_15_r20/external/roboto-fonts/Android.bp (revision 1c02616541589594d007c9d7f5b79091a550c7fb)
1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["external_roboto-fonts_license"],
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23    name: "external_roboto-fonts_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33filegroup {
34    name: "recovery_roboto-fonts_dep",
35    export_to_make_var: "recovery_roboto-fonts_dep",
36    srcs: [
37        "*.otf",
38        "*.ttf",
39    ],
40}
41
42prebuilt_font {
43    name: "Roboto-Regular.ttf",
44    src: "Roboto-Regular.ttf",
45    // These symlinks are for backward compatibility.
46    symlinks: [
47        "DroidSans.ttf",
48        "DroidSans-Bold.ttf",
49    ],
50}
51
52// This static version of fonts are for backward compatibility.
53prebuilt_font {
54    name: "RobotoStatic-Regular.ttf",
55    src: "RobotoStatic-Regular.ttf",
56}
57
58filegroup {
59    name: "Roboto",
60    srcs: ["font_config.json"],
61    required: [
62        "Roboto-Regular.ttf",
63    ],
64}
65