herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 1 | // 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 | |
| 15 | python_defaults { |
| 16 | name: "acloud_default", |
Kevin Cheng | ee6030f | 2018-06-26 10:55:30 -0700 | [diff] [blame^] | 17 | pkg_path: "acloud", |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 18 | version: { |
| 19 | py2: { |
| 20 | enabled: true, |
| 21 | embedded_launcher: false, |
| 22 | }, |
| 23 | py3: { |
| 24 | enabled: false, |
| 25 | embedded_launcher: false, |
| 26 | }, |
| 27 | }, |
| 28 | } |
| 29 | |
| 30 | python_binary_host { |
| 31 | name: "acloud", |
| 32 | defaults: ["acloud_default"], |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 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 Cheng | ee6030f | 2018-06-26 10:55:30 -0700 | [diff] [blame^] | 44 | "acloud_setup", |
Kevin Cheng | 7639d5f | 2018-06-14 13:44:46 -0700 | [diff] [blame] | 45 | "py-apitools", |
Kevin Cheng | 31e8429 | 2018-05-30 16:08:50 -0700 | [diff] [blame] | 46 | "py-dateutil", |
Kevin Cheng | 7639d5f | 2018-06-14 13:44:46 -0700 | [diff] [blame] | 47 | "py-google-api-python-client", |
| 48 | "py-oauth2client", |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
| 52 | python_library_host{ |
| 53 | name: "acloud_public", |
| 54 | defaults: ["acloud_default"], |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 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 | |
| 66 | python_library_host{ |
| 67 | name: "acloud_internal", |
| 68 | defaults: ["acloud_default"], |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 69 | srcs: [ |
| 70 | "internal/*.py", |
| 71 | "internal/lib/*.py", |
| 72 | ], |
| 73 | exclude_srcs: [ |
| 74 | "internal/*_test.py", |
| 75 | "internal/lib/*_test.py", |
| 76 | ] |
| 77 | } |
| 78 | |
| 79 | python_library_host{ |
| 80 | name: "acloud_proto", |
| 81 | defaults: ["acloud_default"], |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 82 | srcs: [ |
| 83 | "internal/proto/*.py", |
| 84 | ], |
| 85 | } |
Kevin Cheng | ee6030f | 2018-06-26 10:55:30 -0700 | [diff] [blame^] | 86 | |
| 87 | python_library_host{ |
| 88 | name: "acloud_setup", |
| 89 | defaults: ["acloud_default"], |
| 90 | srcs: [ |
| 91 | "setup/*.py", |
| 92 | ], |
| 93 | } |