From 31eec2059a6c0fdbd0da0d75ab0592f1f334d984 Mon Sep 17 00:00:00 2001 From: Rashed Abdel-Tawab Date: Sat, 24 Mar 2018 11:17:49 -0700 Subject: [PATCH] soong: Add TARGET_USES_QTI_CAMERA_DEVICE Change-Id: I925b137edeed9fa11bbe566002147b444328c661 --- build/soong/android/variable.go | 5 +++++ build/soong/soong_config.mk | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go index 781f3bf8..4b905d99 100644 --- a/build/soong/android/variable.go +++ b/build/soong/android/variable.go @@ -12,6 +12,10 @@ type Product_variables struct { Uses_qcom_bsp_legacy struct { Cppflags []string } + Uses_qti_camera_device struct { + Cppflags []string + Shared_libs []string + } } type ProductVariables struct { @@ -20,4 +24,5 @@ type ProductVariables struct { Target_shim_libs *string `json:",omitempty"` Uses_generic_camera_parameter_library *bool `json:",omitempty"` Uses_qcom_bsp_legacy *bool `json:",omitempty"` + Uses_qti_camera_device *bool `json:",omitempty"` } diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk index 27f1eb8d..40582079 100644 --- a/build/soong/soong_config.mk +++ b/build/soong/soong_config.mk @@ -8,6 +8,7 @@ lineage_soong: echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \ echo ' "Target_shim_libs": "$(subst $(space),:,$(TARGET_LD_SHIM_LIBS))",'; \ echo ' "Uses_generic_camera_parameter_library": $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),false,true),'; \ - echo ' "Uses_qcom_bsp_legacy": $(if $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)),true,false)'; \ + echo ' "Uses_qcom_bsp_legacy": $(if $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)),true,false),'; \ + echo ' "Uses_qti_camera_device": $(if $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)),true,false)'; \ echo '},'; \ echo '') > $(SOONG_VARIABLES_TMP)