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} 22 23python_library_host { 24 name: "sdk_proto_python", 25 defaults: ["modules-common-proto-python-defaults"], 26 srcs: ["sdk.proto"], 27 proto: { 28 canonical_path_from_root: false, 29 }, 30 visibility: [ 31 "//packages/modules/SdkExtensions/gen_sdk", 32 "//packages/modules/common/tools", 33 ], 34} 35 36cc_library_static { 37 name: "libsdk_proto", 38 proto: { 39 export_proto_headers: true, 40 type: "lite", 41 }, 42 srcs: ["sdk.proto"], 43 min_sdk_version: "30", 44 apex_available: ["com.android.sdkext"], 45 visibility: ["//packages/modules/SdkExtensions/derive_sdk"], 46} 47 48python_library_host { 49 name: "classpaths_proto_python", 50 defaults: ["modules-common-proto-python-defaults"], 51 srcs: ["classpaths.proto"], 52 proto: { 53 canonical_path_from_root: false, 54 }, 55} 56 57cc_library_static { 58 name: "libclasspaths_proto", 59 proto: { 60 export_proto_headers: true, 61 type: "lite", 62 }, 63 srcs: ["classpaths.proto"], 64 min_sdk_version: "30", 65 apex_available: ["com.android.sdkext"], 66 visibility: ["//packages/modules/SdkExtensions/derive_classpath"], 67} 68