3.1.15.2.5. waf_tools.config_codegen_task.CreateCfgFile
- class waf_tools.config_codegen_task.CreateCfgFile(*k, **kw)
Bases:
TaskWaf task that generates a C/H file from a JSON configuration.
Reads the
filesentry addressed byenv.IDXfrom the JSON configuration, resolves all define values (typed literals, CSV lookup tables, diagnostic arrays) and renders them into the corresponding template fromconf/bms/templates.A
RuntimeErrorraised by the validator is not propagated: it is stored inerr_msgand the task fails with return code 1, so that waf reports the configuration error instead of a Python traceback.- ext_out
Output extensions used by waf for task ordering.
- color
Console color used when displaying the task.
- err_msg
Error message reported by waf when validation failed.
- Type:
str