blob: 3ff0421e5b274d21156f625d1bbacc019460484b [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",
herbertxue00b241b2019-04-08 12:04:44 +080032 // Make acloud's built name to acloud-dev
33 stem: "acloud-dev",
herbertxue615af072018-05-24 09:39:17 +000034 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000035 main: "public/acloud_main.py",
36 srcs: [
37 "public/acloud_main.py",
Sam Chiu81bdc652018-06-29 18:45:08 +080038 "errors.py"
herbertxue615af072018-05-24 09:39:17 +000039 ],
40 data: [
41 "public/data/default.config",
42 ],
43 libs: [
Kevin Cheng3087af52018-08-13 13:26:50 -070044 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070045 "acloud_delete",
Jaewoong Jung2a029f02019-01-24 13:21:42 -080046 "acloud_reconnect",
herbertxue615af072018-05-24 09:39:17 +000047 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080048 "acloud_list",
herbertxue61bfd972019-09-24 15:51:52 +080049 "acloud_pull",
Sam Chiu5029a252018-11-06 20:54:13 +080050 "acloud_metrics",
herbertxue615af072018-05-24 09:39:17 +000051 "acloud_proto",
Kevin Cheng6001db32018-10-23 12:34:20 -070052 "acloud_public",
Kevin Chengee6030f2018-06-26 10:55:30 -070053 "acloud_setup",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070054 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070055 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070056 "py-google-api-python-client",
57 "py-oauth2client",
Kevin Chengf091eaa2019-09-10 11:05:29 -070058 "py-pyopenssl",
herbertxue615af072018-05-24 09:39:17 +000059 ],
Jaewoong Jung2a029f02019-01-24 13:21:42 -080060 dist: {
61 targets: ["droidcore"],
62 },
herbertxue615af072018-05-24 09:39:17 +000063}
64
Kevin Chengda4f07a2018-06-26 10:25:05 -070065python_test_host {
66 name: "acloud_test",
67 main: "acloud_test.py",
68 defaults: ["acloud_default"],
Kevin Cheng4fce0bc2018-08-13 11:51:34 -070069 data: [
70 "public/data/default.config",
71 ],
Kevin Chengda4f07a2018-06-26 10:25:05 -070072 srcs: [
73 "acloud_test.py",
Kevin Chengccfac9b2018-09-21 09:50:35 -070074 "errors.py",
Kevin Chengda4f07a2018-06-26 10:25:05 -070075 "public/*_test.py",
76 "public/actions/*_test.py",
77 "internal/lib/*_test.py",
Sam Chiue791f602019-05-03 15:18:10 +080078 "metrics/*.py",
Kevin Chengda4f07a2018-06-26 10:25:05 -070079 ],
80 libs: [
Kevin Cheng86d43c72018-08-30 10:59:14 -070081 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070082 "acloud_delete",
herbertxue61bfd972019-09-24 15:51:52 +080083 "acloud_reconnect",
Kevin Chengda4f07a2018-06-26 10:25:05 -070084 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080085 "acloud_list",
herbertxue61bfd972019-09-24 15:51:52 +080086 "acloud_pull",
Kevin Chengda4f07a2018-06-26 10:25:05 -070087 "acloud_proto",
Kevin Cheng86d43c72018-08-30 10:59:14 -070088 "acloud_public",
Sam Chiu4bb604a2018-10-05 18:29:10 +080089 "acloud_setup",
Sam Chiue791f602019-05-03 15:18:10 +080090 "asuite_cc_client",
Kevin Chengda4f07a2018-06-26 10:25:05 -070091 "py-apitools",
92 "py-dateutil",
93 "py-google-api-python-client",
Kevin Cheng60db1bc2018-09-24 12:20:25 -070094 "py-mock",
Kevin Chengda4f07a2018-06-26 10:25:05 -070095 "py-oauth2client",
96 ],
Kevin Chengcecb7fe2018-10-02 10:40:18 -070097 test_config: "acloud_unittest.xml",
98 test_suites: ["general-tests"],
Kevin Chengda4f07a2018-06-26 10:25:05 -070099}
100
101python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000102 name: "acloud_public",
103 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000104 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700105 "public/*.py",
106 "public/actions/*.py",
herbertxue615af072018-05-24 09:39:17 +0000107 ],
108 exclude_srcs: [
109 "public/*_test.py",
110 "public/actions/*_test.py",
111 "public/acloud_main.py",
112 ]
113}
114
Kevin Chengda4f07a2018-06-26 10:25:05 -0700115python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000116 name: "acloud_internal",
117 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000118 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700119 "internal/*.py",
120 "internal/lib/*.py",
herbertxue615af072018-05-24 09:39:17 +0000121 ],
122 exclude_srcs: [
herbertxue615af072018-05-24 09:39:17 +0000123 "internal/lib/*_test.py",
124 ]
125}
126
Kevin Chengda4f07a2018-06-26 10:25:05 -0700127python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000128 name: "acloud_proto",
129 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000130 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -0700131 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +0000132 ],
Kevin Cheng8131d752018-06-06 14:38:43 -0700133 proto: {
134 canonical_path_from_root: false,
135 },
herbertxue615af072018-05-24 09:39:17 +0000136}
Kevin Chengee6030f2018-06-26 10:55:30 -0700137
138python_library_host{
139 name: "acloud_setup",
140 defaults: ["acloud_default"],
141 srcs: [
142 "setup/*.py",
143 ],
Sam Chiu81bdc652018-06-29 18:45:08 +0800144 exclude_srcs: [
145 "setup/*_test.py",
146 ],
Kevin Chengee6030f2018-06-26 10:55:30 -0700147}
Kevin Cheng3087af52018-08-13 13:26:50 -0700148
149python_library_host{
150 name: "acloud_create",
151 defaults: ["acloud_default"],
152 srcs: [
153 "create/*.py",
154 ],
155}
Kevin Chengeb85e862018-10-09 15:35:13 -0700156
157python_library_host{
158 name: "acloud_delete",
159 defaults: ["acloud_default"],
160 srcs: [
161 "delete/*.py",
162 ],
163}
Kevin Cheng6001db32018-10-23 12:34:20 -0700164
165python_library_host{
Sam Chiu5029a252018-11-06 20:54:13 +0800166 name: "acloud_list",
167 defaults: ["acloud_default"],
168 srcs: [
169 "list/*.py",
170 ],
171}
172
173python_library_host{
cylan4569dca2018-11-02 12:12:53 +0800174 name: "acloud_reconnect",
175 defaults: ["acloud_default"],
176 srcs: [
177 "reconnect/*.py",
178 ],
179}
180
181python_library_host{
herbertxue61bfd972019-09-24 15:51:52 +0800182 name: "acloud_pull",
183 defaults: ["acloud_default"],
184 srcs: [
185 "pull/*.py",
186 ],
187}
188
189python_library_host{
Kevin Cheng6001db32018-10-23 12:34:20 -0700190 name: "acloud_metrics",
191 defaults: ["acloud_default"],
192 srcs: [
193 "metrics/*.py",
194 ],
195 libs: [
Sam Chiue791f602019-05-03 15:18:10 +0800196 "asuite_cc_client",
Kevin Cheng6001db32018-10-23 12:34:20 -0700197 "asuite_metrics",
198 ],
199}