Anton Hansson | 502b775 | 2021-01-06 12:16:54 +0000 | [diff] [blame] | 1 | // Copyright (C) 2021 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 | |
Bob Badour | be5b707 | 2021-02-12 14:50:30 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Artur Satayev | da83952 | 2021-03-23 15:21:43 +0000 | [diff] [blame] | 19 | python_defaults { |
| 20 | name: "sdkextensions-proto-python-defaults", |
Anton Hansson | 502b775 | 2021-01-06 12:16:54 +0000 | [diff] [blame] | 21 | version: { |
| 22 | py2: { |
| 23 | enabled: true, |
| 24 | }, |
| 25 | py3: { |
| 26 | enabled: true, |
| 27 | }, |
| 28 | }, |
Artur Satayev | da83952 | 2021-03-23 15:21:43 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | python_library_host { |
| 32 | name: "sdk_proto_python", |
| 33 | defaults: ["sdkextensions-proto-python-defaults"], |
Anton Hansson | 502b775 | 2021-01-06 12:16:54 +0000 | [diff] [blame] | 34 | srcs: ["sdk.proto"], |
| 35 | proto: { |
| 36 | canonical_path_from_root: false, |
| 37 | }, |
| 38 | } |
| 39 | |
| 40 | cc_library_static { |
| 41 | name: "libsdk_proto", |
| 42 | proto: { |
| 43 | export_proto_headers: true, |
| 44 | type: "lite", |
| 45 | }, |
| 46 | srcs: ["sdk.proto"], |
| 47 | min_sdk_version: "30", |
| 48 | apex_available: ["com.android.sdkext"], |
| 49 | } |
Artur Satayev | f9f9b0b | 2021-03-15 14:00:36 +0000 | [diff] [blame] | 50 | |
Artur Satayev | da83952 | 2021-03-23 15:21:43 +0000 | [diff] [blame] | 51 | python_library_host { |
| 52 | name: "classpaths_proto_python", |
| 53 | defaults: ["sdkextensions-proto-python-defaults"], |
| 54 | srcs: [ |
| 55 | "classpaths.proto", |
| 56 | ], |
| 57 | proto: { |
| 58 | canonical_path_from_root: false, |
| 59 | }, |
| 60 | visibility: ["//build/soong/scripts"], |
Artur Satayev | f9f9b0b | 2021-03-15 14:00:36 +0000 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | cc_library_static { |
| 64 | name: "libclasspaths_proto", |
| 65 | proto: { |
| 66 | export_proto_headers: true, |
| 67 | type: "lite", |
| 68 | }, |
| 69 | srcs: ["classpaths.proto"], |
| 70 | min_sdk_version: "30", |
| 71 | apex_available: ["com.android.sdkext"], |
| 72 | } |