Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-03-11 16:04:18


On 2002-03-11 at 08:10 PM, jfurtek_at_[hidden] (jfurtek) wrote:

>I would like my build system to "install" (or copy) built dlls and
>executables to a predefined location. (This way, I can set my
>PATH/LD_LIBRARY_PATH and run the program.)
>
>Under Jam/MR, I would do this:
>
>InstallBin $(MYOUTDIR) : test ;
>
>The Jam/MR system would then, if I understand correctly, bind "test"
>to the built target file, and copy it.
>
>Under Boost, I get this error message:
>
>don't know how to make test.exe
>
>(I have included working files at the end of this mail.)
>
>This seems fundamental enough that I would think there is a way to do
>this under the Boost system. Is there?

Yes, and no :-)

We haven't takled intalls, yet. The closest we have so far is this:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/tools/build/build_system.htm?rev=HEAD&content-type=text/html#stage_targets

Which works as long as your output directory is within the build directories.

To use the InstallBin you would have to put in the fully gristed name of the
targets. I think, I haven't actually tried this out ;-\

>-------------------------
># Boost.Jam 3.0.0
>subproject ext/test ;
>
>exe test : test.cpp ;
>
>MYOUTDIR = [ FDirName $(TOP) bin ] ;
>
>InstallBin $(MYOUTDIR) : test ;
>
>DEPENDS all : install
>--------------------------
>// test.cpp
>#include <stdio.h>
>
>int main(int argc, char* argv[])
>{
> printf("%s execution completed\n", argv[0]);
> return 0;
>}

Given this example try doing something like this in your top level Jamfile:

stage bin-stage : <exe>ext/test ;

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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