|
Boost-Build : |
Subject: Re: [Boost-build] [glob *.cpp] excluding main.cpp
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-04-06 10:00:59
Hi Andrej,
On Wednesday, 6. April 2011 12:06:34 Andrej van der Zee wrote:
> Hi,
>
> Sometimes I write a library with many files and want to add a main.cpp
> in the same directory for quick testing. Instead of listing all the
> *.cpp files for the lib explicitly, would there be a way to specify
> all *.cpp files except for main.cpp?
The Boost.Build dokumentation on the builtin rules is quite good.
Does
http://www.boost.org/boost-build2/doc/html/bbv2/reference/rules.html
help? There is an entry for "glob" which explicitly mentions the exclude
feature you want
: [ glob *.cpp : main.cpp ] # exclude main.cpp
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk