• 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
17cc_library_shared {
18
19    name: "libvts_multidevice_proto",
20    host_supported: true,
21    // TODO(b/153609531): remove when no longer needed.
22    native_bridge_supported: true,
23
24    srcs: [
25        "AndroidSystemControlMessage.proto",
26        "ComponentSpecificationMessage.proto",
27        "VtsProfilingMessage.proto",
28        "VtsReportMessage.proto",
29        "VtsResourceControllerMessage.proto",
30    ],
31
32    cflags: [
33        "-Wall",
34        "-Werror",
35    ],
36
37    proto: {
38        export_proto_headers: true,
39        type: "full",
40    },
41
42    target: {
43        android: {
44            srcs: ["VtsDriverControlMessage.proto"],
45        },
46        host: {
47            cflags: [
48                "-Wno-unused-parameter",
49                "-Werror",
50            ],
51        },
52    },
53}
54
55cc_library_shared {
56    name: "libvts_proto_fuzzer_proto",
57    proto: {
58        export_proto_headers: true,
59        type: "full",
60    },
61    srcs: [
62        "ExecutionSpecificationMessage.proto",
63    ],
64    shared_libs: [
65        "libprotobuf-cpp-full",
66        "libvts_multidevice_proto",
67    ],
68    cflags: [
69        "-Wall",
70        "-Werror",
71        "-Wno-unused-parameter",
72    ],
73}
74
75java_library_host {
76    name: "libvts_protos_host",
77    srcs: ["**/*.proto"],
78    proto: {
79        type: "full",
80    },
81}
82