Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to run a program generating .qbk files before quickbook ?
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2015-07-31 13:05:50


Haven't tried this but it should work...

On Fri, Jul 31, 2015 at 8:53 AM, Paul A. Bristow <pbristow_at_[hidden]>
wrote:

> I need to (re-)generate some tables as *.qbk files before building the
> documentation proper.
>
> # Generate Quickbook tables of types and their numeric_limits.
> run fixed_point_types_table.cpp ;
>

local fixed_point_types_table = [ run fixed_point_types_table.cpp ] ;

>
> writes the files
>
> How do I ensure that
>
> 1 The files are only re-generated when the source .cpp has changed ( been
> edited).
>
> 2 The files are written before the main Quickbook is processed to xml with
>
> xml fixed_point
> :
> fixed_point.qbk
> :
> <dependency>autodoc # doxygen
> ;
>
> I looks as though I need a <dependency>
>
> but I can't see what the target would be called.
>

<dependency>$(fixed_point_types_table)

3 I may have more than one .cpp file to run. How can I run all the .cpp
> in the (doc/) folder?
>

Use an an alias and glob+run each.

-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail



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