Kevin F. Haggerty | 4df0cd5 | 2018-08-28 18:22:25 -0600 | [diff] [blame] | 1 | add_json_str_omitempty = $(if $(strip $(2)),$(call add_json_str, $(1), $(2))) |
| 2 | |
Marko Man | 83cdc3d | 2019-03-21 22:20:10 +0100 | [diff] [blame] | 3 | _contents := $(_contents) "Omnirom": {$(newline) |
Simon Shields | 20f2c9b | 2018-08-10 14:40:27 +1000 | [diff] [blame] | 4 | |
| 5 | # See build/core/soong_config.mk for the add_json_* functions you can use here. |
Marko Man | 83cdc3d | 2019-03-21 22:20:10 +0100 | [diff] [blame] | 6 | $(call add_json_bool, TargetNeedsHWCOnFirstRef, $(filter true,$(TARGET_NEEDS_HWC_ONFIRSTREF))) |
Simon Shields | 20f2c9b | 2018-08-10 14:40:27 +1000 | [diff] [blame] | 7 | |
| 8 | # This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid. |
| 9 | _contents := $(_contents)__SV_END |
| 10 | |
| 11 | _contents := $(_contents) },$(newline) |