Export libacryl related flags to soong

Export BOARD_LIBACRYL_DEFAULT_COMPOSITOR, BOARD_LIBACRYL_DEFAULT_SCALER,
BOARD_LIBACRYL_DEFAULT_BLTER, and BOARD_LIBACRYL_G2D_HDR_PLUGIN to
soong. Also export one include path to sooong but check if the path
exist before export to soong due to soong does not allowed non-existed
path.

Bug: 370414334
Test: m libacryl
Change-Id: Ib7f7af43da0359e691dee8bd538664147704c648
diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk
index 70991c6..5171781 100644
--- a/core/android_soong_config_vars.mk
+++ b/core/android_soong_config_vars.mk
@@ -226,3 +226,18 @@
 ifneq ($(BOARD_USE_MAX_SECURE_RESOURCE),)
   $(call soong_config_set,video_codec,board_use_max_secure_resource,$(BOARD_USE_MAX_SECURE_RESOURCE))
 endif
+
+# Export related variables to soong for hardware/google/graphics/common/libacryl:libacryl
+ifdef BOARD_LIBACRYL_DEFAULT_COMPOSITOR
+  $(call soong_config_set,acryl,libacryl_default_compositor,$(BOARD_LIBACRYL_DEFAULT_COMPOSITOR))
+endif
+ifdef BOARD_LIBACRYL_DEFAULT_SCALER
+  $(call soong_config_set,acryl,libacryl_default_scaler,$(BOARD_LIBACRYL_DEFAULT_SCALER))
+endif
+ifdef BOARD_LIBACRYL_DEFAULT_BLTER
+  $(call soong_config_set,acryl,libacryl_default_blter,$(BOARD_LIBACRYL_DEFAULT_BLTER))
+endif
+ifdef BOARD_LIBACRYL_G2D_HDR_PLUGIN
+  #BOARD_LIBACRYL_G2D_HDR_PLUGIN is set in each board config
+  $(call soong_config_set_bool,acryl,libacryl_use_g2d_hdr_plugin,true)
+endif