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
21
votes
2 answers

How do I suppress '-arch', 'x86_64' flags when compiling an OpenGL/SDL application with Waf on OSX?

I need to suppress "-arch x86_64 -arch i386" flags Waf is passing to GCC. I am building an SDL/Opengl application. If I link against 32 bit SDL runtime I get error Undefined symbols for architecture i386: "_SDL_Quit", referenced from: …
HaltingState
  • 1,810
  • 1
  • 20
  • 22
16
votes
3 answers

Choosing between Scons and Waf in Large Projects

We are thinking about converting a really large project from using GNU Make to some more modern build tool. My current suggestion is to use SCons or Waf. Currently: Build times are around 15 minutes. Around 100 developers. About 10 percent of code…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
12
votes
2 answers

cmake vs waf for C++ project

I found similar topic: What are the differences between Autotools, Cmake and Scons? , but my question is a little bit other and I think the answers could be other too. I found a lot of articles telling that waf is unstalbe (API changes), is not yet…
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
11
votes
2 answers

CMake or Waf for D project

We are looking for adequate build tool for a desktop GUI application to be written in D (using Qt toolkit), consisting of several native libraries, using 3rd party C-lib(s). It has to build on Linux (native development) and Mac as well on Windows.…
gour
  • 967
  • 9
  • 22
11
votes
4 answers

Why has nobody created an open source build system for the brain dead?

I want to build a shared library. GNU/Linux is the development and target platform. C is the implementation language. I can't decide how I want to setup the build system and keep flitting around three options each of which have lots of reasons to…
James Morris
  • 4,867
  • 3
  • 32
  • 51
11
votes
2 answers

How do I use waf to build a shared library?

I want to build a shared library using waf as it looks much easier and less cluttered than GNU autotools. I actually have several questions so far related to the wscript I've started to write: VERSION='0.0.1' APPNAME='libmylib' srcdir = '.' blddir…
James Morris
  • 4,867
  • 3
  • 32
  • 51
11
votes
3 answers

Adding include path to Waf configuration (C++)

How can I add a include path to wscript? I know I can declare which files from which folders I want to include per any cpp file, like: def build(bld): bld(features='c cxx cxxprogram', includes='include', source='main.cpp', …
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
10
votes
3 answers

Waf generating Visual Studio projects?

Can the Waf build system generate Visual Studio project files for C/C++?
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
10
votes
2 answers

Is there a way to debug a subprocess using pydev?

I'm using Eclipse / PyDev trying to find a way to debug code that uses subprocess.Popen to create a child process: I want to be able to debug the child process that is created. The problem is that I cannot find a way to debug accross process…
jkp
  • 78,960
  • 28
  • 103
  • 104
10
votes
2 answers

How do I use colour with Windows command prompt using Python?

I'm trying to patch a waf issue, where the Windows command prompt output isn't coloured when it's supposed to be. I'm trying to figure out how to actually implement this patch, but I'm having trouble finding sufficient resources - could someone…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
9
votes
2 answers

How to specify gcc flags (CXXFLAGS) particularly for a specific module?

I am building a new NS3 module recently. In my code, I use something new features of the C++11 (c++0x), I want to add a gcc flags (CXXFLAGS) "-std=c++0x" to the waf configuration system. I tried to this: CXXFLAGS="-std=c++0x" waf configure, and…
user1875337
  • 143
  • 1
  • 7
9
votes
1 answer

gdb doesn't find source files compiled by clang++

When compiling my project with clang++, the path to the source files is apparently not included in the object code. This means that gdb is unable to find source files to display code with. For specific instances, I can use gdb's directory command…
robert
  • 33,242
  • 8
  • 53
  • 74
8
votes
1 answer

Integrate protocol buffers into WAF

I managed to compile my .proto files like this: def build(bld): bld(rule='protoc --cpp_out=. -I.. ${SRC}', source='a.proto b.proto', name='genproto') Seems to work nice, when I make changes to the source files, they are recompiled and so on.…
wal-o-mat
  • 7,158
  • 7
  • 32
  • 41
7
votes
1 answer

Waf (build tool): PHONY targets like Make?

how do you set a target - maybe Waf calls them "commands" - to always be executed? That is to be like PHONY targets in Make? I'm using Waf to build - among other things - a Visual Studio solution, whose dependencies and recompilation I would prefer…
Eleno
  • 2,864
  • 3
  • 33
  • 39
7
votes
3 answers

How to setup CLion to use waf as build system

I am trying to configure my Intellij Clion IDE for working with ns-3. Since ns-3 is using waf, it is more tricky than i thought and would be really happy to hear any advice
1
2 3
20 21