(raulenrique) | dfdda47 | 2018-06-04 12:02:29 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 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_binary_host { |
| 16 | name: "external_updater", |
| 17 | main: "external_updater.py", |
| 18 | srcs: [ |
Haibo Huang | 9dcade4 | 2018-08-03 11:52:25 -0700 | [diff] [blame] | 19 | "external_updater.py", |
| 20 | ], |
| 21 | libs: [ |
| 22 | "external_updater_lib", |
| 23 | ], |
| 24 | } |
| 25 | |
Haibo Huang | 39aaab6 | 2019-01-25 12:23:03 -0800 | [diff] [blame] | 26 | python_binary_host { |
| 27 | name: "external_updater_notifier", |
| 28 | main: "notifier.py", |
| 29 | srcs: [ |
Haibo Huang | 11c4a75 | 2019-01-31 15:07:03 -0800 | [diff] [blame] | 30 | "git_utils.py", |
Haibo Huang | 39aaab6 | 2019-01-25 12:23:03 -0800 | [diff] [blame] | 31 | "notifier.py", |
| 32 | ], |
| 33 | } |
| 34 | |
Haibo Huang | 9dcade4 | 2018-08-03 11:52:25 -0700 | [diff] [blame] | 35 | python_library_host { |
| 36 | name: "external_updater_lib", |
| 37 | srcs: [ |
Haibo Huang | 39aaab6 | 2019-01-25 12:23:03 -0800 | [diff] [blame] | 38 | "archive_utils.py", |
| 39 | "fileutils.py", |
| 40 | "git_updater.py", |
| 41 | "git_utils.py", |
| 42 | "github_archive_updater.py", |
(raulenrique) | dfdda47 | 2018-06-04 12:02:29 -0700 | [diff] [blame] | 43 | "metadata.proto", |
Haibo Huang | 39aaab6 | 2019-01-25 12:23:03 -0800 | [diff] [blame] | 44 | "updater_utils.py", |
Haibo Huang | 9dcade4 | 2018-08-03 11:52:25 -0700 | [diff] [blame] | 45 | ], |
(raulenrique) | dfdda47 | 2018-06-04 12:02:29 -0700 | [diff] [blame] | 46 | libs: [ |
| 47 | "python-symbol", |
| 48 | "libprotobuf-python", |
| 49 | ], |
| 50 | proto: { |
| 51 | canonical_path_from_root: false, |
| 52 | }, |
| 53 | data: [ |
| 54 | "update_package.sh", |
| 55 | ], |
| 56 | version: { |
| 57 | py2: { |
| 58 | enabled: false, |
| 59 | embedded_launcher: false, |
| 60 | }, |
| 61 | py3: { |
| 62 | enabled: true, |
| 63 | embedded_launcher: false, |
| 64 | }, |
| 65 | }, |
| 66 | } |
| 67 | |
Haibo Huang | 9dcade4 | 2018-08-03 11:52:25 -0700 | [diff] [blame] | 68 | python_test_host { |
| 69 | name: "external_updater_test", |
| 70 | main: "external_updater_test.py", |
| 71 | srcs: [ |
| 72 | "external_updater_test.py", |
| 73 | ], |
| 74 | libs: [ |
| 75 | "external_updater_lib", |
| 76 | ], |
| 77 | } |