From 248124d8e1f42cbbee311b329b66c7c249a73468 Mon Sep 17 00:00:00 2001 From: Bill Yang Date: Tue, 22 Oct 2024 10:31:37 +0000 Subject: [PATCH] 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 --- core/android_soong_config_vars.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index 996afa7a7d..c43c9d4675 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -171,3 +171,18 @@ endif ifneq ($(ENABLE_VENDOR_RIL_SERVICE), true) $(call soong_config_set_bool,ril,use_aosp_rild,true) 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