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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_defaults { 20 name: "modules-common-proto-python-defaults", 21 version: { 22 py2: { 23 enabled: false, 24 }, 25 py3: { 26 enabled: true, 27 }, 28 }, 29} 30 31python_library_host { 32 name: "sdk_proto_python", 33 defaults: ["modules-common-proto-python-defaults"], 34 srcs: ["sdk.proto"], 35 proto: { 36 canonical_path_from_root: false, 37 }, 38 visibility: [ 39 "//packages/modules/SdkExtensions/gen_sdk", 40 "//packages/modules/common/tools", 41 ], 42} 43 44cc_library_static { 45 name: "libsdk_proto", 46 proto: { 47 export_proto_headers: true, 48 type: "lite", 49 }, 50 srcs: ["sdk.proto"], 51 min_sdk_version: "30", 52 apex_available: ["com.android.sdkext"], 53 visibility: ["//packages/modules/SdkExtensions/derive_sdk"], 54} 55 56python_library_host { 57 name: "classpaths_proto_python", 58 defaults: ["modules-common-proto-python-defaults"], 59 srcs: ["classpaths.proto"], 60 proto: { 61 canonical_path_from_root: false, 62 }, 63} 64 65cc_library_static { 66 name: "libclasspaths_proto", 67 proto: { 68 export_proto_headers: true, 69 type: "lite", 70 }, 71 srcs: ["classpaths.proto"], 72 min_sdk_version: "30", 73 apex_available: ["com.android.sdkext"], 74 visibility: ["//packages/modules/SdkExtensions/derive_classpath"], 75} 76