build-systemwaf

Idiom for creating similar build targets (one option changes)


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?


Solution

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