Is there a better/shorter way to create these 2 tasks, which work on multiple files?
I would prefer new_task_generator
instead of cryptic classes.
Files = ["src1.c", "src2.c"]
for File in Files:
bld.new_task_gen(
name = "Proc1_task",
source = File,
target= File + ".p1",
rule ="Proc1.exe ${SRC} > ${TGT}")
for File in Files:
bld.new_task_gen(
name = "Proc2_task",
after = "Proc1_task", # not parallel with Proc1_task
source = File,
target= File + ".p2",
rule ="Proc2.exe ${SRC} > ${TGT}")
Proc1.exe
and Proc2.exe
only accept one file per call.