blob: be0860d15349599417dcc9a723ed9b081f206565 [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",
17 version: {
18 py2: {
19 enabled: true,
20 embedded_launcher: false,
21 },
22 py3: {
23 enabled: false,
24 embedded_launcher: false,
25 },
26 },
27}
28
29python_binary_host {
30 name: "acloud",
31 defaults: ["acloud_default"],
32 pkg_path: "acloud",
33 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 Cheng7639d5f2018-06-14 13:44:46 -070044 "py-apitools",
Kevin Cheng31e84292018-05-30 16:08:50 -070045 "py-dateutil",
Kevin Cheng7639d5f2018-06-14 13:44:46 -070046 "py-google-api-python-client",
47 "py-oauth2client",
herbertxue615af072018-05-24 09:39:17 +000048 ],
49}
50
51python_library_host{
52 name: "acloud_public",
53 defaults: ["acloud_default"],
54 pkg_path: "acloud",
55 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"],
69 pkg_path: "acloud",
70 srcs: [
71 "internal/*.py",
72 "internal/lib/*.py",
73 ],
74 exclude_srcs: [
75 "internal/*_test.py",
76 "internal/lib/*_test.py",
77 ]
78}
79
80python_library_host{
81 name: "acloud_proto",
82 defaults: ["acloud_default"],
83 pkg_path: "acloud",
84 srcs: [
85 "internal/proto/*.py",
86 ],
87}