blob: 41c23901fd343d020ef65e9212c256d58cf4318e [file] [log] [blame]
herbertxue615af072018-05-24 09:39:17 +00001// 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_defaults {
16 name: "acloud_default",
Kevin Chengee6030f2018-06-26 10:55:30 -070017 pkg_path: "acloud",
herbertxue615af072018-05-24 09:39:17 +000018 version: {
19 py2: {
20 enabled: true,
21 embedded_launcher: false,
22 },
23 py3: {
24 enabled: false,
25 embedded_launcher: false,
26 },
27 },
28}
29
30python_binary_host {
31 name: "acloud",
32 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000033 main: "public/acloud_main.py",
34 srcs: [
35 "public/acloud_main.py",
Sam Chiu81bdc652018-06-29 18:45:08 +080036 "errors.py"
herbertxue615af072018-05-24 09:39:17 +000037 ],
38 data: [
39 "public/data/default.config",
40 ],
41 libs: [
Kevin Cheng3087af52018-08-13 13:26:50 -070042 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070043 "acloud_delete",
Jaewoong Jung2a029f02019-01-24 13:21:42 -080044 "acloud_reconnect",
herbertxue615af072018-05-24 09:39:17 +000045 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080046 "acloud_list",
47 "acloud_metrics",
herbertxue615af072018-05-24 09:39:17 +000048 "acloud_proto",
Kevin Cheng6001db32018-10-23 12:34:20 -070049 "acloud_public",
Kevin Chengee6030f2018-06-26 10:55:30 -070050 "acloud_setup",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070051 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070052 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070053 "py-google-api-python-client",
54 "py-oauth2client",
herbertxue615af072018-05-24 09:39:17 +000055 ],
Jaewoong Jung2a029f02019-01-24 13:21:42 -080056 dist: {
57 targets: ["droidcore"],
58 },
herbertxue615af072018-05-24 09:39:17 +000059}
60
Kevin Chengda4f07a2018-06-26 10:25:05 -070061python_test_host {
62 name: "acloud_test",
63 main: "acloud_test.py",
64 defaults: ["acloud_default"],
Kevin Cheng4fce0bc2018-08-13 11:51:34 -070065 data: [
66 "public/data/default.config",
67 ],
Kevin Chengda4f07a2018-06-26 10:25:05 -070068 srcs: [
69 "acloud_test.py",
Kevin Chengccfac9b2018-09-21 09:50:35 -070070 "errors.py",
Kevin Chengda4f07a2018-06-26 10:25:05 -070071 "public/*_test.py",
72 "public/actions/*_test.py",
73 "internal/lib/*_test.py",
74 ],
75 libs: [
Kevin Cheng86d43c72018-08-30 10:59:14 -070076 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070077 "acloud_delete",
cylan4569dca2018-11-02 12:12:53 +080078 "acloud_reconnect",
Kevin Chengda4f07a2018-06-26 10:25:05 -070079 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080080 "acloud_list",
Kevin Chengda4f07a2018-06-26 10:25:05 -070081 "acloud_proto",
Kevin Cheng86d43c72018-08-30 10:59:14 -070082 "acloud_public",
Sam Chiu4bb604a2018-10-05 18:29:10 +080083 "acloud_setup",
Kevin Chengda4f07a2018-06-26 10:25:05 -070084 "py-apitools",
85 "py-dateutil",
86 "py-google-api-python-client",
Kevin Cheng60db1bc2018-09-24 12:20:25 -070087 "py-mock",
Kevin Chengda4f07a2018-06-26 10:25:05 -070088 "py-oauth2client",
89 ],
Kevin Chengcecb7fe2018-10-02 10:40:18 -070090 test_config: "acloud_unittest.xml",
91 test_suites: ["general-tests"],
Kevin Chengda4f07a2018-06-26 10:25:05 -070092}
93
94python_library_host {
herbertxue615af072018-05-24 09:39:17 +000095 name: "acloud_public",
96 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000097 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -070098 "public/*.py",
99 "public/actions/*.py",
herbertxue615af072018-05-24 09:39:17 +0000100 ],
101 exclude_srcs: [
102 "public/*_test.py",
103 "public/actions/*_test.py",
104 "public/acloud_main.py",
105 ]
106}
107
Kevin Chengda4f07a2018-06-26 10:25:05 -0700108python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000109 name: "acloud_internal",
110 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000111 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700112 "internal/*.py",
113 "internal/lib/*.py",
herbertxue615af072018-05-24 09:39:17 +0000114 ],
115 exclude_srcs: [
herbertxue615af072018-05-24 09:39:17 +0000116 "internal/lib/*_test.py",
117 ]
118}
119
Kevin Chengda4f07a2018-06-26 10:25:05 -0700120python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000121 name: "acloud_proto",
122 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000123 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -0700124 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +0000125 ],
Kevin Cheng8131d752018-06-06 14:38:43 -0700126 proto: {
127 canonical_path_from_root: false,
128 },
herbertxue615af072018-05-24 09:39:17 +0000129}
Kevin Chengee6030f2018-06-26 10:55:30 -0700130
131python_library_host{
132 name: "acloud_setup",
133 defaults: ["acloud_default"],
134 srcs: [
135 "setup/*.py",
136 ],
Sam Chiu81bdc652018-06-29 18:45:08 +0800137 exclude_srcs: [
138 "setup/*_test.py",
139 ],
Kevin Chengee6030f2018-06-26 10:55:30 -0700140}
Kevin Cheng3087af52018-08-13 13:26:50 -0700141
142python_library_host{
143 name: "acloud_create",
144 defaults: ["acloud_default"],
145 srcs: [
146 "create/*.py",
147 ],
148}
Kevin Chengeb85e862018-10-09 15:35:13 -0700149
150python_library_host{
151 name: "acloud_delete",
152 defaults: ["acloud_default"],
153 srcs: [
154 "delete/*.py",
155 ],
156}
Kevin Cheng6001db32018-10-23 12:34:20 -0700157
158python_library_host{
Sam Chiu5029a252018-11-06 20:54:13 +0800159 name: "acloud_list",
160 defaults: ["acloud_default"],
161 srcs: [
162 "list/*.py",
163 ],
164}
165
166python_library_host{
cylan4569dca2018-11-02 12:12:53 +0800167 name: "acloud_reconnect",
168 defaults: ["acloud_default"],
169 srcs: [
170 "reconnect/*.py",
171 ],
172}
173
174python_library_host{
Kevin Cheng6001db32018-10-23 12:34:20 -0700175 name: "acloud_metrics",
176 defaults: ["acloud_default"],
177 srcs: [
178 "metrics/*.py",
179 ],
180 libs: [
181 "asuite_metrics",
182 ],
183}