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
15python_binary_host {
16    name: "external_updater",
17    main: "external_updater.py",
18    srcs: [
19        "external_updater.py",
20    ],
21    libs: [
22        "external_updater_lib",
23    ],
24}
25
26python_binary_host {
27    name: "external_updater_notifier",
28    main: "notifier.py",
29    srcs: [
30        "git_utils.py",
31        "notifier.py",
32    ],
33}
34
35python_library_host {
36    name: "external_updater_lib",
37    srcs: [
38        "archive_utils.py",
39        "fileutils.py",
40        "git_updater.py",
41        "git_utils.py",
42        "github_archive_updater.py",
43        "metadata.proto",
44        "updater_utils.py",
45    ],
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
68python_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}
78