1// Copyright (C) 2023 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
19cc_binary {
20    name: "android.hardware.automotive.vehicle@default-trout-service",
21    defaults: ["VehicleHalDefaults"],
22    init_rc: ["android.hardware.automotive.vehicle@default-trout-service.rc"],
23    vendor: true,
24    relative_install_path: "hw",
25    srcs: [
26        "VirtualizedVehicleService.cpp",
27    ],
28    header_libs: [
29        "IVehicleHardware",
30    ],
31    static_libs: [
32        "android.hardware.automotive.utils.vsockinfo",
33        "android.hardware.automotive.vehicle@default-grpc-hardware-lib",
34        "DefaultVehicleHal",
35        "VehicleHalUtils",
36    ],
37    shared_libs: [
38        "libbase",
39        "libcutils",
40        "libgrpc++",
41        "liblog",
42        "libprotobuf-cpp-full",
43    ],
44    cflags: [
45        "-Wno-unused-parameter",
46    ],
47    vintf_fragments: ["manifest_android.hardware.automotive.vehicle@default-trout-service.xml"],
48}
49
50cc_binary {
51    name: "android.hardware.automotive.vehicle@default-trout-fake-hardware-grpc-server",
52    defaults: [
53        "VehicleHalDefaults",
54        "FakeVehicleHardwareDefaults",
55    ],
56    init_rc: ["android.hardware.automotive.vehicle@default-trout-fake-hardware-grpc-server.rc"],
57    vendor: true,
58    relative_install_path: "hw",
59    srcs: [
60        "VirtualizedVehicleServer.cpp",
61    ],
62    static_libs: [
63        "android.hardware.automotive.utils.vsockinfo",
64        "android.hardware.automotive.vehicle@default-grpc-server-lib",
65        "FakeVehicleHardware",
66    ],
67    shared_libs: [
68        "libbase",
69        "libcutils",
70        "libgrpc++",
71        "liblog",
72        "libprotobuf-cpp-full",
73    ],
74    cflags: [
75        "-Wno-unused-parameter",
76    ],
77}
78