Kevin F. Haggerty | d1ec4b4 | 2018-08-28 18:22:25 -0600 | [diff] [blame] | 1 | add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2))) |
Alessandro Astone | e5acfae | 2018-10-12 00:16:27 +0200 | [diff] [blame] | 2 | add_json_val_default = $(call add_json_val, $(1), $(if $(strip $(2)), $(2), $(3))) |
Kevin F. Haggerty | d1ec4b4 | 2018-08-28 18:22:25 -0600 | [diff] [blame] | 3 | |
Simon Shields | 3ece2b0 | 2018-08-10 14:40:27 +1000 | [diff] [blame] | 4 | _contents := $(_contents) "Lineage":{$(newline) |
| 5 | |
| 6 | # See build/core/soong_config.mk for the add_json_* functions you can use here. |
Kevin F. Haggerty | 59009f8 | 2018-08-25 20:23:19 -0600 | [diff] [blame] | 7 | $(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)) |
Michael Bestas | f3f7eb2 | 2018-12-29 23:34:17 +0200 | [diff] [blame] | 8 | $(call add_json_bool, Apply_msm8974_1440p_egl_workaround, $(filter true,$(TARGET_MSM8974_1440P_EGL_WORKAROUND))) |
Alessandro Astone | e5acfae | 2018-10-12 00:16:27 +0200 | [diff] [blame] | 9 | $(call add_json_val_default, Bootloader_message_offset, $(BOOTLOADER_MESSAGE_OFFSET), 0) |
Bruno Martins | b169042 | 2018-08-27 10:08:54 +0100 | [diff] [blame] | 10 | $(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1))) |
Sam Mortimer | af96975 | 2018-08-17 14:23:57 -0700 | [diff] [blame] | 11 | $(call add_json_str, Java_Source_Overlays, $(JAVA_SOURCE_OVERLAYS)) |
Michael Bestas | eb37bbb | 2018-08-28 20:31:16 +0300 | [diff] [blame] | 12 | $(call add_json_bool, Should_skip_waiting_for_qsee, $(filter true,$(TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE))) |
Bruno Martins | b169042 | 2018-08-27 10:08:54 +0100 | [diff] [blame] | 13 | $(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)) |
AnilKumar Chimata | 26b6aba | 2018-06-20 20:25:55 +0530 | [diff] [blame] | 14 | $(call add_json_bool, Supports_hw_fde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION))) |
| 15 | $(call add_json_bool, Supports_hw_fde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF))) |
Michael Bestas | c61fabe | 2018-08-28 20:19:05 +0300 | [diff] [blame] | 16 | $(call add_json_bool, Supports_legacy_hw_fde, $(filter true,$(TARGET_LEGACY_HW_DISK_ENCRYPTION))) |
Danny Baumann | fc6e381 | 2018-08-29 11:04:58 +0200 | [diff] [blame] | 17 | $(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE)) |
Paul Keith | 1b5fa5e | 2018-09-21 00:52:58 +0200 | [diff] [blame] | 18 | $(call add_json_str_omitempty, Target_shim_libs, $(TARGET_LD_SHIM_LIBS)) |
Simon Shields | 3ece2b0 | 2018-08-10 14:40:27 +1000 | [diff] [blame] | 19 | $(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true)) |
Erfan Abdi | a4d6ce6 | 2019-03-09 12:03:41 +0200 | [diff] [blame] | 20 | $(call add_json_bool, Uses_metadata_as_fde_key, $(filter true,$(TARGET_USES_METADATA_AS_FDE_KEY))) |
Bruno Martins | b169042 | 2018-08-27 10:08:54 +0100 | [diff] [blame] | 21 | $(call add_json_bool, Uses_nvidia_enhancements, $(filter TRUE,$(NV_ANDROID_FRAMEWORK_ENHANCEMENTS))) |
| 22 | $(call add_json_bool, Uses_qcom_bsp_legacy, $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY))) |
| 23 | $(call add_json_bool, Uses_qti_camera_device, $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE))) |
Simon Shields | 3ece2b0 | 2018-08-10 14:40:27 +1000 | [diff] [blame] | 24 | |
| 25 | # This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid. |
| 26 | _contents := $(_contents)__SV_END |
| 27 | |
| 28 | _contents := $(_contents) },$(newline) |