blob: 0ba066e35ab4039a657d31bea7e92edbbfa34609 [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",
chrisweircf36cea2019-11-08 16:41:02 -080042 "CanBusSlcan.cpp",
Tomasz Wasilczyk87329672019-07-12 11:43:00 -070043 "CanController.cpp",
44 "CanSocket.cpp",
45 "CloseHandle.cpp",
46 "service.cpp",
47 ],
48 shared_libs: [
49 "android.hardware.automotive.can@1.0",
50 "libhidlbase",
Tomasz Wasilczyk87329672019-07-12 11:43:00 -070051 ],
52 static_libs: [
53 "android.hardware.automotive.can@libnetdevice",
chrisweir442b3ba2020-02-27 14:33:51 -080054 "android.hardware.automotive@libc++fs",
Tomasz Wasilczyk16954592020-07-28 09:42:55 -070055 "libnl++",
Tomasz Wasilczyk87329672019-07-12 11:43:00 -070056 ],
57}