blob: ff81e1ef475b10d55deb6593562d8eeb7aebe6a5 [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",
44 ],
45}
46
47python_library_host{
48 name: "acloud_public",
49 defaults: ["acloud_default"],
50 pkg_path: "acloud",
51 srcs: [
52 "public/*.py",
53 "public/actions/*.py",
54 ],
55 exclude_srcs: [
56 "public/*_test.py",
57 "public/actions/*_test.py",
58 "public/acloud_main.py",
59 ]
60}
61
62python_library_host{
63 name: "acloud_internal",
64 defaults: ["acloud_default"],
65 pkg_path: "acloud",
66 srcs: [
67 "internal/*.py",
68 "internal/lib/*.py",
69 ],
70 exclude_srcs: [
71 "internal/*_test.py",
72 "internal/lib/*_test.py",
73 ]
74}
75
76python_library_host{
77 name: "acloud_proto",
78 defaults: ["acloud_default"],
79 pkg_path: "acloud",
80 srcs: [
81 "internal/proto/*.py",
82 ],
83}