blob: 66ad4531ab4c79e6e39cfac80d8c07ae2f8fe006 [file] [log] [blame]
Simon Shields3ece2b02018-08-10 14:40:27 +10001_contents := $(_contents) "Lineage":{$(newline)
2
3# See build/core/soong_config.mk for the add_json_* functions you can use here.
Bruno Martinsb1690422018-08-27 10:08:54 +01004$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
5$(call add_json_bool, Needs_text_relocations, $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)))
6$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
7$(call add_json_str, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
Simon Shields3ece2b02018-08-10 14:40:27 +10008$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))
Bruno Martinsb1690422018-08-27 10:08:54 +01009$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
10$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))
11$(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)))
Simon Shields3ece2b02018-08-10 14:40:27 +100012
13# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
14_contents := $(_contents)__SV_END
15
16_contents := $(_contents) },$(newline)