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: ["android.device.generic.car.emulator@1.0-protocanbus-defaults"], 32 vendor: true, 33 relative_install_path: "hw", 34 srcs: [ 35 "service.cpp", 36 "CanClient.cpp", 37 "CloseHandleWrapper.cpp", 38 "ExtraCanClient.cpp", 39 "VehicleBus.cpp", 40 ], 41 header_libs: [ 42 "android.hardware.automotive.can@hidl-utils-lib", 43 "VehicleHalUtilHeaders" 44 ], 45 include_dirs: ["frameworks/native/include"], 46 shared_libs: [ 47 "android.hardware.automotive.can@1.0", 48 "device.generic.car.emulator-aidl-V1-ndk", 49 "libbinder_ndk", 50 "libhidlbase", 51 "libcutils", 52 ], 53 whole_static_libs: [ 54 "libprotocan", 55 ], 56 static_libs: [ 57 "libmath", 58 ], 59 60 vintf_fragments: ["manifest_android.device.generic.car.emulator@1.0-protocanbus.xml"] 61} 62