Answered here: https://groups.google.com/forum/#!topic/waf-users/E7sh_AB5kcc Example in the waf book: http://docs.waf.googlecode.com/git/book_16/single.html#_project_organization
How to use custom code generators in waf build system?
-
02-06-2022 - |
Question
I have a program that generates files that are included in .cpp files.
I want waf to build generator, find out what files need to be generated, generate them and compile everything else.
cxx gen.cpp -> gen
gen 1.in -> 1.out
gen 2.in -> 2.out
cxx program.cpp -> program
(program.cpp includes 1.out and 2.out)
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow