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", |
| 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 | |
| 29 | python_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 Cheng | 7639d5f | 2018-06-14 13:44:46 -0700 | [diff] [blame^] | 44 | "py-apitools", |
Kevin Cheng | 31e8429 | 2018-05-30 16:08:50 -0700 | [diff] [blame] | 45 | "py-dateutil", |
Kevin Cheng | 7639d5f | 2018-06-14 13:44:46 -0700 | [diff] [blame^] | 46 | "py-google-api-python-client", |
| 47 | "py-oauth2client", |
herbertxue | 615af07 | 2018-05-24 09:39:17 +0000 | [diff] [blame] | 48 | ], |
| 49 | } |
| 50 | |
| 51 | python_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 | |
| 66 | python_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 | |
| 80 | python_library_host{ |
| 81 | name: "acloud_proto", |
| 82 | defaults: ["acloud_default"], |
| 83 | pkg_path: "acloud", |
| 84 | srcs: [ |
| 85 | "internal/proto/*.py", |
| 86 | ], |
| 87 | } |