blob: ef1d0f18ef12eb6e1555ed4918058fdac421daaa [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 {
Yu Shanb33ac202021-10-15 15:37:38 -070018 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour2f244072021-09-27 14:31:49 -070019}
20
Yu Shan23a84dd2021-09-09 14:54:20 -070021cc_binary {
22 name: "android.hardware.automotive.vehicle-aidl-default-service",
Yu Shanb33ac202021-10-15 15:37:38 -070023 vendor: true,
24 defaults: [
25 "FakeVehicleHardwareDefaults",
26 "VehicleHalDefaults",
27 "android-automotive-large-parcelable-defaults",
28 ],
Yu Shan23a84dd2021-09-09 14:54:20 -070029 vintf_fragments: ["vhal-default-service.xml"],
30 init_rc: ["vhal-default-service.rc"],
Yu Shan23a84dd2021-09-09 14:54:20 -070031 relative_install_path: "hw",
Yu Shanb33ac202021-10-15 15:37:38 -070032 srcs: ["src/VehicleService.cpp"],
33 static_libs: [
34 "DefaultVehicleHal",
35 "FakeVehicleHardware",
36 "VehicleHalUtils",
37 "android-automotive-large-parcelable-vendor-lib",
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 defaults: [
51 "VehicleHalDefaults",
52 "android-automotive-large-parcelable-defaults",
53 ],
54 local_include_dirs: ["include"],
55 export_include_dirs: ["include"],
56 srcs: ["src/DefaultVehicleHal.cpp"],
Yu Shan23a84dd2021-09-09 14:54:20 -070057 static_libs: [
58 "VehicleHalUtils",
Yu Shanb33ac202021-10-15 15:37:38 -070059 "android-automotive-large-parcelable-vendor-lib",
60 ],
61 header_libs: [
62 "IVehicleHardware",
Yu Shan23a84dd2021-09-09 14:54:20 -070063 ],
64 shared_libs: [
65 "libbinder_ndk",
66 ],
67}