Merge "Rename VehicleHalUtils to VehicleHalUtilsVendor."

This commit is contained in:
TreeHugger Robot 2022-02-01 04:39:14 +00:00 committed by Android (Google) Code Review
commit 51ded99b43
16 changed files with 51 additions and 24 deletions

View file

@ -26,7 +26,7 @@ cc_test {
"libhidlbase",
],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"android.hardware.automotive.vehicle@2.0",
"libgtest",
"libgmock",

View file

@ -24,8 +24,8 @@ cc_library_headers {
local_include_dirs: ["include"],
export_include_dirs: ["include"],
defaults: ["VehicleHalDefaults"],
static_libs: ["VehicleHalUtils"],
static_libs: ["VehicleHalUtilsVendor"],
header_libs: ["VehicleHalTestUtilHeaders"],
export_static_lib_headers: ["VehicleHalUtils"],
export_static_lib_headers: ["VehicleHalUtilsVendor"],
export_header_lib_headers: ["VehicleHalTestUtilHeaders"],
}

View file

@ -24,7 +24,7 @@ cc_test {
defaults: ["VehicleHalDefaults"],
srcs: ["*.cpp"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"libgtest",
],
header_libs: [

View file

@ -26,7 +26,7 @@ cc_library {
export_include_dirs: ["include"],
defaults: ["VehicleHalDefaults"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"FakeObd2Frame",
],
shared_libs: [

View file

@ -24,7 +24,7 @@ cc_test {
srcs: ["*.cpp"],
defaults: ["VehicleHalDefaults"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"FakeVehicleHalValueGenerators",
"FakeObd2Frame",
],

View file

@ -39,7 +39,7 @@ cc_defaults {
],
export_header_lib_headers: ["IVehicleHardware"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"FakeVehicleHalValueGenerators",
"FakeObd2Frame",
"FakeUserHal",
@ -47,5 +47,5 @@ cc_defaults {
shared_libs: [
"libjsoncpp",
],
export_static_lib_headers: ["VehicleHalUtils"],
export_static_lib_headers: ["VehicleHalUtilsVendor"],
}

View file

@ -29,7 +29,7 @@ cc_test {
"VehicleHalTestUtilHeaders",
],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"FakeVehicleHardware",
"FakeVehicleHalValueGenerators",
"FakeObd2Frame",

View file

@ -26,7 +26,7 @@ cc_library {
export_include_dirs: ["include"],
defaults: ["VehicleHalDefaults"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
export_static_lib_headers: ["VehicleHalUtils"],
export_static_lib_headers: ["VehicleHalUtilsVendor"],
}

View file

@ -25,7 +25,7 @@ cc_test {
defaults: ["VehicleHalDefaults"],
static_libs: [
"FakeObd2Frame",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
test_suites: ["device-tests"],
}

View file

@ -26,7 +26,7 @@ cc_library {
export_include_dirs: ["include"],
defaults: ["VehicleHalDefaults"],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
export_static_lib_headers: ["VehicleHalUtils"],
export_static_lib_headers: ["VehicleHalUtilsVendor"],
}

View file

@ -25,7 +25,7 @@ cc_test {
defaults: ["VehicleHalDefaults"],
static_libs: [
"FakeUserHal",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"libgtest",
"libgmock",
],

View file

@ -34,10 +34,10 @@ cc_library {
shared_libs: ["libprotobuf-cpp-full"],
static_libs: [
"VehicleHalProtos",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
defaults: ["VehicleHalDefaults"],
export_static_lib_headers: ["VehicleHalUtils"],
export_static_lib_headers: ["VehicleHalUtilsVendor"],
}
cc_test {
@ -51,7 +51,7 @@ cc_test {
static_libs: [
"VehicleHalProtoMessageConverter",
"VehicleHalProtos",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"libgtest",
],
header_libs: ["VehicleHalDefaultConfig"],

View file

@ -19,7 +19,7 @@ package {
}
cc_library {
name: "VehicleHalUtils",
name: "VehicleHalUtilsVendor",
srcs: ["src/*.cpp"],
vendor: true,
local_include_dirs: ["include"],
@ -27,6 +27,33 @@ cc_library {
defaults: ["VehicleHalDefaults"],
}
// This is a non-vendor version for VehicleHalUtilsVendor.
cc_library {
name: "VehicleHalUtils",
srcs: ["src/*.cpp"],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
static_libs: [
"android-automotive-large-parcelable-lib",
"android.hardware.automotive.vehicle-V1-ndk",
"libmath",
],
shared_libs: [
"libbase",
"liblog",
"libutils",
],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-Wthread-safety",
],
defaults: [
"android-automotive-large-parcelable-defaults",
],
}
cc_library_headers {
name: "VehicleHalUtilHeaders",
export_include_dirs: ["include"],

View file

@ -19,11 +19,11 @@ package {
}
cc_test {
name: "VehicleHalVehicleUtilsTest",
name: "VehicleHalVehicleUtilsVendorTest",
srcs: ["*.cpp"],
vendor: true,
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"libgtest",
"libgmock",
],

View file

@ -33,7 +33,7 @@ cc_binary {
static_libs: [
"DefaultVehicleHal",
"FakeVehicleHardware",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
header_libs: [
"IVehicleHardware",
@ -58,7 +58,7 @@ cc_library {
"src/SubscriptionManager.cpp",
],
static_libs: [
"VehicleHalUtils",
"VehicleHalUtilsVendor",
],
header_libs: [
"IVehicleHardware",

View file

@ -24,7 +24,7 @@ cc_test {
srcs: ["*.cpp"],
static_libs: [
"DefaultVehicleHal",
"VehicleHalUtils",
"VehicleHalUtilsVendor",
"libgtest",
"libgmock",
],