xref: /aosp_15_r20/external/fonttools/Lib/fontTools/Android.bp (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughes// Copyright 2017 Google Inc. All rights reserved.
2*e1fe3e4aSElliott Hughes//
3*e1fe3e4aSElliott Hughes// Licensed under the Apache License, Version 2.0 (the "License");
4*e1fe3e4aSElliott Hughes// you may not use this file except in compliance with the License.
5*e1fe3e4aSElliott Hughes// You may obtain a copy of the License at
6*e1fe3e4aSElliott Hughes//
7*e1fe3e4aSElliott Hughes//     http://www.apache.org/licenses/LICENSE-2.0
8*e1fe3e4aSElliott Hughes//
9*e1fe3e4aSElliott Hughes// Unless required by applicable law or agreed to in writing, software
10*e1fe3e4aSElliott Hughes// distributed under the License is distributed on an "AS IS" BASIS,
11*e1fe3e4aSElliott Hughes// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*e1fe3e4aSElliott Hughes// See the License for the specific language governing permissions and
13*e1fe3e4aSElliott Hughes// limitations under the License.
14*e1fe3e4aSElliott Hughes// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
15*e1fe3e4aSElliott Hughes//     CONSULT THE OWNERS AND [email protected] BEFORE
16*e1fe3e4aSElliott Hughes//     DEPENDING ON IT IN YOUR PROJECT. ***
17*e1fe3e4aSElliott Hughespackage {
18*e1fe3e4aSElliott Hughes    // See: http://go/android-license-faq
19*e1fe3e4aSElliott Hughes    // A large-scale-change added 'default_applicable_licenses' to import
20*e1fe3e4aSElliott Hughes    // all of the 'license_kinds' from "external_fonttools_license"
21*e1fe3e4aSElliott Hughes    // to get the below license kinds:
22*e1fe3e4aSElliott Hughes    //   SPDX-license-identifier-Apache-2.0
23*e1fe3e4aSElliott Hughes    //   SPDX-license-identifier-BSD
24*e1fe3e4aSElliott Hughes    //   SPDX-license-identifier-MIT
25*e1fe3e4aSElliott Hughes    //   SPDX-license-identifier-OFL (by exception only)
26*e1fe3e4aSElliott Hughes    //   SPDX-license-identifier-Unicode-DFS
27*e1fe3e4aSElliott Hughes    //   legacy_unencumbered
28*e1fe3e4aSElliott Hughes    default_applicable_licenses: ["external_fonttools_license"],
29*e1fe3e4aSElliott Hughes}
30*e1fe3e4aSElliott Hughes
31*e1fe3e4aSElliott Hughespython_defaults {
32*e1fe3e4aSElliott Hughes    name: "fonttools_default",
33*e1fe3e4aSElliott Hughes    version: {
34*e1fe3e4aSElliott Hughes        py3: {
35*e1fe3e4aSElliott Hughes            embedded_launcher: true,
36*e1fe3e4aSElliott Hughes        },
37*e1fe3e4aSElliott Hughes    },
38*e1fe3e4aSElliott Hughes}
39*e1fe3e4aSElliott Hughespython_library_host {
40*e1fe3e4aSElliott Hughes    name: "fontTools",
41*e1fe3e4aSElliott Hughes    defaults: ["fonttools_default"],
42*e1fe3e4aSElliott Hughes    pkg_path: "fontTools",
43*e1fe3e4aSElliott Hughes    srcs: [
44*e1fe3e4aSElliott Hughes        "**/*.py",
45*e1fe3e4aSElliott Hughes    ],
46*e1fe3e4aSElliott Hughes}
47