blob: 6b4e4f5c835834e974cfe4a98bd18bc031a92dc0 [file] [log] [blame]
Tao Bao30e31142019-04-09 00:12:30 -07001// Copyright (C) 2019 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_defaults {
Tao Baoca82fc92019-05-01 21:58:03 -070016 name: "releasetools_defaults",
Tao Bao30e31142019-04-09 00:12:30 -070017 version: {
18 py2: {
19 enabled: true,
20 embedded_launcher: false,
21 },
22 py3: {
Tao Baoca82fc92019-05-01 21:58:03 -070023 enabled: true,
24 embedded_launcher: false,
Tao Bao30e31142019-04-09 00:12:30 -070025 },
26 },
27}
28
29python_library_host {
30 name: "releasetools_lib",
Tao Baoca82fc92019-05-01 21:58:03 -070031 defaults: ["releasetools_defaults"],
Tao Bao30e31142019-04-09 00:12:30 -070032 srcs: [
33 "add_img_to_target_files.py",
34 "apex_utils.py",
35 "blockimgdiff.py",
36 "build_image.py",
37 "build_super_image.py",
38 "check_ota_package_signature.py",
39 "check_target_files_signatures.py",
40 "common.py",
41 "edify_generator.py",
42 "img_from_target_files.py",
43 "make_recovery_patch.py",
44 "merge_target_files.py",
45 "ota_from_target_files.py",
46 "ota_package_parser.py",
47 "rangelib.py",
Tao Baoc9c1b862019-06-26 14:54:14 -070048 "sign_apex.py",
Tao Bao30e31142019-04-09 00:12:30 -070049 "sign_target_files_apks.py",
50 "sparse_img.py",
51 "target_files_diff.py",
52 "validate_target_files.py",
53 "verity_utils.py",
54 ],
55}
56
Tao Baoca82fc92019-05-01 21:58:03 -070057python_defaults {
58 name: "releasetools_test_defaults",
59 defaults: ["releasetools_defaults"],
Tao Bao30e31142019-04-09 00:12:30 -070060 srcs: [
61 "test_*.py",
62 ],
63 libs: [
64 "releasetools_lib",
65 ],
66 data: [
67 "testdata/*",
68 ],
69 required: [
70 "otatools",
71 ],
Tao Baoca82fc92019-05-01 21:58:03 -070072}
73
74python_test_host {
75 name: "releasetools_test",
76 defaults: ["releasetools_test_defaults"],
77 main: "test_utils.py",
78 version: {
79 py2: {
80 enabled: true,
81 embedded_launcher: false,
82 },
83 py3: {
84 enabled: false,
85 embedded_launcher: false,
86 },
87 },
88 test_suites: ["general-tests"],
89}
90
91python_test_host {
92 name: "releasetools_py3_test",
93 defaults: ["releasetools_test_defaults"],
94 main: "test_utils.py",
95 version: {
96 py2: {
97 enabled: false,
98 embedded_launcher: false,
99 },
100 py3: {
101 enabled: true,
102 embedded_launcher: false,
103 },
104 },
Tao Bao30e31142019-04-09 00:12:30 -0700105 test_suites: ["general-tests"],
106}