From 38ec240f8f01e9a256c726269ef52e2ba8d330da Mon Sep 17 00:00:00 2001 From: Yuncheol Heo Date: Thu, 15 Apr 2021 15:25:39 -0700 Subject: [PATCH] Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING. - The target code is compiled with the libary, so move the definition to the libary. Bug: 181802283 Test: check if ClusterOSDouble gets the vendor messages. Change-Id: Id501be674844bda73ccf5ae74d97a363869db7b7 --- automotive/vehicle/2.0/default/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automotive/vehicle/2.0/default/Android.bp b/automotive/vehicle/2.0/default/Android.bp index d6f3120221..60b696d61b 100644 --- a/automotive/vehicle/2.0/default/Android.bp +++ b/automotive/vehicle/2.0/default/Android.bp @@ -78,6 +78,7 @@ cc_library_static { name: "android.hardware.automotive.vehicle@2.0-default-impl-lib", vendor: true, defaults: ["vhal_v2_0_target_defaults"], + cflags: ["-DENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING"], srcs: [ "impl/vhal_v2_0/CommConn.cpp", "impl/vhal_v2_0/EmulatedVehicleConnector.cpp", @@ -210,7 +211,6 @@ cc_binary { vendor: true, relative_install_path: "hw", srcs: ["VehicleService.cpp"], - cflags: ["-DENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING"], shared_libs: [ "libbase", "libjsoncpp",