1// Copyright (C) 2022 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_team: "trendy_team_aaos_framework", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_defaults { 21 name: "vhalclient_defaults", 22 cflags: [ 23 "-Wall", 24 "-Wno-missing-field-initializers", 25 "-Werror", 26 "-Wno-unused-variable", 27 "-Wunused-parameter", 28 ], 29 static_libs: [ 30 "VehicleHalUtils", 31 "android-automotive-large-parcelable-lib", 32 // We have to use static lib here because either one of them might not 33 // exist as a shared library. 34 "android.hardware.automotive.vehicle@2.0", 35 "libmath", 36 ], 37 shared_libs: [ 38 "libbinder_ndk", 39 "libhidlbase", 40 "liblog", 41 "libutils", 42 ], 43 defaults: [ 44 "VehicleHalInterfaceDefaults", 45 "android-automotive-large-parcelable-defaults", 46 ], 47} 48 49cc_library { 50 name: "libvhalclient", 51 srcs: [ 52 "src/*.cpp", 53 ], 54 defaults: [ 55 "vhalclient_defaults", 56 ], 57 vendor_available: true, 58 local_include_dirs: ["include"], 59 export_include_dirs: ["include"], 60} 61