$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Zbynek Winkler (zwin_at_[hidden])
Date: 2003-12-17 10:24:13
Now, that I have everything working I'd like to have file
user-settings.jam where the prefered defaults could be set/changed. What
would be the best way to do this? As I understand it now - when I do not
specify <arit> in the definition of exe main, the test-lib with
<arit>float is used because the "float" value is declared first, right?
I'd like the user-settings.jam to be somewhat similar to the configure
parametrs enabling/disabling some features of my project.
Thanks for your help.
Zbynek
PS. Feel free to use the examples attached any way you prefer (maybe add
something to the v2/example dir?).
--
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech
Republic
--------------050409010908000207020403 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"
project : requirements <link>static ;
exe main : main.cpp test-lib ;
lib test-lib : test-lib.cpp : <arit>double ;
lib test-lib : test-lib.cpp : <arit>float ;
lib test-lib : test-lib.cpp : <arit>fixed ;
lib test-lib : test-lib.cpp : <arit>debug ;
--------------050409010908000207020403 Content-Type: text/plain;
name="main.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="main.cpp"
int main(int argc, char* argv[])
{
return 0;
}
--------------050409010908000207020403 Content-Type: text/plain;
name="project-root.jam"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="project-root.jam"
import feature : feature compose ;
feature arit
: float double fixed debug
: propagated link-incompatible composite symmetric
;
feature.compose <arit>float : <define>ARIT_FLOAT ;
feature.compose <arit>double : <define>ARIT_DOUBLE ;
feature.compose <arit>fixed : <define>ARIT_FIXED ;
feature.compose <arit>debug : <define>ARIT_DEBUG ;
import user-settings ;
--------------050409010908000207020403 Content-Type: text/plain;
name="test-lib.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="test-lib.cpp"
# user sets the default value for <arit>
--------------050409010908000207020403--