blob: c4f158d3ad8f2505ef88c2bb9e989281d1bcd5c1 [file] [log] [blame]
(raulenrique)dfdda472018-06-04 12:02:29 -07001// 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
15python_binary_host {
16 name: "external_updater",
17 main: "external_updater.py",
18 srcs: [
Haibo Huang9dcade42018-08-03 11:52:25 -070019 "external_updater.py",
20 ],
21 libs: [
22 "external_updater_lib",
23 ],
24}
25
Haibo Huang39aaab62019-01-25 12:23:03 -080026python_binary_host {
27 name: "external_updater_notifier",
28 main: "notifier.py",
29 srcs: [
Haibo Huang11c4a752019-01-31 15:07:03 -080030 "git_utils.py",
Haibo Huang39aaab62019-01-25 12:23:03 -080031 "notifier.py",
32 ],
33}
34
Haibo Huang9dcade42018-08-03 11:52:25 -070035python_library_host {
36 name: "external_updater_lib",
37 srcs: [
Haibo Huang39aaab62019-01-25 12:23:03 -080038 "archive_utils.py",
39 "fileutils.py",
40 "git_updater.py",
41 "git_utils.py",
42 "github_archive_updater.py",
(raulenrique)dfdda472018-06-04 12:02:29 -070043 "metadata.proto",
Haibo Huang39aaab62019-01-25 12:23:03 -080044 "updater_utils.py",
Haibo Huang9dcade42018-08-03 11:52:25 -070045 ],
(raulenrique)dfdda472018-06-04 12:02:29 -070046 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 Huang9dcade42018-08-03 11:52:25 -070068python_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}