Boost logo

Boost-Build :

From: pal.tw (b84037_at_[hidden])
Date: 2004-07-02 00:41:55


Many years ago, I had a dream to write makefile scripts once
and run with any toolset on any platform.
And then I found 'Jam' tool, 'Bjam' tool, and 'BBv2' build system in
sequence.

It seems possible to write once run anywhere. But there are some
problems.
According to the description of module 'alias' ...

--------------------------------------------------------
alias platform-src : win.cpp : <os>NT ;
alias platform-src : linux.cpp : <os>LINUX ;
exe main : main.cpp platform-src ;
--------------------------------------------------------

The scripts will fail in BBv2. Because in NT, <os>LINUX is not
defined.
Conversely, <os>NT is not defined in lunux.

Similarly, there is the same problem in the property <toolset>.
------------------------------------------------------
lib oldnames : : <name>moldname <toolset>gcc ;
lib oldnames : : <name>oldnames <toolset>msvc ;
--------------------------------------------------------
If I don't use both gcc and msvc. it will fail.
Therefor I can't write specific scripts according to the differences
for any toolset and any platform.

Is there any technique or mechanism to achieve this objective?
Or is it possible to define all known toolset and platform values,
and set a default one?

-- PAL

 


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