$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-10 13:12:23
Hi Ian,
> So right now, at the top of my mex.jam file, the user
> would have to change the value of a variable befoore
> building, i.e.,
>
> # Change to glnx if using linux, hpux if HP-UX, etc.
> MEXEXTEN = mac ;
> # MEXEXTEN = glnx ;
>
> Then I use this variable throughout the mex.jam file.
> Since I know what the extension should be given the
> platform, is there any way for this to be determined
> automatically?
You can use
import os ;
if [ os.name ] = FOO
{
MEXEXTEN = mac ;
}
else if [ os.name ] = BAR ;
{
}
and so on.
You can also use "toolset.set-generated-target-suffix" function, but it's more
general and probably the above will work just fine.
- Volodya