blob: 32e34eb0642866dbfabd38ab567e2c19ba8dfbba [file] [log] [blame]
Kevin F. Haggertyd1ec4b42018-08-28 18:22:25 -06001add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
2
Simon Shields3ece2b02018-08-10 14:40:27 +10003_contents := $(_contents) "Lineage":{$(newline)
4
5# See build/core/soong_config.mk for the add_json_* functions you can use here.
Kevin F. Haggerty59009f82018-08-25 20:23:19 -06006$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
Michael Bestasf3f7eb22018-12-29 23:34:17 +02007$(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND)))
Bruno Martinsb1690422018-08-27 10:08:54 +01008$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
Sam Mortimeraf969752018-08-17 14:23:57 -07009$(call add_json_str, Java_Source_Overlays, $(JAVA_SOURCE_OVERLAYS))
Michael Bestaseb37bbb2018-08-28 20:31:16 +030010$(call add_json_bool, Should_skip_waiting_for_qsee, $(filter true,$(TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE)))
Bruno Martinsb1690422018-08-27 10:08:54 +010011$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
AnilKumar Chimata26b6aba2018-06-20 20:25:55 +053012$(call add_json_bool, Supports_hw_fde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION)))
13$(call add_json_bool, Supports_hw_fde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF)))
Michael Bestasc61fabe2018-08-28 20:19:05 +030014$(call add_json_bool, Supports_legacy_hw_fde, $(filter true,$(TARGET_LEGACY_HW_DISK_ENCRYPTION)))
Danny Baumannfc6e3812018-08-29 11:04:58 +020015$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
Paul Keith1b5fa5e2018-09-21 00:52:58 +020016$(call add_json_str_omitempty, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
Simon Shields3ece2b02018-08-10 14:40:27 +100017$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))
Bruno Martinsb1690422018-08-27 10:08:54 +010018$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
19$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))
20$(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)))
Simon Shields3ece2b02018-08-10 14:40:27 +100021
22# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
23_contents := $(_contents)__SV_END
24
25_contents := $(_contents) },$(newline)