Boost logo

Boost-Build :

From: Peter Foley (pjfoley_at_[hidden])
Date: 2005-07-07 05:20:27


Hi List,

During the development of the wix.jam file to make it easier for me to
develop I hard coded various values. I am at the stage where I am trying to
remove the bit where I hardcode "../src" (see the compile and link actions
below):

----
actions compile 
{
$(.CC) -nologo "$(OPTIONS)" -d"$(DEFINES)" -I../src/"$(INCLUDES)" -out
"$(<)" "$(>)"
}
actions link
{
$(.LD) -nologo "$(OPTIONS)" -b ../src -out "$(<)" "$(>)"
}
----
I have my project jam file defined like this:
(Note: Disregard the silly <include>, <define>, <compileflags> and
<linkflags> values. I have just defined these so I can see some output
while doing bjam -n -a)
----
project boost_inst
: source-location ../src
: build-dir msi
:
;
msi boost 
: installer.wxs
./gui/ui.wxs
./tools/bjam.wxs
: <include>includes
<define>Flavor=Test
<compileflags>compiletestflag
<linkflags>linktestflag
;
----
As you can see from above the source-location variable is defined with the
location that the source will be located at ("../src"). What variable can I
embed in the code that will always contain the source-location variable?
Thanks,
Peter.
 

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