Anton Hansson | 9f9f90b | 2021-04-12 17:15:11 +0100 | [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 | |
| 15 | python_defaults { |
| 16 | name: "fonts_python_defaults", |
| 17 | version: { |
| 18 | py2: { |
| 19 | enabled: false, |
| 20 | embedded_launcher: false, |
| 21 | }, |
| 22 | py3: { |
| 23 | enabled: true, |
| 24 | embedded_launcher: true, |
| 25 | }, |
| 26 | }, |
| 27 | } |
| 28 | |
| 29 | python_binary_host { |
| 30 | name: "fontchain_linter", |
| 31 | defaults: ["fonts_python_defaults"], |
| 32 | main: "fontchain_linter.py", |
| 33 | srcs: [ |
| 34 | "fontchain_linter.py", |
| 35 | ], |
| 36 | libs: [ |
| 37 | "fontTools", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | python_binary_host { |
| 42 | name: "update_font_metadata", |
| 43 | defaults: ["fonts_python_defaults"], |
| 44 | main: "update_font_metadata.py", |
| 45 | srcs: [ |
| 46 | "update_font_metadata.py", |
| 47 | ], |
| 48 | libs: [ |
| 49 | "fontTools", |
| 50 | ], |
| 51 | } |