soong_config: Add flag for msm8974 1440p EGL workaround
Change-Id: Iad2df3dad223604f1e2c454432b9c9239db8d035
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index fcfecbf..5cd51e1 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -3,6 +3,9 @@
Additional_gralloc_10_usage_bits struct {
Cppflags []string
}
+ Apply_msm8974_1440p_egl_workaround struct {
+ Cflags []string
+ }
Has_legacy_camera_hal1 struct {
Cflags []string
}
@@ -46,6 +49,7 @@
type ProductVariables struct {
Additional_gralloc_10_usage_bits *string `json:",omitempty"`
+ Apply_msm8974_1440p_egl_workaround *bool `json:",omitempty"`
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Should_skip_waiting_for_qsee *bool `json:",omitempty"`
Specific_camera_parameter_library *string `json:",omitempty"`
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 2215893..95e8d5f 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -5,6 +5,7 @@
# See build/core/soong_config.mk for the add_json_* functions you can use here.
$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
+$(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND)))
$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
$(call add_json_bool, Should_skip_waiting_for_qsee, $(filter true,$(TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE)))
$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))