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
This commit is contained in:
Bill Yang
2024-10-22 10:31:37 +00:00
committed by SkyMinus
parent 4367d5a8f3
commit d36230676e

View File

@@ -213,3 +213,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