Questions tagged [waf]

Waf is a Python-based framework for configuring, compiling and installing applications. It derives from the concepts of other build tools such as Scons, Autotools, CMake or Ant. If your question is about AWS WAF, use [amazon-waf] instead. If your question is about web application firewall, use [web-application-firewall] instead.

More information about the Waf project can be found at the following locations.

Help is also available:

  • on the waf-users mailing list
  • on IRC (#waf on freenode, with searchable, archived logs here).
309 questions
7
votes
1 answer

Error : No exports were found that match the constraint:

I'm building an WAF project. When i debug my project. I'm encounted this problem "The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed…
user2877989
  • 587
  • 1
  • 6
  • 19
7
votes
2 answers

How can I make a library dependency graph with waf?

I'd like to generate a simple DOT file when building a C++ project with waf. Ideally I'd like to just use the use and target attributes of the bld command to generate the file. Is this easily injectable into the system? e.g. This wscript file (just…
spbots
  • 1,513
  • 1
  • 15
  • 22
7
votes
2 answers

Has anybody used waf to build Java Applications?

Has anybody used successfully waf for building java applications? Preferably on Jython? Maybe with ivy integration?
Mauli
  • 16,863
  • 27
  • 87
  • 114
7
votes
1 answer

Finding Libraries using pkg-config in Windows

I am, trying to find the gstreamer lib in windows (msvc) using pkg-config pkg-config gstreamer-0.10 --cflags --libs but i am getting any result like this Package gstreamer-0.10 was not found in the pkg-config search path. Perhaps you should add…
user671253
6
votes
1 answer

Link Waf target to a library generated by external build system (CMake)

My waf project has two dependencies, built with CMake. What I'm trying to do, is following the dynamic_build3 example found in waf git repo, create a tool which spawns CMake and after a successful build, performs an install into waf's output…
Ivan Nikolaev
  • 327
  • 1
  • 12
6
votes
1 answer

Specify C++ compiler in waf

When building C++ code using the waf build system, can I choose a specific C++ compiler command? While it is possible to run something like "CXX=g++-4.9 waf configure", or to get the same effect by setting os.environ['CXX'] in the wscript file, is…
Amit Moscovich
  • 2,858
  • 1
  • 21
  • 12
6
votes
0 answers

Calling another build tool from setup.py

I have a medium-sized C++/Python project that requires external dependencies and tools to get compiled. Namely, to interact with Qt's MOC compiler among other stuff. This project produces a library, header files and a python extension. I'd like to…
André Anjos
  • 4,641
  • 2
  • 27
  • 34
6
votes
2 answers

How to prevent Waf from renaming object files?

I am using Waf to build a C project and gcov to have some test code coverage. However, Waf calls gcc in a way that produces foo.c.1.o from source file foo.c that confuses gcov when searching for the generated files: $ gcov foo.c $ foo.gcno:cannot…
matthias
  • 2,161
  • 15
  • 22
6
votes
1 answer

Cannot Install py2cairo on Mac OSX

I am trying to install py2cairo on a framework build (Mac OSX Lion) of python 2.7.3 using brew. I have been unsuccessful this far. First, I tried a simple brew install py2cairo This seems to work only on a non-framework build of python. When I do…
Rocketman
  • 3,464
  • 5
  • 27
  • 30
5
votes
1 answer

Is there a tool to help migrate from make to waf?

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?
fredley
  • 32,953
  • 42
  • 145
  • 236
5
votes
2 answers

How to install waf?

I have cloned and built the waf script using: ./waf-light configure Then to build my project (provided by Gomspace) I need to add waf and the eclipse.py to my path. So far I haven't found better than this setenv script: WAFROOT=~/git/waf/ export…
nowox
  • 25,978
  • 39
  • 143
  • 293
5
votes
1 answer

How can I check for a specified header file in Waf?

I'm using waf to build a C program. I'd like to check for the existence of a particular header file during the configuration phase. Is there a way to do that?
mipadi
  • 398,885
  • 90
  • 523
  • 479
5
votes
3 answers

waf copy a file from source tree to the build tree

I have the following snippet, to copy a file as-is to the build dir: for m in std_mibs: print("Copying", m) bld(name = 'cpstdmib', rule = 'cp -f ${SRC} ${TGT}', #source = m + '.mib', source = …
Ani
  • 1,448
  • 1
  • 16
  • 38
5
votes
1 answer

Clean only specific targets when using waf clean

Whenever I call 'waf clean', waf ends up cleaning everything from the build. I would like to have a way to tell waf to only clean specific targets. This way I wont have to rebuild everything whenever I would like to just run all the unit tests…
5
votes
3 answers

Kill the previous command in a pipeline

I am running a simulation like this ./waf --run scratch/myfile | awk -f filter.awk How can I kill the waf command as soon as filter.awk detects that something happened (e.g. after a specific line is read)? I cannot change waf or myfile. I can…
user000001
  • 32,226
  • 12
  • 81
  • 108
1
2
3
20 21