waf

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? ...

How can I make a Python extension module packaged as an egg loadable without installing it?

Hi all I'm in the middle of reworking our build scripts to be based upon the wonderful Waf tool (I did use SCons for ages but its just way too slow). Anyway, I've hit the following situation and I cannot find a resolution to it: I have a product that depends on a number of previously built egg files. I'm trying to package the produ...

How to debug filesystem "access denied" errors on win32?

Hi all I'm having a hell of a time with our build scripts right now: I'm using Waf to drive our build process, and everything works great, except on Windows, where I am getting intermitent errors during builds. The errors are always basically "access denied" errors of one form or another, relating to temporary files I have created duri...

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 be finding a way to drive our current build tool (Waf) from within the IDE. So the questio...

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 point me in right direction? Update 1 Please don't suggest anything that requires Cygwin. ...

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 = 'build' def set_options(opt): opt.tool_options('compiler_cc') pass def configure(c...

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 dislike: hand crafted Makefiles - I've worked this way almost exclusively in the past GNU...

Unable to get WAF to run

I am trying to build the Monotooth library on Ubuntu and there is a native component which needs to be compiled. The distro from github has a wscript file and requires WAF to build. However, whenever I try to execute waf configure I get: Checking for program gcc : ok /usr/bin/gcc Checking for program cpp ...

Is there a way to debug a subprocess using pydev?

Hi all 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 boundaries, and I'm guessing that it is actually not possible. Still, you never know un...

Waf generating Visual Studio projects?

Can the Waf build system generate Visual Studio project files for C/C++? ...

Is there a way for a program to detect if it was called by MSBuild or not?

I'm looking in the environment but I can't see anything that I could use. Any ideas? I'm trying to submit a patch for in Waf a bug that only appears when running the build under MSBuild (...yes I know, it sounds crazy but we're driving our Teamcity server using MSBuild). ...

Build automation by using platform specific project files or by using project generators?

There are some build systems that are able to generate platform specific project files like Visual Studio sln,vcproj,vcxproj files or XCode xcodeproj projects under OS X. One of them is CMake but I found out that the support for this is quite limited, buggy and that is very hard to keep it updated with newer versions (like VS 2010). A...

How can I add a code that is always executed by Waf before exit?

I want to make Waf generate a beep when it finishes the execution of any command that took more than 10 seconds. I don't know how do add this and assure that the code executes when Waf exits. This should run for any Waf command not only build. I checked the Waf book but I wasn't able to find any indication about how should I do this...

I'm Getting Cannot set Visibility or call Show, ShowDialog Exception

I'm using WAF (Wpf Application Framework) to create a dialog as shown in the ModelView sample application. I am trying to put up a simple AboutBox by mirroring the code for putting up the CreateEmailAccountWizard dialog box. My About box shows up fine the first time, but when I call it again from the menu, it gives me the following exc...

URLScan and percent signs

So I just ran into a stupid problem in which users could not download files that had a percent sign in it. This is an IIS6/Win2k3 box. It wound up being URLScan. I had to un-set two things in urlscan.ini: 1) Set VerifyNormalization to 0 (disabled) 2) Remove the percent sign from the "DenyUrlSequences" section Do an iisreset, a...

Is the waf 'top' directory the default starting path?

I have a very simple waf script that I'm using to (at the moment) call out to another build system (baby steps you see). Our 'build' folder is under our source folder, so I figured using the first line top = '..' would set waf to look for source files starting at that directory for any build commands. However, when running waf, it's...

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 intermediate technical skills. During my analysis, I have fallen for WAF and SCons and ...

Can't configure node.js for make install on OS X (Snow Leopard)

I cloned the node git repo but the "waf" build tool that comes with node seems to not work with the latest version of Python. $ ./configure Traceback (most recent call last): File "/Users/greim/nodestuff/node/tools/waf-light", line 157, in <module> import Scripting File "/Users/greim/nodestuff/node/tools/wafadmin/Scripting.py", ...

CMake or Waf for D project

Hello! 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. We might adopt Code::Blocks as IDE. Waf already has support for D language, while ...