|
Boost-Build : |
Subject: Re: [Boost-build] Boost-build Digest, Vol 69, Issue 8
From: Michael Krajnak (michael.krajnak_at_[hidden])
Date: 2011-05-13 10:35:57
Great! That works, what I have is:
import toolset ;
import os ;
local stlDir = [ os.environ "STLPORT" ] ;
...
using stlport : 5.2.1 :
$(stlDir)/stlport :
$(stlDir)/lib/evc9-x86 ;
I do have a question about the "?=" syntax in your example.
programFiles ?= [ os.envron "ProgramFiles" ] ;
I assume this is "set value if not already set", something like "if
!programFiles then programFiles = ..."
I wanted to a hard code a default value so I put something like:
stlDir ?= [ "default/path/to/stlport"] ;
But I get the following message:
user-config.jam:43: in modules.load rule D:/dev/sapphire/stlport
unknown in module user-config.
I can live without this, but at this point I would like to understand
what's happening here.
Thanks!
Mike
On 5/12/2011 9:24 AM, boost-build-request_at_[hidden] wrote:
> Message: 5
> Date: Thu, 12 May 2011 09:22:51 -0500
> From: "Nogradi, Chris"<Chris.Nogradi_at_[hidden]>
> To: Boost.Build developer's and user's list
> <boost-build_at_[hidden]>
> Subject: Re: [Boost-build] Can I include environment variables in
> user-config.jam?
> Message-ID:
> <678F5E340B8CAC49B311333CD802D0C00BDE7612CE_at_[hidden]>
> Content-Type: text/plain; charset="us-ascii"
>
> I use the following from within jamroot.jam but I am not an expert and I did see a comment once about 'using' needing to be called earlier than jamroot.jam, however I have not seen any issue with this yet:
>
> import toolset ;
> import os ;
>
> local programFiles = [ os.environ "ProgramFiles(x86)" ] ;
> programFiles ?= [ os.environ "ProgramFiles" ] ;
>
> toolset.using msvc : myver : "$(programFiles)/Microsoft Visual Studio 8/VC/bin/cl.exe" ;
>
> Chris
>
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