Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-06-24 04:36:55


Hi James,
> Warning: I'm an utter Boost.Build newbie.
>
> I'm setting up BBv2 (from boost 1.32.0) on WinXP for an existing
> project. (I'm currently using SCons, but sadly the performance is too
> poor.) A have a Python script that generates some C++ which then must
> be compiled and linked. (The script generates the structures for
> database access.) This script takes a '.bpy' file and produces a
> '.cpp' and '.h' files (in a single invocation.)
>
> I have successfully got the tool running, except that it's putting
> files in the wrong places. All of the bpy files and the files
> generated by the tool are placed in a Data/ subdirectory. A
> simplified version of the rule to build the lib looks like...
>
> lib BVData
>
> : Data/file.bpy
>
> other_source.cpp
> ;
>
> The problem is that the Data/ subdirectory is not preserved. The
> sources are all copied into bin/msvc/debug/ and the directory
> structure flattened. Is there a way to stop this behaviour, or an
> approach that I should use instead?

You did not specify where you what file.cpp to be placed. Assuming you want it
to end in 'Data', you can use this:

lib BVData : data other_source.cpp ;
cpp data : Data/file.bpy : <location>dir ;

This is likely to require development version of Boost.Build, that you can
obtain from http://boost.org/boost-build2 (see the "Nightly build" link).

HTH,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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