Boost logo

Boost-Build :

Subject: Re: [Boost-build] [python] Python build description
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2010-07-14 15:32:54

On 07/14/2010 03:21 PM, Steven Watanabe wrote:
> Stefan Seefeld wrote:
>> On 07/14/2010 02:50 PM, Spencer E. Olson wrote:
>>> --------------------------------- pyJam Example
>>> -------------------------
>>> in python (as per the example stuff in my earlier email), you have:
>>> <<<<<<<<>>>>>>>>
>>> from build import *
>>> project('/myApp',
>>> define('PROJECT_NAME=myApp'),
>>> );
>> why not
>> define(PROJECT_NAME="myApp")
>> (i.e., use actual assignment or keyword arguments, rather than an
>> assignment embedded in a string) ?
> I think a string is probably better since that allows
> things like define("BOOST_ALL_NO_LIB") as well.
> Also, I don't really like relying on the fact that all
> preprocessor macros are also valid python identifiers.

Oh, sorry, I didn't realize that the above "define()" function would
actually define a macro. I agree that for that case it's best to leave
it as a string. I was thinking of the general case of assigning to the
equivalent of makefile variables.


       ...ich hab' noch einen Koffer in Berlin...

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at