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
2
votes
1 answer

Gstreamer and Taglib unresolved external symbol

I am trying to create a small Gstreamer-Qt based program in Windows using msvc and building it with waf.I am getting this linker error even through i have linked all library required. GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol…
user671253
2
votes
1 answer

waf pkg-config uselib_store variable

I m trying to set the include path for gstreamer for one of my project using waf . I think doing something like this should get the path def configure(conf): …
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
1
vote
1 answer

How do I write a waf file for a custom compiler?

I got sick of looking up the magic symbols in make and decided to try waf. I'm trying to use calibre to make ebooks and I'd like to create a wscript that takes in a file, runs a program with some arguments that include that file, and produces an…
idbrii
  • 10,975
  • 5
  • 66
  • 107
1
vote
1 answer

Example waf project with vala

there is a nice waf vala example here: https://code.launchpad.net/~asabil/vala/vala-project-template.waf and it shows a library and an application in vala. Unfortunately the program in this example does not actually USE the library (which defines…
lzap
  • 16,417
  • 12
  • 71
  • 108
1
vote
1 answer

Link shared library when using WAF and NS3

This is a query related to the network simulator called NS3. Say that I want to build a program called 'MyProgram' and to link a shared library when building it. How do I do this with WAF? I have put 'MyProgram' in a directory called…
Anders Branderud
  • 1,878
  • 6
  • 29
  • 45
1
vote
1 answer

cloudfront -> waf -> api-gateway integration

I'd like to expand my serverless application to the second aws region, so that it works in active-active model. Currently I have a public api-gateway secured with WAF. I'd like to add a cloudfront distribution in front of that api-gateway and then…
1
vote
1 answer

Idiom for creating similar build targets (one option changes)

I want one release version and a debug version of the same files. Right now I have written a python function that creates the two versions. Is there a more idiomatic way, maybe directly supported by waf?
1
vote
2 answers

Add an include path for a single file in a library

I'm building a library for which one file requires an additional include path. Is there a way to adjust the include path for compilation of a single file? bld(features="cxx cxxshlib", source=[so, many, files, from an ant_glob], …
dbn
  • 13,144
  • 3
  • 60
  • 86
1
vote
1 answer

How can I use the GCC -frandom-seed= option with the waf build system?

According to the GCC documentation the -frandom-seed=string should have a unique string for each compiled file, see GCC Developer Options. One common approach is to use the source file path. How can I teach the waf build system to use the source…
1
vote
1 answer

Waf: target is directory

My wscript file is simple: def configure(ctx): pass def build(bld): bld(rule='mkdir aaa', target='aaa') bld(rule='touch bbb', source='aaa', target='bbb') And first run of waf configure and waf build passes OK. But the second waf build…
RandomB
  • 3,367
  • 19
  • 30
1
vote
2 answers

How to access config variables in exec_command()s?

I have a configuration function in my wscript: def configure(ctx): ctx.env.V1 = 123 def build(ctx): def myfun(task): return task.exec_command('echo VAR=${V1}') ctx.exec_command('echo VAR=${V1}') ctx.add_post_fun(myfun) But in…
RandomB
  • 3,367
  • 19
  • 30
1
vote
1 answer

WAF: recursive find_program()

I am very new to WAF. I have configuration function like: def configure(ctx): ######################################################################## # **/myexe does not work too; also abs path in path_list does not work! …
RandomB
  • 3,367
  • 19
  • 30
1
vote
0 answers

Howto define symbolic tasks with waf?

I am looking for an alternative for an existing make-based build system that contains multiple tasks for copyiing, packaging, zipping/unzipping actions for various consumers. Make has 'phony' tasks with a name, that can depend on multiple files that…
maver
  • 41
  • 3
1
vote
1 answer

how to convert waf build system to exe?

i use waf(https://waf.io/) as my build system , as not ervey my client want install the python , so I want try to convert it (python+waf+wscript) to exe file , first I try the pyinstaller , pyinstaller.exe -F waf it give the error as…
chenx319
  • 35
  • 5
1
vote
1 answer

waf: Uselib options in custom rule

I have a waf build script and need to invoke a program which is not officially supported. #file wscript def configure(conf): conf.env.LIB = ['c', 'd'] conf.env.INCLUDES = ['include'] conf.env.LIB_xml2 = ['xml2'] conf.env.INCLUDES_xml2 =…