blob: 9e9b70751f5286be4d9b9a7cef87b1a342923ca7 [file] [log] [blame]
Anton Hansson502b7752021-01-06 12:16:54 +00001// 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 Badourbe5b7072021-02-12 14:50:30 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Artur Satayevda839522021-03-23 15:21:43 +000019python_defaults {
20 name: "sdkextensions-proto-python-defaults",
Anton Hansson502b7752021-01-06 12:16:54 +000021 version: {
22 py2: {
23 enabled: true,
24 },
25 py3: {
26 enabled: true,
27 },
28 },
Artur Satayevda839522021-03-23 15:21:43 +000029}
30
31python_library_host {
32 name: "sdk_proto_python",
33 defaults: ["sdkextensions-proto-python-defaults"],
Anton Hansson502b7752021-01-06 12:16:54 +000034 srcs: ["sdk.proto"],
35 proto: {
36 canonical_path_from_root: false,
37 },
38}
39
40cc_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 Satayevf9f9b0b2021-03-15 14:00:36 +000050
Artur Satayevda839522021-03-23 15:21:43 +000051python_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 Satayevf9f9b0b2021-03-15 14:00:36 +000061}
62
63cc_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}