blob: bf8f12e6f06d7c9de3ac6dc8007a43c73834e70e [file] [log] [blame]
add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
add_json_val_default = $(call add_json_val, $(1), $(if $(strip $(2)), $(2), $(3)))
_json_contents := $(_json_contents) "Shift":{$(newline)
# See build/core/soong_config.mk for the add_json_* functions you can use here.
$(call add_json_bool, Build_with_gms, $(filter true,$(SHIFT_BUILD_WITH_GMS)))
$(call add_json_bool, Build_without_gms, $(filter false,$(SHIFT_BUILD_WITH_GMS)))
# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
_json_contents := $(_json_contents)__SV_END
_json_contents := $(_json_contents) },$(newline)