blob: 4984f947da468cc9c742e23254bc90bc24ce1d8e [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",
herbertxue615af072018-05-24 09:39:17 +000043 "acloud_public",
44 "acloud_internal",
45 "acloud_proto",
Kevin Chengee6030f2018-06-26 10:55:30 -070046 "acloud_setup",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070047 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070048 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070049 "py-google-api-python-client",
50 "py-oauth2client",
herbertxue615af072018-05-24 09:39:17 +000051 ],
52}
53
Kevin Chengda4f07a2018-06-26 10:25:05 -070054python_test_host {
55 name: "acloud_test",
56 main: "acloud_test.py",
57 defaults: ["acloud_default"],
Kevin Cheng4fce0bc2018-08-13 11:51:34 -070058 data: [
59 "public/data/default.config",
60 ],
Kevin Chengda4f07a2018-06-26 10:25:05 -070061 srcs: [
62 "acloud_test.py",
63 "public/*_test.py",
64 "public/actions/*_test.py",
65 "internal/lib/*_test.py",
66 ],
67 libs: [
68 "acloud_public",
69 "acloud_internal",
70 "acloud_proto",
71 "py-apitools",
72 "py-dateutil",
73 "py-google-api-python-client",
74 "py-oauth2client",
75 ],
76}
77
78python_library_host {
herbertxue615af072018-05-24 09:39:17 +000079 name: "acloud_public",
80 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000081 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -070082 "public/*.py",
83 "public/actions/*.py",
herbertxue615af072018-05-24 09:39:17 +000084 ],
85 exclude_srcs: [
86 "public/*_test.py",
87 "public/actions/*_test.py",
88 "public/acloud_main.py",
89 ]
90}
91
Kevin Chengda4f07a2018-06-26 10:25:05 -070092python_library_host {
herbertxue615af072018-05-24 09:39:17 +000093 name: "acloud_internal",
94 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000095 srcs: [
Kevin Chengda4f07a2018-06-26 10:25:05 -070096 "internal/*.py",
97 "internal/lib/*.py",
herbertxue615af072018-05-24 09:39:17 +000098 ],
99 exclude_srcs: [
herbertxue615af072018-05-24 09:39:17 +0000100 "internal/lib/*_test.py",
101 ]
102}
103
Kevin Chengda4f07a2018-06-26 10:25:05 -0700104python_library_host {
herbertxue615af072018-05-24 09:39:17 +0000105 name: "acloud_proto",
106 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +0000107 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -0700108 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +0000109 ],
Kevin Cheng8131d752018-06-06 14:38:43 -0700110 proto: {
111 canonical_path_from_root: false,
112 },
herbertxue615af072018-05-24 09:39:17 +0000113}
Kevin Chengee6030f2018-06-26 10:55:30 -0700114
115python_library_host{
116 name: "acloud_setup",
117 defaults: ["acloud_default"],
118 srcs: [
119 "setup/*.py",
120 ],
Sam Chiu81bdc652018-06-29 18:45:08 +0800121 exclude_srcs: [
122 "setup/*_test.py",
123 ],
Kevin Chengee6030f2018-06-26 10:55:30 -0700124}
Kevin Cheng3087af52018-08-13 13:26:50 -0700125
126python_library_host{
127 name: "acloud_create",
128 defaults: ["acloud_default"],
129 srcs: [
130 "create/*.py",
131 ],
132}