blob: b096a84e80ed784b25948560f8da76f686396d1e [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
Alessandro Astone34b6c6d2019-09-06 01:13:17 +02003_json_contents := $(_json_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.
Marko Mande572ed2019-09-20 12:55:17 +02006$(call add_json_bool, Healthd_use_battery_info, $(filter true,$(HEALTHD_USE_BATTERY_INFO)))
7$(call add_json_bool, Healthd_enable_op_fastchg, $(filter true,$(HEALTHD_ENABLE_OP_FASTCHG_CHECK)))
8$(call add_json_bool, TargetNeedsHWCOnFirstRef, $(filter true,$(TARGET_NEEDS_HWC_ONFIRSTREF)))
9$(call add_json_bool, Uses_metadata_as_fde_key, $(filter true,$(TARGET_USES_METADATA_AS_FDE_KEY)))
10$(call add_json_bool, Target_use_sdclang, $(filter true,$(TARGET_USE_SDCLANG)))
11$(call add_json_bool, Target_camera_needs_client_info, $(filter true,$(TARGET_CAMERA_NEEDS_CLIENT_INFO)))
Marko Man0adbc9b2019-09-20 13:01:26 +020012$(call add_json_bool, Target_motorized_camera, $(filter true,$(TARGET_MOTORIZED_CAMERA)))
maxwen2d97b192019-11-24 23:39:33 +010013$(call add_json_str_omitempty, Target_init_vendor_lib, $(TARGET_INIT_VENDOR_LIB))
14$(call add_json_bool, Target_enforce_ab_ota_partition_list, $(filter true,$(TARGET_ENFORCE_AB_OTA_PARTITION_LIST)))
TheScarastice9414302020-05-25 10:09:14 +000015$(call add_json_str_omitempty, Target_surfaceflinger_fod_lib, $(TARGET_SURFACEFLINGER_FOD_LIB))
maxwen7da0b472020-10-03 17:54:28 +020016$(call add_json_str_omitempty, Target_vold_vendor_lib, $(TARGET_VOLD_VENDOR_LIB))
Simon Shields20f2c9b2018-08-10 14:40:27 +100017
18# This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
Alessandro Astone34b6c6d2019-09-06 01:13:17 +020019_json_contents := $(_json_contents)__SV_END
Simon Shields20f2c9b2018-08-10 14:40:27 +100020
Alessandro Astone34b6c6d2019-09-06 01:13:17 +020021_json_contents := $(_json_contents) },$(newline)