• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library_shared {
22
23    name: "libvts_multidevice_proto",
24    host_supported: true,
25    // TODO(b/153609531): remove when no longer needed.
26    native_bridge_supported: true,
27
28    srcs: [
29        "AndroidSystemControlMessage.proto",
30        "ComponentSpecificationMessage.proto",
31        "VtsProfilingMessage.proto",
32        "VtsReportMessage.proto",
33        "VtsResourceControllerMessage.proto",
34    ],
35
36    cflags: [
37        "-Wall",
38        "-Werror",
39    ],
40
41    proto: {
42        export_proto_headers: true,
43        type: "full",
44    },
45
46    target: {
47        android: {
48            srcs: ["VtsDriverControlMessage.proto"],
49        },
50        host: {
51            cflags: [
52                "-Wno-unused-parameter",
53                "-Werror",
54            ],
55        },
56    },
57}
58
59cc_library_shared {
60    name: "libvts_proto_fuzzer_proto",
61    proto: {
62        export_proto_headers: true,
63        type: "full",
64    },
65    srcs: [
66        "ExecutionSpecificationMessage.proto",
67    ],
68    shared_libs: [
69        "libprotobuf-cpp-full",
70        "libvts_multidevice_proto",
71    ],
72    cflags: [
73        "-Wall",
74        "-Werror",
75        "-Wno-unused-parameter",
76    ],
77}
78
79java_library_host {
80    name: "libvts_protos_host",
81    srcs: ["**/*.proto"],
82    proto: {
83        type: "full",
84    },
85}
86