3.1.15.2.4. waf_tools.config_codegen_task.resolve_values

waf_tools.config_codegen_task.resolve_values(json_node: Node, file_cfg: dict) → dict

Resolve all values in a file configuration.

Builds the substitution dictionary for the template renderer: defines entries are converted into C literals, CSV references are expanded into initializer lists, and diag_array defines are rendered from the configuration’s array_entries. All other keys are passed through unchanged.

Parameters:
  • json_node – Node of the JSON configuration file.

  • file_cfg – A single entry of the configuration’s files list.

Returns:

A dictionary mapping template placeholder names to their rendered string values.

Raises:
  • FileNotFoundError – If a referenced CSV file does not exist.

  • TypeError – If a define value does not match its declared type.

  • ValueError – If a value_type is missing, unsupported, or a value is out of range.