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:
definesentries are converted into C literals, CSV references are expanded into initializer lists, anddiag_arraydefines are rendered from the configuration’sarray_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
fileslist.
- 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_typeis missing, unsupported, or a value is out of range.