blob: 6f3567a061a19670ab0c57f5cca921fbbaa7240a [file] [log] [blame]
Kevin F. Haggertyd1ec4b42018-08-28 18:22:25 -06001add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
Alessandro Astonee5acfae2018-10-12 00:16:27 +02002add_json_val_default = $(call add_json_val, $(1), $(if $(strip $(2)), $(2), $(3)))
Kevin F. Haggertyd1ec4b42018-08-28 18:22:25 -06003
Alessandro Astoneb49ab912019-09-06 01:13:17 +02004_json_contents := $(_json_contents) "Lineage":{$(newline)
Simon Shields3ece2b02018-08-10 14:40:27 +10005
6# See build/core/soong_config.mk for the add_json_* functions you can use here.
Kevin F. Haggerty59009f82018-08-25 20:23:19 -06007$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
Michael Bestasf3f7eb22018-12-29 23:34:17 +02008$(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND)))
Alessandro Astonee5acfae2018-10-12 00:16:27 +02009$(call add_json_val_default, Bootloader_message_offset, $(BOOTLOADER_MESSAGE_OFFSET), 0)
Bruno Martinsb1690422018-08-27 10:08:54 +010010$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
dianlujitao48917cc2020-05-25 18:08:31 +080011$(call add_json_str_omitempty, Qcom_um_soong_namespace, $(if $(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),$(QCOM_SOONG_NAMESPACE),))
Paul Keithfd27bb42020-05-06 19:10:03 -070012$(call add_json_bool, Recovery_skip_ev_rel_input, $(filter true,$(TARGET_RECOVERY_SKIP_EV_REL_INPUT)))
dianlujitao119f9d12019-10-08 14:46:58 +080013$(call add_json_bool, Should_wait_for_qsee, $(filter true,$(TARGET_KEYMASTER_WAIT_FOR_QSEE)))
Bruno Martinsb1690422018-08-27 10:08:54 +010014$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
Michael Bestas8c49ba92019-09-20 01:15:25 +030015$(call add_json_bool, Supports_extended_compress_format, $(filter true,$(AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT)))
AnilKumar Chimata26b6aba2018-06-20 20:25:55 +053016$(call add_json_bool, Supports_hw_fde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION)))
17$(call add_json_bool, Supports_hw_fde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF)))
dianlujitaof646fd72020-05-25 18:20:26 +080018$(call add_json_bool, Target_ignores_ftp_pptp_conntrack_failure, $(filter true,$(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE)))
Han Wang45166aa2019-09-10 13:08:04 +020019$(call add_json_str_omitempty, Target_init_vendor_lib, $(TARGET_INIT_VENDOR_LIB))
dianlujitaof646fd72020-05-25 18:20:26 +080020$(call add_json_bool, Target_needs_netd_direct_connect_rule, $(filter true,$(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE)))
Danny Baumannfc6e3812018-08-29 11:04:58 +020021$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
Stricted47d713d2018-02-17 17:28:52 +010022$(call add_json_str_omitempty, Target_shim_libs, $(subst $(space),:,$(TARGET_LD_SHIM_LIBS)))
TheScarastic612c5a82020-05-25 10:09:14 +000023$(call add_json_str_omitempty, Target_surfaceflinger_fod_lib, $(TARGET_SURFACEFLINGER_FOD_LIB))
Simon Shields3ece2b02018-08-10 14:40:27 +100024$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))
Bruno Martinsb1690422018-08-27 10:08:54 +010025$(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)))
26$(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)))
27$(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)))
Simon Shields3ece2b02018-08-10 14:40:27 +100028
29# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
Alessandro Astoneb49ab912019-09-06 01:13:17 +020030_json_contents := $(_json_contents)__SV_END
Simon Shields3ece2b02018-08-10 14:40:27 +100031
Alessandro Astoneb49ab912019-09-06 01:13:17 +020032_json_contents := $(_json_contents) },$(newline)