blob: a8bc5de9e195af68afbd5d2a9197e4a89faee0ec [file] [log] [blame]
Kevin F. Haggerty013fbe02018-08-28 18:22:25 -06001add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
Jackeagle64d1d352019-07-28 14:31:18 -04002add_json_val_default = $(call add_json_val, $(1), $(if $(strip $(2)), $(2), $(3)))
Kevin F. Haggerty013fbe02018-08-28 18:22:25 -06003
Alessandro Astonec5e9e7c2019-09-06 01:13:17 +02004_json_contents := $(_json_contents) "Bliss":{$(newline)
Simon Shields95566a72018-08-10 14:40:27 +10005
6# See build/core/soong_config.mk for the add_json_* functions you can use here.
Kevin F. Haggerty5ac58a62018-08-25 20:23:19 -06007$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
Michael Bestas11ea0ff2018-12-29 23:34:17 +02008$(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND)))
Jackeagle71066ed2019-09-04 19:27:16 +02009$(call add_json_val_default, Bootloader_message_offset, $(BOOTLOADER_MESSAGE_OFFSET), 0)
Jackeagle64d1d352019-07-28 14:31:18 -040010$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
11$(call add_json_bool, Should_skip_waiting_for_qsee, $(filter true,$(TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE)))
12$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
Josh Fox (XlxFoXxlX)7ee72d92019-05-19 17:10:31 -040013$(call add_json_bool, Supports_hw_fde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION)))
14$(call add_json_bool, Supports_hw_fde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF)))
15$(call add_json_bool, Supports_legacy_hw_fde, $(filter true,$(TARGET_LEGACY_HW_DISK_ENCRYPTION)))
Jackeagle64d1d352019-07-28 14:31:18 -040016$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
17$(call add_json_str_omitempty, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
18$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))
erfanoabdica8fc5c2019-06-24 19:15:46 -060019$(call add_json_bool, Uses_metadata_as_fde_key, $(filter true,$(TARGET_USES_METADATA_AS_FDE_KEY)))
20$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
21$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))
22$(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)))
Simon Shields95566a72018-08-10 14:40:27 +100023
24# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
Alessandro Astonec5e9e7c2019-09-06 01:13:17 +020025_json_contents := $(_json_contents)__SV_END
Simon Shields95566a72018-08-10 14:40:27 +100026
Alessandro Astonec5e9e7c2019-09-06 01:13:17 +020027_json_contents := $(_json_contents) },$(newline)