1// Copyright 2017 Google Inc. All rights reserved. 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// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE 15// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE 16// DEPENDING ON IT IN YOUR PROJECT. *** 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "external_fonttools_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 // SPDX-license-identifier-BSD 24 // SPDX-license-identifier-MIT 25 // SPDX-license-identifier-OFL (by exception only) 26 // SPDX-license-identifier-Unicode-DFS 27 // legacy_unencumbered 28 default_applicable_licenses: ["external_fonttools_license"], 29} 30 31python_defaults { 32 name: "fonttools_default", 33 version: { 34 py2: { 35 enabled: false, 36 embedded_launcher: false, 37 }, 38 py3: { 39 enabled: true, 40 embedded_launcher: true, 41 }, 42 }, 43} 44python_library_host { 45 name: "fontTools", 46 defaults: ["fonttools_default"], 47 pkg_path: "fontTools", 48 srcs: [ 49 "**/*.py", 50 ], 51} 52