blob: 8aa1d6bff7b5f72281d194298777e3c416a73a83 [file] [log] [blame]
Tomasz Wasilczyk87329672019-07-12 11:43:00 -07001//
2// Copyright (C) 2019 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
17cc_defaults {
18 name: "android.hardware.automotive.can@defaults",
19 cpp_std: "experimental",
20 cflags: [
21 "-Wall",
22 "-Wextra",
23 "-Werror",
24 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
25 ],
26 shared_libs: [
27 "libbase",
28 "libutils",
29 ],
30}
31
32cc_binary {
33 name: "android.hardware.automotive.can@1.0-service",
34 init_rc: ["android.hardware.automotive.can@1.0-service.rc"],
35 defaults: ["android.hardware.automotive.can@defaults"],
36 vendor: true,
37 relative_install_path: "hw",
38 srcs: [
39 "CanBus.cpp",
40 "CanBusNative.cpp",
41 "CanBusVirtual.cpp",
42 "CanController.cpp",
43 "CanSocket.cpp",
44 "CloseHandle.cpp",
45 "service.cpp",
46 ],
47 shared_libs: [
48 "android.hardware.automotive.can@1.0",
49 "libhidlbase",
Tomasz Wasilczyk87329672019-07-12 11:43:00 -070050 ],
51 static_libs: [
52 "android.hardware.automotive.can@libnetdevice",
53 ],
54}