Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-04-03 08:11:58


Hi !

Am Maandag 03 April 2006, 13:54 schrieb Vladimir Prus:

> Using ":" as last character of word to indicate something looks pretty
> confusing to me, because now you have ":" used in two different ways in the
> same invocation of a rule.

Yes. Especially as the project rule use ":" in front right now.

> Using:
>
> lib foo : foo.cpp
>
> : self <define>COOL=1
> : all <define>ENABLE_LOG
> : users <link>shared:<define>BUILD_DLL=1

I'd even go for
lib foo
   : source foo.cpp
   : self <define>COOL=1
   : all <define>ENABLE_LOG
   : users <link>shared:<define>BUILD_DLL=1
   ;

and _only_ use named identifiers for the sections.
It is nearly impossible to decipher something like
alias dummy
   :
   :
   :
   :
  <define>SOMETHING
   ;

I'd just like to have something more readable then all those colons.
My favorite is something like
lib foo
   : source a.cpp b.cpp c.cpp
   : build <define>BUILD_DEFINE
   : common <include>my_path
   : used <define>MY_DEFINE
   ;

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
* hunold_at_[hidden]          ! www.ive-mbh.de

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