1// Copyright 2022 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    default_team: "trendy_team_adte",
18}
19
20python_library_host {
21    name: "asuite_proto",
22    srcs: [
23        "atest/proto/*.proto",
24    ],
25    proto: {
26        canonical_path_from_root: false,
27    },
28}
29
30java_library_host {
31    name: "asuite_proto_java",
32    srcs: [
33        "atest/proto/*.proto",
34    ],
35    proto: {
36        type: "full",
37        canonical_path_from_root: false,
38        include_dirs: ["external/protobuf/src"],
39    },
40    // b/267831518: Pin tradefed and dependencies to Java 11.
41    java_version: "11",
42}
43
44python_library_host {
45    name: "tradefed-protos-py",
46    srcs: [
47        "atest/tf_proto/*.proto",
48    ],
49    visibility: [
50        "//tools/asuite/atest",
51    ],
52    libs: [
53        "libprotobuf-python",
54    ],
55    proto: {
56        include_dirs: ["external/protobuf/src"],
57        canonical_path_from_root: false,
58    },
59}
60