• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "device_generic_car_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["device_generic_car_license"],
22}
23
24// Emulator VehicleHAL implementation
25cc_library_static {
26    name: "android.hardware.automotive.vehicle@2.0-emulator-impl-lib",
27    visibility: ["//hardware/interfaces/automotive/vehicle/2.0:__subpackages__"],
28    vendor: true,
29    defaults: ["vhal_v2_0_target_defaults"],
30    cflags: ["-DENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING"],
31    srcs: [
32        "EmulatedVehicleConnector.cpp",
33        "EmulatedVehicleHal.cpp",
34        "EmulatedVehicleHalServer.cpp",
35        "VehicleEmulator.cpp",
36    ],
37    header_libs: ["vhal_v2_0_common_headers"],
38    whole_static_libs: [
39        "android.hardware.automotive.vehicle@2.0-default-impl-lib",
40    ],
41    shared_libs: [
42        "libbase",
43        "libjsoncpp",
44        "libprotobuf-cpp-lite",
45        "device.generic.car.emulator-aidl-V1-ndk",
46    ],
47    export_include_dirs: ["."],
48    static_libs: [
49        "android.hardware.automotive.vehicle@2.0-libproto-native",
50        "EmulatorCommConn",
51        "EmulatorPipeComm",
52        "EmulatorSocketComm",
53    ],
54}
55
56cc_binary {
57    name: "android.hardware.automotive.vehicle@2.0-emulator-service",
58    defaults: ["vhal_v2_0_target_defaults"],
59    vintf_fragments: [
60        "android.hardware.automotive.vehicle@2.0-emulator-service.xml",
61    ],
62    init_rc: ["android.hardware.automotive.vehicle@2.0-emulator-service.rc"],
63    vendor: true,
64    relative_install_path: "hw",
65    srcs: ["VehicleService.cpp"],
66    shared_libs: [
67        "libbase",
68        "libjsoncpp",
69        "libprotobuf-cpp-lite",
70        "device.generic.car.emulator-aidl-V1-ndk",
71    ],
72    static_libs: [
73        "android.hardware.automotive.vehicle@2.0-manager-lib",
74        "android.hardware.automotive.vehicle@2.0-libproto-native",
75        "android.hardware.automotive.vehicle@2.0-emulator-impl-lib",
76        "EmulatorCommConn",
77        "EmulatorPipeComm",
78        "EmulatorSocketComm",
79    ],
80}
81