blob: 65b7b79e35ae70906cb49035751de93ddc048509 [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",
49 "acloud_metrics",
herbertxue615af072018-05-24 09:39:17 +000050 "acloud_proto",
Kevin Cheng6001db32018-10-23 12:34:20 -070051 "acloud_public",
Kevin Chengee6030f2018-06-26 10:55:30 -070052 "acloud_setup",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070053 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070054 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070055 "py-google-api-python-client",
56 "py-oauth2client",
herbertxue615af072018-05-24 09:39:17 +000057 ],
Jaewoong Jung2a029f02019-01-24 13:21:42 -080058 dist: {
59 targets: ["droidcore"],
60 },
herbertxue615af072018-05-24 09:39:17 +000061}
62
Kevin Chengda4f07a2018-06-26 10:25:05 -070063python_test_host {
64 name: "acloud_test",
65 main: "acloud_test.py",
66 defaults: ["acloud_default"],
Kevin Cheng4fce0bc2018-08-13 11:51:34 -070067 data: [
68 "public/data/default.config",
69 ],
Kevin Chengda4f07a2018-06-26 10:25:05 -070070 srcs: [
71 "acloud_test.py",
Kevin Chengccfac9b2018-09-21 09:50:35 -070072 "errors.py",
Kevin Chengda4f07a2018-06-26 10:25:05 -070073 "public/*_test.py",
74 "public/actions/*_test.py",
75 "internal/lib/*_test.py",
76 ],
77 libs: [
Kevin Cheng86d43c72018-08-30 10:59:14 -070078 "acloud_create",
Kevin Chengeb85e862018-10-09 15:35:13 -070079 "acloud_delete",
cylan4569dca2018-11-02 12:12:53 +080080 "acloud_reconnect",
Kevin Chengda4f07a2018-06-26 10:25:05 -070081 "acloud_internal",
Sam Chiu5029a252018-11-06 20:54:13 +080082 "acloud_list",
Kevin Chengda4f07a2018-06-26 10:25:05 -070083 "acloud_proto",
Kevin Cheng86d43c72018-08-30 10:59:14 -070084 "acloud_public",
Sam Chiu4bb604a2018-10-05 18:29:10 +080085 "acloud_setup",
Kevin Chengda4f07a2018-06-26 10:25:05 -070086 "py-apitools",
87 "py-dateutil",
88 "py-google-api-python-client",
Kevin Cheng60db1bc2018-09-24 12:20:25 -070089 "py-mock",
Kevin Chengda4f07a2018-06-26 10:25:05 -070090 "py-oauth2client",
91 ],
Kevin Chengcecb7fe2018-10-02 10:40:18 -070092 test_config: "acloud_unittest.xml",
93 test_suites: ["general-tests"],
Kevin Chengda4f07a2018-06-26 10:25:05 -070094}
95
96python_library_host {
herbertxue615af072018-05-24 09:39:17 +000097 name: "acloud_public",
98 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000099 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700100 "public/*.py",
101 "public/actions/*.py",
herbertxue615af072018-05-24 09:39:17 +0000102 ],
103 exclude_srcs: [
104 "public/*_test.py",
105 "public/actions/*_test.py",
106 "public/acloud_main.py",
107 ]
108}
109
Kevin Chengda4f07a2018-06-26 10:25:05 -0700110python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000111 name: "acloud_internal",
112 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000113 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -0700114 "internal/*.py",
115 "internal/lib/*.py",
herbertxue615af072018-05-24 09:39:17 +0000116 ],
117 exclude_srcs: [
herbertxue615af072018-05-24 09:39:17 +0000118 "internal/lib/*_test.py",
119 ]
120}
121
Kevin Chengda4f07a2018-06-26 10:25:05 -0700122python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000123 name: "acloud_proto",
124 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000125 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -0700126 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +0000127 ],
Kevin Cheng8131d752018-06-06 14:38:43 -0700128 proto: {
129 canonical_path_from_root: false,
130 },
herbertxue615af072018-05-24 09:39:17 +0000131}
Kevin Chengee6030f2018-06-26 10:55:30 -0700132
133python_library_host{
134 name: "acloud_setup",
135 defaults: ["acloud_default"],
136 srcs: [
137 "setup/*.py",
138 ],
Sam Chiu81bdc652018-06-29 18:45:08 +0800139 exclude_srcs: [
140 "setup/*_test.py",
141 ],
Kevin Chengee6030f2018-06-26 10:55:30 -0700142}
Kevin Cheng3087af52018-08-13 13:26:50 -0700143
144python_library_host{
145 name: "acloud_create",
146 defaults: ["acloud_default"],
147 srcs: [
148 "create/*.py",
149 ],
150}
Kevin Chengeb85e862018-10-09 15:35:13 -0700151
152python_library_host{
153 name: "acloud_delete",
154 defaults: ["acloud_default"],
155 srcs: [
156 "delete/*.py",
157 ],
158}
Kevin Cheng6001db32018-10-23 12:34:20 -0700159
160python_library_host{
Sam Chiu5029a252018-11-06 20:54:13 +0800161 name: "acloud_list",
162 defaults: ["acloud_default"],
163 srcs: [
164 "list/*.py",
165 ],
166}
167
168python_library_host{
cylan4569dca2018-11-02 12:12:53 +0800169 name: "acloud_reconnect",
170 defaults: ["acloud_default"],
171 srcs: [
172 "reconnect/*.py",
173 ],
174}
175
176python_library_host{
Kevin Cheng6001db32018-10-23 12:34:20 -0700177 name: "acloud_metrics",
178 defaults: ["acloud_default"],
179 srcs: [
180 "metrics/*.py",
181 ],
182 libs: [
183 "asuite_metrics",
184 ],
185}