Add Nvidia enhancements soong flag

Change-Id: I1bec17d2457944350dcb5a22c6d571d3ace913a7
This commit is contained in:
Aaron Kling 2018-04-21 11:37:39 -05:00 committed by Abhisek Devkota
parent 35b22a327f
commit 6fc81b4b23
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,9 @@ type Product_variables struct {
Uses_generic_camera_parameter_library struct {
Srcs []string
}
Uses_nvidia_enhancements struct {
Cppflags []string
}
Uses_qcom_bsp_legacy struct {
Cppflags []string
}
@ -27,6 +30,7 @@ type ProductVariables struct {
Specific_camera_parameter_library *string `json:",omitempty"`
Target_shim_libs *string `json:",omitempty"`
Uses_generic_camera_parameter_library *bool `json:",omitempty"`
Uses_nvidia_enhancements *bool `json:",omitempty"`
Uses_qcom_bsp_legacy *bool `json:",omitempty"`
Uses_qti_camera_device *bool `json:",omitempty"`
}

View file

@ -9,6 +9,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_nvidia_enhancements": $(if $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)),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 '},'; \