blob: 91e0b417dca2b2e2988ee142e48e8cc885e9a60d [file] [log] [blame]
Kevin F. Haggerty013fbe02018-08-28 18:22:25 -06001add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
2
Simon Shields95566a72018-08-10 14:40:27 +10003_contents := $(_contents) "Bliss":{$(newline)
4
5# See build/core/soong_config.mk for the add_json_* functions you can use here.
Kevin F. Haggerty5ac58a62018-08-25 20:23:19 -06006$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
Michael Bestasb9c76da2018-08-28 20:19:05 +03007$(call add_json_bool, Device_support_hwfde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION)))
8$(call add_json_bool, Device_support_hwfde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF)))
9$(call add_json_bool, Device_support_legacy_hwfde, $(filter true,$(TARGET_LEGACY_HW_DISK_ENCRYPTION)))
Michael Bestas9ce6d1f2018-08-28 20:31:16 +030010$(call add_json_bool, Device_support_wait_for_qsee, $(filter true,$(TARGET_KEYMASTER_WAIT_FOR_QSEE)))
Simon Shields95566a72018-08-10 14:40:27 +100011$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
Simon Shields95566a72018-08-10 14:40:27 +100012$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
Paul Keith046f90f2018-09-21 00:52:58 +020013$(call add_json_str_omitempty, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
Simon Shields95566a72018-08-10 14:40:27 +100014$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),false,true))
15$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
16$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))
17$(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)))
Danny Baumann5f976422018-08-29 11:04:58 +020018$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
Simon Shields95566a72018-08-10 14:40:27 +100019
20# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
21_contents := $(_contents)__SV_END
22
23_contents := $(_contents) },$(newline)