3.1.15.2.1. waf_tools.config_codegen_task.create_cfg_task
- waf_tools.config_codegen_task.create_cfg_task(self: task_gen) None
Process the
codegen_configfeature on a task generator.Reads the JSON configuration node, and creates one
CreateCfgFiletask per entry in itsfileslist. The output files are declared relative to the configuration’spathin the build directory. Referenced CSV files and the used template are registered as additional dependencies so that the task is re-run when they change.- Required task generator attributes:
json (Node): The JSON configuration source node (e.g.
battery_cell_cfg.json).
- Optional task generator attributes:
validator (Callable): Callback invoked as
validator(bld, json_node)to validate the configuration before code generation.