I’m looking to migrate a large project from using make to using waf. Are there any tools that can help automate the process to some extent?
I’m looking to migrate a large project from using make to using waf .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there isn’t, but the migration isn’t that complex.
If you’ve never used waf before, look at an example from the
demos/folder (cis the typical one), and digest the waf book.Then, from make to waf:
configure()function, instanciate the needed high-level tools and define the relations to external libraries using high-level tools if possible (eg.check_cfg()handlespkg-config(1)) or fall back in defining{DEFINES,INCLUDE,LIB,...}_$LIBNAME, eg:avoid using
*FLAGSif possible, as they are compiler-specific.configure()), eg.Overall, the build scripts will be shorter and easier to read than makefiles.
They are more linear, and their content is more semantical.
Note that you don’t need to create static libraries if you don’t plan to export them.
waf tools does not use the shell to call programs, so the command-line length limit (main reason to create internal static libs) is not a problem.