xref: /aosp_15_r20/tools/asuite/Android.bp (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1*c2e18aaaSAndroid Build Coastguard Worker// Copyright 2022 The Android Open Source Project
2*c2e18aaaSAndroid Build Coastguard Worker//
3*c2e18aaaSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*c2e18aaaSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*c2e18aaaSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*c2e18aaaSAndroid Build Coastguard Worker//
7*c2e18aaaSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0
8*c2e18aaaSAndroid Build Coastguard Worker//
9*c2e18aaaSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*c2e18aaaSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*c2e18aaaSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*c2e18aaaSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*c2e18aaaSAndroid Build Coastguard Worker// limitations under the License.
14*c2e18aaaSAndroid Build Coastguard Worker
15*c2e18aaaSAndroid Build Coastguard Workerpackage {
16*c2e18aaaSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*c2e18aaaSAndroid Build Coastguard Worker    default_team: "trendy_team_adte",
18*c2e18aaaSAndroid Build Coastguard Worker}
19*c2e18aaaSAndroid Build Coastguard Worker
20*c2e18aaaSAndroid Build Coastguard Workerpython_library_host {
21*c2e18aaaSAndroid Build Coastguard Worker    name: "asuite_proto",
22*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
23*c2e18aaaSAndroid Build Coastguard Worker        "atest/proto/*.proto",
24*c2e18aaaSAndroid Build Coastguard Worker    ],
25*c2e18aaaSAndroid Build Coastguard Worker    proto: {
26*c2e18aaaSAndroid Build Coastguard Worker        canonical_path_from_root: false,
27*c2e18aaaSAndroid Build Coastguard Worker    },
28*c2e18aaaSAndroid Build Coastguard Worker}
29*c2e18aaaSAndroid Build Coastguard Worker
30*c2e18aaaSAndroid Build Coastguard Workerjava_library_host {
31*c2e18aaaSAndroid Build Coastguard Worker    name: "asuite_proto_java",
32*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
33*c2e18aaaSAndroid Build Coastguard Worker        "atest/proto/*.proto",
34*c2e18aaaSAndroid Build Coastguard Worker    ],
35*c2e18aaaSAndroid Build Coastguard Worker    proto: {
36*c2e18aaaSAndroid Build Coastguard Worker        type: "full",
37*c2e18aaaSAndroid Build Coastguard Worker        canonical_path_from_root: false,
38*c2e18aaaSAndroid Build Coastguard Worker        include_dirs: ["external/protobuf/src"],
39*c2e18aaaSAndroid Build Coastguard Worker    },
40*c2e18aaaSAndroid Build Coastguard Worker    // b/267831518: Pin tradefed and dependencies to Java 11.
41*c2e18aaaSAndroid Build Coastguard Worker    java_version: "11",
42*c2e18aaaSAndroid Build Coastguard Worker}
43*c2e18aaaSAndroid Build Coastguard Worker
44*c2e18aaaSAndroid Build Coastguard Workerpython_library_host {
45*c2e18aaaSAndroid Build Coastguard Worker    name: "tradefed-protos-py",
46*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
47*c2e18aaaSAndroid Build Coastguard Worker        "atest/tf_proto/*.proto",
48*c2e18aaaSAndroid Build Coastguard Worker    ],
49*c2e18aaaSAndroid Build Coastguard Worker    visibility: [
50*c2e18aaaSAndroid Build Coastguard Worker        "//tools/asuite/atest",
51*c2e18aaaSAndroid Build Coastguard Worker    ],
52*c2e18aaaSAndroid Build Coastguard Worker    libs: [
53*c2e18aaaSAndroid Build Coastguard Worker        "libprotobuf-python",
54*c2e18aaaSAndroid Build Coastguard Worker    ],
55*c2e18aaaSAndroid Build Coastguard Worker    proto: {
56*c2e18aaaSAndroid Build Coastguard Worker        include_dirs: ["external/protobuf/src"],
57*c2e18aaaSAndroid Build Coastguard Worker        canonical_path_from_root: false,
58*c2e18aaaSAndroid Build Coastguard Worker    },
59*c2e18aaaSAndroid Build Coastguard Worker}
60*c2e18aaaSAndroid Build Coastguard Worker
61*c2e18aaaSAndroid Build Coastguard Workerfilegroup {
62*c2e18aaaSAndroid Build Coastguard Worker    name: "adte-owners-files",
63*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
64*c2e18aaaSAndroid Build Coastguard Worker        "OWNERS_ADTE_TEAM",
65*c2e18aaaSAndroid Build Coastguard Worker        "OWNERS",
66*c2e18aaaSAndroid Build Coastguard Worker    ],
67*c2e18aaaSAndroid Build Coastguard Worker}
68