1// Copyright (C) 2021 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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "device_generic_car_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_team: "trendy_team_aaos_framework", 22 default_applicable_licenses: ["device_generic_car_license"], 23} 24 25// Emulator VehicleHAL implementation 26cc_library_static { 27 name: "[email protected]", 28 visibility: ["//hardware/interfaces/automotive/vehicle/2.0:__subpackages__"], 29 vendor: true, 30 defaults: ["vhal_v2_0_target_defaults"], 31 cflags: ["-DENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING"], 32 srcs: [ 33 "EmulatedVehicleConnector.cpp", 34 "EmulatedVehicleHal.cpp", 35 "EmulatedVehicleHalServer.cpp", 36 "VehicleEmulator.cpp", 37 ], 38 header_libs: ["vhal_v2_0_common_headers"], 39 whole_static_libs: [ 40 "[email protected]", 41 ], 42 shared_libs: [ 43 "libbase", 44 "libjsoncpp", 45 "libprotobuf-cpp-lite", 46 "device.generic.car.emulator-aidl-V1-ndk", 47 ], 48 export_include_dirs: ["."], 49 static_libs: [ 50 "[email protected]", 51 "EmulatorCommConn", 52 "EmulatorPipeComm", 53 "EmulatorSocketComm", 54 ], 55} 56 57cc_binary { 58 name: "[email protected]", 59 defaults: ["vhal_v2_0_target_defaults"], 60 vintf_fragments: [ 61 "[email protected]", 62 ], 63 init_rc: ["[email protected]"], 64 vendor: true, 65 relative_install_path: "hw", 66 srcs: ["VehicleService.cpp"], 67 shared_libs: [ 68 "libbase", 69 "libjsoncpp", 70 "libprotobuf-cpp-lite", 71 "device.generic.car.emulator-aidl-V1-ndk", 72 ], 73 static_libs: [ 74 "[email protected]", 75 "[email protected]", 76 "[email protected]", 77 "EmulatorCommConn", 78 "EmulatorPipeComm", 79 "EmulatorSocketComm", 80 ], 81} 82