Boost logo

Boost-Build :

Subject: Re: [Boost-build] generate code from Jamfile
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-01 15:52:46


AMDG

Oliver Kowalke wrote:
> Is it possible to generate hpp-files from Jamfile?

Yes.

> For instance I need to set array size depending uppon boost.build
> properties.

The easiest way is to use print in a make target. A relatively
simple example is here
http://svn.boost.org/svn/boost/trunk/libs/units/test_headers/Jamfile.v2
it's generating a cpp file instead of an hpp file, but the principle is
the same.

Depending on how complex what you're doing is, it might be
easier to use macros.

In Christ,
Steven Watanabe


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