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
5
votes
3 answers

What is the best way to integrate an external build tool into Eclipse?

I've just started using Eclipse for Python development since we can make use of a lovely plugin I've found to enable distributed pair-programming. Anyway, the next step to getting Eclipse to integrate properly with our existing environment, would…
jkp
  • 78,960
  • 28
  • 103
  • 104
5
votes
2 answers

vim creating alias for frequently used command

Possible Duplicate: Aliasing a command in vim So I have to edit waf wscript files a lot . Everytime I execute this command to set the filetype set filetype=python is there a way to set up an small alias for the above command ? SO that I can…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
4
votes
1 answer

Node.js module - adding link dependency

I'm working on a Node.js wrapper module for a colleagues C library. The library is created in Shared Object (.so) form for dynamic linking. My CPP module file begins with #include "path/to/lib/source/lib.h" and is built with the following…
justkris
  • 800
  • 4
  • 15
4
votes
1 answer

Waf: Specify library name for python extensions

building libraries with waf is nice and I like the lib naming scheme. But when I use is with boost::python, I'd like to get rid of it: I'd like the librarie's name to be like the target name. This is just a simple rename, I know, but:…
wal-o-mat
  • 7,158
  • 7
  • 32
  • 41
4
votes
1 answer

How to compile the c++ source files, generated in run-time, using waf?

I have protobuf proto-files in source tree. I want to generate the source files from proto-files on every change and on first run (e.g. I create new proto-file). Then, I want to compile shared library from these source files and preserve them in…
abyss.7
  • 13,882
  • 11
  • 56
  • 100
4
votes
1 answer

How do I get node-waf to install?

First, props to whoever did node.js. I've been using it for less than a day and I'm already thinking about using it for stuff I use Python for now. In fact, whoever did node.js should think about using it for stuff they use Python for now. There…
Michael Lorton
  • 43,060
  • 26
  • 103
  • 144
4
votes
1 answer

In waf, how do I define a dependency on a generated header from another subdir

I am trying to get waf to generate header files generated by a task chain and pick up on them automatically using the c preprocessor's scan function. Here is an example project. Some files get generated in the project's gen directory, to be used in…
wds
  • 31,873
  • 11
  • 59
  • 84
4
votes
0 answers

VSCode C++ - Compound debug configuration pre-launch task (c++)

I am writing a program (c/c++) that sits between some hardware and another set of software. I have written a little program that "emulates" the hardware (a radio, CSP), and that emulates the other set of software (a TCP/IP socket, CDH). I want to be…
Shaken_U
  • 164
  • 13
4
votes
2 answers

How to link a static library using WAF?

I'm using OpenSSL in my C++ program, and I need to link crypto and ssl with it. If it were for example gcc, I would just pass: -lcrypto -lssl I am adding this dependency in Network-Simulator 3. But I don't know how to do this in WAF. How should I…
thenakulchawla
  • 5,024
  • 7
  • 30
  • 42
4
votes
1 answer

Building NITRO NITF library on Windows using Waf

I'm trying to build the NITRO NITF library on Windows 64 bit. Also, I need to build the C++ shared libraries to link against, i.e., DLLs not just EXEs. I'm trying to build with: python waf configure build --enable-debugging --prefix=installed…
user55937
  • 61
  • 4
4
votes
1 answer

How do i add compile options for only one of the files of a library in WAF?

I am experimenting with waf for my d project. One of the nice features of D is the "import" of entire files into the code at compile time. To do this you have to specify the folders that will be looked in for the files to import. In the case of the…
jordi
  • 53
  • 5
4
votes
1 answer

WAF, SCons or did I overlook something

I am looking for a make alternative (for lots of reasons which I will keep to myself for now). My needs are something that will compile c/c++ and C# and run static analysis and unit tests. It must be easy to grasp, and maintain even for people with…
Christian Madsen
  • 1,688
  • 4
  • 17
  • 30
4
votes
0 answers

Propagation Loss Model Not Working Properly

I have been experimenting with wifi ad-hoc networks in NS-3 and am currently trying to demonstrate that the farther away the two nodes reside, the worse the connection gets. There are no compile or run-time errors when running WAF. The…
Mike
  • 413
  • 2
  • 12
4
votes
1 answer

Waf: Recursively collect source files and include paths

My C-gcc project structure is: \Project\wscript (only one in project) \Project\build\ \Project\Source\Module_1\foo.c \Project\Source\Module_1\foo.h \Project\Source\Module_1\dummy\foo2.h \Project\Source\Module_n\bar.c \Project\Source\Module_n\any…
Vincent Alex
  • 324
  • 3
  • 12
4
votes
2 answers

waf build system can not find python libraries

i'm trying to build pycairo-1.0 for python3 and getting bad output root@blackenedsun:/home/blackenedsun/Downloads/pycairo-1.10.0# ./waf configure --prefix=/usr ./options() Setting top to :…
BlackenedSun
  • 51
  • 1
  • 4
1 2
3
20 21