1

I want one release version and a debug version of the same files.

Right now I have written a python function that creates the two versions. Is there a more idiomatic way, maybe directly supported by waf?

1 Answers1

2

Yes, waf use "variants" to manage such things. See §7.2.2 of the waf book

neuro
  • 14,948
  • 3
  • 36
  • 59
  • Are you aware of any way to do to modify already created TaskGen objects? In my project, the easiert way would be to add/ remove items to the use-option, which isn't possible in the configuration stage I think. – Inkrementator Nov 10 '22 at 19:47
  • 1
    @Inkrementator : You're right. The configuration stage is here to manage environments. You can have different env for different variants. In the build stage, you can have a different command for each variant. Then you can change some things during build stage. – neuro Nov 16 '22 at 17:21