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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_defaults { 20 name: "vehicle_binding_util_defaults", 21 cflags: [ 22 "-Wall", 23 "-Wno-missing-field-initializers", 24 "-Werror", 25 "-Wno-unused-variable", 26 ], 27 shared_libs: [ 28 "android.hardware.automotive.vehicle@2.0", 29 "libbase", 30 "libbinder", 31 "libcutils", 32 "libhidlbase", 33 "liblog", 34 "liblogwrap", 35 "libutils", 36 ], 37 static_libs: [ 38 "libbase", 39 "libvhalclient", 40 ], 41 defaults: [ 42 "vhalclient_defaults", 43 ], 44} 45 46cc_library_static { 47 name: "libvehicle_binding_util", 48 srcs: [ 49 "src/VehicleBindingUtil.cpp", 50 ], 51 defaults: [ 52 "vehicle_binding_util_defaults", 53 ], 54 export_include_dirs: [ 55 "src", 56 ], 57} 58 59cc_binary { 60 name: "vehicle_binding_util", 61 defaults: [ 62 "vehicle_binding_util_defaults", 63 ], 64 srcs: [ 65 "src/main.cpp", 66 ], 67 init_rc: ["vehicle_binding_util.rc"], 68 static_libs: [ 69 "libvehicle_binding_util", 70 ], 71} 72