• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 Google Inc. All Rights Reserved.
3//
4
5package {
6    // See: http://go/android-license-faq
7    // A large-scale-change added 'default_applicable_licenses' to import
8    // all of the 'license_kinds' from "device_generic_car_license"
9    // to get the below license kinds:
10    //   SPDX-license-identifier-Apache-2.0
11    default_applicable_licenses: ["device_generic_car_license"],
12}
13
14cc_defaults {
15    name: "android.device.generic.car.emulator@1.0-protocanbus-defaults",
16    cpp_std: "experimental",
17    cflags: [
18        "-Wall",
19        "-Wextra",
20        "-Werror",
21    ],
22    shared_libs: [
23        "libbase",
24        "libutils",
25    ],
26}
27
28cc_binary {
29    name: "android.device.generic.car.emulator@1.0-protocanbus-service",
30    init_rc: ["android.device.generic.car.emulator@1.0-protocanbus-service.rc"],
31    defaults: [
32        "android.device.generic.car.emulator@1.0-protocanbus-defaults",
33        "device.generic.car.emulator-aidl-latest-ndk-defaults",
34    ],
35    vendor: true,
36    relative_install_path: "hw",
37    srcs: [
38        "service.cpp",
39        "CanClient.cpp",
40        "CloseHandleWrapper.cpp",
41        "ExtraCanClient.cpp",
42        "VehicleBus.cpp",
43    ],
44    header_libs: [
45        "android.hardware.automotive.can@hidl-utils-lib",
46        "VehicleHalUtilHeaders"
47    ],
48    include_dirs: ["frameworks/native/include"],
49    shared_libs: [
50        "android.hardware.automotive.can@1.0",
51        "libbinder_ndk",
52        "libhidlbase",
53        "libcutils",
54    ],
55    whole_static_libs: [
56        "libprotocan",
57    ],
58    static_libs: [
59        "libmath",
60    ],
61
62    vintf_fragments: ["manifest_android.device.generic.car.emulator@1.0-protocanbus.xml"]
63}
64