blob: 6efe74a9832b3ee5c6725965da2c52dd84871942 [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",
36 ],
37 data: [
38 "public/data/default.config",
39 ],
40 libs: [
41 "acloud_public",
42 "acloud_internal",
43 "acloud_proto",
Kevin Chengee6030f2018-06-26 10:55:30 -070044 "acloud_setup",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070045 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070046 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070047 "py-google-api-python-client",
48 "py-oauth2client",
herbertxue615af072018-05-24 09:39:17 +000049 ],
50}
51
52python_library_host{
53 name: "acloud_public",
54 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000055 srcs: [
56 "public/*.py",
57 "public/actions/*.py",
58 ],
59 exclude_srcs: [
60 "public/*_test.py",
61 "public/actions/*_test.py",
62 "public/acloud_main.py",
63 ]
64}
65
66python_library_host{
67 name: "acloud_internal",
68 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000069 srcs: [
70 "internal/*.py",
71 "internal/lib/*.py",
72 ],
73 exclude_srcs: [
74 "internal/*_test.py",
75 "internal/lib/*_test.py",
76 ]
77}
78
79python_library_host{
80 name: "acloud_proto",
81 defaults: ["acloud_default"],
herbertxue615af072018-05-24 09:39:17 +000082 srcs: [
Kevin Cheng8131d752018-06-06 14:38:43 -070083 "internal/proto/*.proto",
herbertxue615af072018-05-24 09:39:17 +000084 ],
Kevin Cheng8131d752018-06-06 14:38:43 -070085 proto: {
86 canonical_path_from_root: false,
87 },
herbertxue615af072018-05-24 09:39:17 +000088}
Kevin Chengee6030f2018-06-26 10:55:30 -070089
90python_library_host{
91 name: "acloud_setup",
92 defaults: ["acloud_default"],
93 srcs: [
94 "setup/*.py",
95 ],
96}