soong: Add flag for fod extension
Change-Id: Ib45706cc50fa88b9b05af1c68eec9d1f08d70569
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index 0a03258..04aa4f5 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -50,6 +50,10 @@
Target_shim_libs struct {
Cppflags []string
}
+ Target_surfaceflinger_fod_lib struct {
+ Cflags []string
+ Whole_static_libs []string
+ }
Uses_generic_camera_parameter_library struct {
Srcs []string
}
@@ -82,6 +86,7 @@
Target_needs_netd_direct_connect_rule *bool `json:",omitempty"`
Target_process_sdk_version_override *string `json:",omitempty"`
Target_shim_libs *string `json:",omitempty"`
+ Target_surfaceflinger_fod_lib *string `json:",omitempty"`
Uses_generic_camera_parameter_library *bool `json:",omitempty"`
Uses_nvidia_enhancements *bool `json:",omitempty"`
Uses_qcom_bsp_legacy *bool `json:",omitempty"`
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 62f0d41..6f3567a 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -20,6 +20,7 @@
$(call add_json_bool, Target_needs_netd_direct_connect_rule, $(filter true,$(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE)))
$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
$(call add_json_str_omitempty, Target_shim_libs, $(subst $(space),:,$(TARGET_LD_SHIM_LIBS)))
+$(call add_json_str_omitempty, Target_surfaceflinger_fod_lib, $(TARGET_SURFACEFLINGER_FOD_LIB))
$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))
$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))