blob: c152cb0f7cdaecf8c3ab63030a6720bae4e44537 [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",
cylan4569dca2018-11-02 12:12:53 +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 ],
56}
57
Kevin Chengda4f07a2018-06-26 10:25:05 -070058python_test_host {
59 name: "acloud_test",
60 main: "acloud_test.py",
61 defaults: ["acloud_default"],
Kevin Cheng4fce0bc2018-08-13 11:51:34 -070062 data: [
63 "public/data/default.config",
64 ],
Kevin Chengda4f07a2018-06-26 10:25:05 -070065 srcs: [
66 "acloud_test.py",
Kevin Chengccfac9b2018-09-21 09:50:35 -070067 "errors.py",
Kevin Chengda4f07a2018-06-26 10:25:05 -070068 "public/*_test.py",
69 "public/actions/*_test.py",
70 "internal/lib/*_test.py",
71 ],
72 libs: [
Kevin Cheng86d43c72018-08-30 10:59:14 -070073 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070074 "acloud_delete",
cylan4569dca2018-11-02 12:12:53 +080075 "acloud_reconnect",
Kevin Chengda4f07a2018-06-26 10:25:05 -070076 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080077 "acloud_list",
Kevin Chengda4f07a2018-06-26 10:25:05 -070078 "acloud_proto",
Kevin Cheng86d43c72018-08-30 10:59:14 -070079 "acloud_public",
Sam Chiu4bb604a2018-10-05 18:29:10 +080080 "acloud_setup",
Kevin Chengda4f07a2018-06-26 10:25:05 -070081 "py-apitools",
82 "py-dateutil",
83 "py-google-api-python-client",
Kevin Cheng60db1bc2018-09-24 12:20:25 -070084 "py-mock",
Kevin Chengda4f07a2018-06-26 10:25:05 -070085 "py-oauth2client",
86 ],
Kevin Chengcecb7fe2018-10-02 10:40:18 -070087 test_config: "acloud_unittest.xml",
88 test_suites: ["general-tests"],
Kevin Chengda4f07a2018-06-26 10:25:05 -070089}
90
91python_library_host {
herbertxue615af072018-05-24 09:39:17 +000092 name: "acloud_public",
93 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000094 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -070095 "public/*.py",
96 "public/actions/*.py",
herbertxue615af072018-05-24 09:39:17 +000097 ],
98 exclude_srcs: [
99 "public/*_test.py",
100 "public/actions/*_test.py",
101 "public/acloud_main.py",
102 ]
103}
104
Kevin Chengda4f07a2018-06-26 10:25:05 -0700105python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000106 name: "acloud_internal",
107 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000108 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700109 "internal/*.py",
110 "internal/lib/*.py",
herbertxue615af072018-05-24 09:39:17 +0000111 ],
112 exclude_srcs: [
herbertxue615af072018-05-24 09:39:17 +0000113 "internal/lib/*_test.py",
114 ]
115}
116
Kevin Chengda4f07a2018-06-26 10:25:05 -0700117python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000118 name: "acloud_proto",
119 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000120 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -0700121 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +0000122 ],
Kevin Cheng8131d752018-06-06 14:38:43 -0700123 proto: {
124 canonical_path_from_root: false,
125 },
herbertxue615af072018-05-24 09:39:17 +0000126}
Kevin Chengee6030f2018-06-26 10:55:30 -0700127
128python_library_host{
129 name: "acloud_setup",
130 defaults: ["acloud_default"],
131 srcs: [
132 "setup/*.py",
133 ],
Sam Chiu81bdc652018-06-29 18:45:08 +0800134 exclude_srcs: [
135 "setup/*_test.py",
136 ],
Kevin Chengee6030f2018-06-26 10:55:30 -0700137}
Kevin Cheng3087af52018-08-13 13:26:50 -0700138
139python_library_host{
140 name: "acloud_create",
141 defaults: ["acloud_default"],
142 srcs: [
143 "create/*.py",
144 ],
145}
Kevin Chengeb85e862018-10-09 15:35:13 -0700146
147python_library_host{
148 name: "acloud_delete",
149 defaults: ["acloud_default"],
150 srcs: [
151 "delete/*.py",
152 ],
153}
Kevin Cheng6001db32018-10-23 12:34:20 -0700154
155python_library_host{
Sam Chiu5029a252018-11-06 20:54:13 +0800156 name: "acloud_list",
157 defaults: ["acloud_default"],
158 srcs: [
159 "list/*.py",
160 ],
161}
162
163python_library_host{
cylan4569dca2018-11-02 12:12:53 +0800164 name: "acloud_reconnect",
165 defaults: ["acloud_default"],
166 srcs: [
167 "reconnect/*.py",
168 ],
169}
170
171python_library_host{
Kevin Cheng6001db32018-10-23 12:34:20 -0700172 name: "acloud_metrics",
173 defaults: ["acloud_default"],
174 srcs: [
175 "metrics/*.py",
176 ],
177 libs: [
178 "asuite_metrics",
179 ],
180}