• 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_team: "trendy_team_aaos_framework",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22cc_binary {
23    name: "android.hardware.automotive.vehicle@V4-default-service",
24    vendor: true,
25    defaults: [
26        "FakeVehicleHardwareDefaults",
27        "VehicleHalDefaults",
28        "android-automotive-large-parcelable-defaults",
29    ],
30    vintf_fragments: ["vhal-default-service.xml"],
31    init_rc: ["vhal-default-service.rc"],
32    relative_install_path: "hw",
33    srcs: ["src/VehicleService.cpp"],
34    static_libs: [
35        "DefaultVehicleHal",
36        "FakeVehicleHardware",
37        "VehicleHalUtils",
38    ],
39    header_libs: [
40        "IVehicleHardware",
41    ],
42    shared_libs: [
43        "libbinder_ndk",
44    ],
45}
46
47cc_library {
48    name: "DefaultVehicleHal",
49    vendor: true,
50    host_supported: true,
51    defaults: [
52        "VehicleHalDefaults",
53    ],
54    local_include_dirs: ["include"],
55    export_include_dirs: ["include"],
56    srcs: [
57        "src/ConnectedClient.cpp",
58        "src/DefaultVehicleHal.cpp",
59        "src/SubscriptionManager.cpp",
60        // A target to check whether the file
61        // android.hardware.automotive.vehicle-types-meta.json needs update.
62        // The output is just an empty cpp file and not actually used.
63        ":check_generated_enum_metadata_json",
64    ],
65    static_libs: [
66        "VehicleHalUtils",
67    ],
68    header_libs: [
69        "IVehicleHardware",
70        "IVehicleGeneratedHeaders-V4",
71    ],
72    shared_libs: [
73        "libbinder_ndk",
74    ],
75}
76
77cc_fuzz {
78    name: "android.hardware.automotive.vehicle-default-service_fuzzer",
79    vendor: true,
80    defaults: [
81        "FakeVehicleHardwareDefaults",
82        "VehicleHalDefaults",
83        "android-automotive-large-parcelable-defaults",
84        "service_fuzzer_defaults",
85    ],
86    static_libs: [
87        "DefaultVehicleHal",
88        "FakeVehicleHardware",
89        "VehicleHalUtils",
90    ],
91    srcs: ["src/fuzzer.cpp"],
92    fuzz_config: {
93        cc: [
94            "keithmok@google.com",
95        ],
96    },
97}
98