List Info

Thread: Re: Using Environment Variables in Boost.BuildJamRoot file




Re: Using Environment Variables in Boost.BuildJamRoot file
country flaguser name
United States
2007-05-29 14:57:44
Lawrence Spector wrote:
> Now, if I want
> to put it in site-config.jam as you suggested, what
other steps are
> there so that the Jamroot file can use the contents of
> site-config.jam.  I tried putting the import os; and
local BOOST_ROOT
> = [ os.environ BOOST_ROOT ] ; into the site-config
file, but my
> Jamroot file was not able to see the variables.  What I
gathered from
> reading is that all jam files have their own
namespaces.  How do you
> "export" something into the global namespace
then?

You can:

import os;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;

I think.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Using Environment Variables in Boost.Build JamRoot file
country flaguser name
United States
2007-05-29 15:10:14
Excellent.  That worked great!  Thanks for the tip.

-Lawrence

-----Original Message-----
From: boost-build-bounceslists.boost.org
[mailto:boost-build-bounceslists.boost.org] On Behalf
Of Rene Rivera
Sent: Tuesday, May 29, 2007 3:58 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Using Environment Variables in
Boost.BuildJamRoot file

Lawrence Spector wrote:
> Now, if I want
> to put it in site-config.jam as you suggested, what
other steps are
> there so that the Jamroot file can use the contents of
> site-config.jam.  I tried putting the import os; and
local BOOST_ROOT
> = [ os.environ BOOST_ROOT ] ; into the site-config
file, but my
> Jamroot file was not able to see the variables.  What I
gathered from
> reading is that all jam files have their own
namespaces.  How do you
> "export" something into the global namespace
then?

You can:

import os;
path-constant BOOST_ROOT : [ os.environ BOOST_ROOT ] ;

I think.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )