blob: f6743f261fad79bd160f27dd6226e8c2d2b60620 [file] [log] [blame]
Tri Vofc871402017-07-10 17:13:23 -07001// Copyright (C) 2017 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
15cc_defaults {
16 name: "vhal_v2_1_defaults",
17 defaults: ["vhal_v2_0_defaults"],
18 shared_libs: [
19 "libhwbinder",
20 "android.hardware.automotive.vehicle@2.1",
21 ],
22}
23
24// Vehicle reference implementation lib
25cc_library_static {
26 name: "android.hardware.automotive.vehicle@2.1-manager-lib",
Tri Vo22b2d682017-07-11 12:53:12 -070027 vendor: true,
Tri Vofc871402017-07-10 17:13:23 -070028 defaults: ["vhal_v2_1_defaults"],
29 srcs: [
30 "common/src/Obd2SensorStore.cpp",
31 ],
32 local_include_dirs: ["common/include/vhal_v2_1"],
33 header_libs: ["vhal_v2_0_common_headers"],
34 export_include_dirs: ["common/include"],
35}
36
37// Vehicle default VehicleHAL implementation
38cc_library_static {
39 name: "android.hardware.automotive.vehicle@2.1-default-impl-lib",
Tri Vo22b2d682017-07-11 12:53:12 -070040 vendor: true,
Tri Vofc871402017-07-10 17:13:23 -070041 defaults: ["vhal_v2_1_defaults"],
42 srcs: [
43 "impl/vhal_v2_1/EmulatedVehicleHal.cpp",
44 ],
45 local_include_dirs: [
46 "impl/vhal_v2_1",
47 "common/include",
48 ],
49 export_include_dirs: [
50 "impl",
51 "common/include",
52 ],
53 static_libs: [
54 "android.hardware.automotive.vehicle@2.0-default-impl-lib",
55 "android.hardware.automotive.vehicle@2.0-libproto-native",
56 "android.hardware.automotive.vehicle@2.0-manager-lib",
57 "android.hardware.automotive.vehicle@2.1-manager-lib",
58 "libqemu_pipe",
59 ],
60 shared_libs: [
61 "libbase",
62 "libprotobuf-cpp-lite",
63 ],
64}
65
66cc_binary {
67 name: "android.hardware.automotive.vehicle@2.1-service",
68 defaults: ["vhal_v2_1_defaults"],
69 init_rc: ["android.hardware.automotive.vehicle@2.1-service.rc"],
Tri Vo22b2d682017-07-11 12:53:12 -070070 vendor: true,
Tri Vofc871402017-07-10 17:13:23 -070071 relative_install_path: "hw",
72 srcs: ["service.cpp"],
73 whole_static_libs: ["android.hardware.automotive.vehicle@2.0-libproto-native"],
74 static_libs: [
75 "android.hardware.automotive.vehicle@2.0-default-impl-lib",
76 "android.hardware.automotive.vehicle@2.0-manager-lib",
77 "android.hardware.automotive.vehicle@2.1-default-impl-lib",
78 "android.hardware.automotive.vehicle@2.1-manager-lib",
79 "libqemu_pipe",
80 ],
81 shared_libs: [
82 "libbase",
83 "libhwbinder",
84 "libprotobuf-cpp-lite",
85 ],
86}