Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c429b5a authored by Bill Yang's avatar Bill Yang
Browse files

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
parent a1f3b6ef
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -226,3 +226,18 @@ $(call soong_config_set_bool,video_codec,board_use_small_secure_memory,$(if $(fi
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