C2VEAComponent: enclose C2VEAAProxy into V4L2_CODEC2_ARC def
C2VEAAProxy should be compiled and instanced only on cheets_* image.
Bug: 129747937
Test: build bertha_x86_64-eng on pi-arcvm-dev branch
Change-Id: I2378879874b9a0052bdcd9f6a7c83486e69e47a7
(cherry picked from commit 46d04c3e6ade9d1f95811a0dcd18896ce64b0566)
diff --git a/C2VEAComponent.cpp b/C2VEAComponent.cpp
index edf2c92..548d5a7 100644
--- a/C2VEAComponent.cpp
+++ b/C2VEAComponent.cpp
@@ -5,7 +5,9 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "C2VEAComponent"
+#ifdef V4L2_CODEC2_ARC
#include <C2VEAAdaptorProxy.h>
+#endif
#include <C2VEAComponent.h>
#include <video_codecs.h>
@@ -231,7 +233,9 @@
setDerivedInstance(this);
// Create new VEAAdaptor.
+#ifdef V4L2_CODEC2_ARC
adaptor->reset(new arc::C2VEAAdaptorProxy());
+#endif
// Query supported profiles in the beginning. Currently only profiles and max resolution are
// taken into account.