• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2021 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_binary {
22    name: "android.hardware.automotive.vehicle@V1-default-service",
23    vendor: true,
24    defaults: [
25        "FakeVehicleHardwareDefaults",
26        "VehicleHalDefaults",
27        "android-automotive-large-parcelable-defaults",
28    ],
29    vintf_fragments: ["vhal-default-service.xml"],
30    init_rc: ["vhal-default-service.rc"],
31    relative_install_path: "hw",
32    srcs: ["src/VehicleService.cpp"],
33    static_libs: [
34        "DefaultVehicleHal",
35        "FakeVehicleHardware",
36        "VehicleHalUtils",
37    ],
38    header_libs: [
39        "IVehicleHardware",
40    ],
41    shared_libs: [
42        "libbinder_ndk",
43    ],
44}
45
46cc_library {
47    name: "DefaultVehicleHal",
48    vendor: true,
49    defaults: [
50        "VehicleHalDefaults",
51    ],
52    local_include_dirs: ["include"],
53    export_include_dirs: ["include"],
54    srcs: [
55        "src/ConnectedClient.cpp",
56        "src/DefaultVehicleHal.cpp",
57        "src/SubscriptionManager.cpp",
58    ],
59    static_libs: [
60        "VehicleHalUtils",
61    ],
62    header_libs: [
63        "IVehicleHardware",
64    ],
65    shared_libs: [
66        "libbinder_ndk",
67    ],
68}
69
70cc_fuzz {
71    name: "android.hardware.automotive.vehicle@V1-default-service_fuzzer",
72    vendor: true,
73    defaults: [
74        "FakeVehicleHardwareDefaults",
75        "VehicleHalDefaults",
76        "android-automotive-large-parcelable-defaults",
77        "service_fuzzer_defaults",
78    ],
79    static_libs: [
80        "DefaultVehicleHal",
81        "FakeVehicleHardware",
82        "VehicleHalUtils",
83    ],
84    srcs: ["src/fuzzer.cpp"],
85    fuzz_config: {
86        cc: [
87            "keithmok@google.com",
88        ],
89    },
90}
91