Skip to content

Commit

Permalink
Export libacryl related flags to soong
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bill Yang authored and mikeNG committed Oct 29, 2024
1 parent b103ddb commit 248124d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/android_soong_config_vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 248124d

Please sign in to comment.