blob: f24377273abddacc4a29dfc68ddaf4864e113c38 [file] [log] [blame]
Kevin F. Haggerty4df0cd52018-08-28 18:22:25 -06001add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2)))
2
Marko Man83cdc3d2019-03-21 22:20:10 +01003_contents := $(_contents) "Omnirom": {$(newline)
Simon Shields20f2c9b2018-08-10 14:40:27 +10004
5# See build/core/soong_config.mk for the add_json_* functions you can use here.
Stefan Berger021c61d2019-04-06 10:59:29 +02006$(call add_json_bool, Healthd_use_battery_info, $(filter true,$(HEALTHD_USE_BATTERY_INFO)))
Marko Man83cdc3d2019-03-21 22:20:10 +01007$(call add_json_bool, TargetNeedsHWCOnFirstRef, $(filter true,$(TARGET_NEEDS_HWC_ONFIRSTREF)))
Erfan Abdicdae4a62019-03-09 12:03:41 +02008$(call add_json_bool, Uses_metadata_as_fde_key, $(filter true,$(TARGET_USES_METADATA_AS_FDE_KEY)))
frap1294cbc9d12019-06-12 15:03:53 +02009$(call add_json_bool, Target_use_sdclang, $(filter true,$(TARGET_USE_SDCLANG)))
10
Simon Shields20f2c9b2018-08-10 14:40:27 +100011
12# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
13_contents := $(_contents)__SV_END
14
15_contents := $(_contents) },$(newline)