blob: ae1102f6d20b7b7414a48a732a121199e414dd06 [file] [log] [blame]
Yu Shanb33ac202021-10-15 15:37:38 -07001/*
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 */
Yu Shan23a84dd2021-09-09 14:54:20 -070016
Bob Badour2f244072021-09-27 14:31:49 -070017package {
Aditya Choudhary04ef2122024-02-02 14:00:43 +000018 default_team: "trendy_team_aaos_framework",
Yu Shanb33ac202021-10-15 15:37:38 -070019 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour2f244072021-09-27 14:31:49 -070020}
21
Yu Shan23a84dd2021-09-09 14:54:20 -070022cc_binary {
Yu Shanc1ee9862023-09-15 17:32:59 -070023 name: "android.hardware.automotive.vehicle@V3-default-service",
Yu Shanb33ac202021-10-15 15:37:38 -070024 vendor: true,
25 defaults: [
26 "FakeVehicleHardwareDefaults",
27 "VehicleHalDefaults",
28 "android-automotive-large-parcelable-defaults",
29 ],
Yu Shan23a84dd2021-09-09 14:54:20 -070030 vintf_fragments: ["vhal-default-service.xml"],
31 init_rc: ["vhal-default-service.rc"],
Yu Shan23a84dd2021-09-09 14:54:20 -070032 relative_install_path: "hw",
Yu Shanb33ac202021-10-15 15:37:38 -070033 srcs: ["src/VehicleService.cpp"],
34 static_libs: [
35 "DefaultVehicleHal",
36 "FakeVehicleHardware",
Yu Shan75d311d2022-02-09 12:01:43 -080037 "VehicleHalUtils",
Yu Shanb33ac202021-10-15 15:37:38 -070038 ],
39 header_libs: [
40 "IVehicleHardware",
41 ],
42 shared_libs: [
43 "libbinder_ndk",
44 ],
45}
46
47cc_library {
48 name: "DefaultVehicleHal",
49 vendor: true,
50 defaults: [
51 "VehicleHalDefaults",
Yu Shanb33ac202021-10-15 15:37:38 -070052 ],
53 local_include_dirs: ["include"],
54 export_include_dirs: ["include"],
Yu Shan7a1c24f2021-11-05 17:13:24 -070055 srcs: [
56 "src/ConnectedClient.cpp",
57 "src/DefaultVehicleHal.cpp",
Yu Shan686ec512021-11-01 16:04:56 -070058 "src/SubscriptionManager.cpp",
Yu Shan493a0cd2024-01-04 14:46:58 -080059 // A target to check whether the file
60 // android.hardware.automotive.vehicle-types-meta.json needs update.
61 // The output is just an empty cpp file and not actually used.
62 ":check_generated_enum_metadata_json",
Yu Shan7a1c24f2021-11-05 17:13:24 -070063 ],
Yu Shan23a84dd2021-09-09 14:54:20 -070064 static_libs: [
Yu Shan75d311d2022-02-09 12:01:43 -080065 "VehicleHalUtils",
Yu Shanb33ac202021-10-15 15:37:38 -070066 ],
67 header_libs: [
68 "IVehicleHardware",
Yu Shan83baf0e2023-12-15 16:43:40 -080069 "IVehicleGeneratedHeaders",
Yu Shan23a84dd2021-09-09 14:54:20 -070070 ],
71 shared_libs: [
72 "libbinder_ndk",
73 ],
74}
Keith Mok4dc3b822022-05-05 21:32:33 +000075
76cc_fuzz {
Yu Shanc1ee9862023-09-15 17:32:59 -070077 name: "android.hardware.automotive.vehicle-default-service_fuzzer",
Keith Mok4dc3b822022-05-05 21:32:33 +000078 vendor: true,
79 defaults: [
80 "FakeVehicleHardwareDefaults",
81 "VehicleHalDefaults",
82 "android-automotive-large-parcelable-defaults",
Pawana759ebf2022-08-19 22:32:21 +000083 "service_fuzzer_defaults",
Keith Mok4dc3b822022-05-05 21:32:33 +000084 ],
Keith Mok4dc3b822022-05-05 21:32:33 +000085 static_libs: [
86 "DefaultVehicleHal",
87 "FakeVehicleHardware",
88 "VehicleHalUtils",
Keith Mok4dc3b822022-05-05 21:32:33 +000089 ],
90 srcs: ["src/fuzzer.cpp"],
91 fuzz_config: {
92 cc: [
93 "keithmok@google.com",
94 ],
95 },
96}