Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-05-02 07:09:22


   Hi Paul.

> (1) Is it at all possible to change the location of the "bin" folder for
> my project or is it hardcoded? (bjam generates a number of files under
> (project root)/bin/msvc-8.0/debug and (project
> root)/bin/msvc-8.0/release. If so, what is the "correct" (good practice)
> way of achieving this?

   You can specify it either for your project target (see
http://www.boost.org/doc/tools/build/doc/html/bbv2/advanced/projects.html)
as in:

     project my-project : build-dir C:\Haleluya

or you can specify it using the --build-dir command line option (see
http://www.boost.org/doc/tools/build/doc/html/bbv2/advanced/invocation.html).

> (2) I am using Boost.Build with Boost.Python. The generated files are
> linked to boost_python-vc80-mt-gd-1_34_1.dll (debug) and
> boost_python-vc80-mt-gd-1_34_1.dll (release). But then I'm using
>
> install bin : hello : <location>$(dist-dir)/debug <variant>debug ;
> install bin : hello : <location>$(dist-dir)/release <variant>release ;
>
> in Jamroot to dist the files. The DLLs do not get copied to the dist
> location (nor do they appear under "bin"). How can I instruct bjam to
> copy the DLLs?

   Depends what your 'hello' target does. Did you try running 'bjam
hello variant=debug' and 'bjam hello variant=release'? Did that create
the DLL files you need? If it did not then the install target got no
such DLL targets as sources...

> (3) On a related note, is there a "copy" rule in Boost.Build (very much
> along the lines of the similar Ant rule), which would copy my supporting
> Python files to $(dist-dir)?

   I believe that the install rule (a.k.a. stage) you are using is
exactly what you need. :-)

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


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