List Info

Thread: add defines to build-in variant




add defines to build-in variant
country flaguser name
Japan
2007-04-07 21:19:03
Hi,

I just quickly read the manual of Boost-build (I'm
new) but could not find how I can add defines to
build-in variants. For example, I want to define
MY_DEBUG for all projects when a user types "bjam
debug". How can I do this?

I saw that I can extend or define my own variants, or
type "bjam debug define=MY_DEBUG", but this is
not
what I want. Moreover, I also do not want to add the
conditional
"<variant>debug:<define>MY_DEBUG" to
all
target's requirements. 

Is there a way to add the define to debug in Jamroot
so that it is applied globally to all sub-projects?

Thanks,

Andrej



		
___________________________________________________________

The all-new Yahoo! Mail goes wherever you go - free your
email address from your Internet provider. http://uk.doc
s.yahoo.com/nowyoucan.html
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: add defines to build-in variant
country flaguser name
United States
2007-04-08 10:43:22
On Apr 7, 2007, at 8:19 PM, Andrej van der Zee wrote:

> I saw that I can extend or define my own variants, or
> type "bjam debug define=MY_DEBUG", but this
is not
> what I want. Moreover, I also do not want to add the
> conditional
"<variant>debug:<define>MY_DEBUG" to
all
> target's requirements.
>
> Is there a way to add the define to debug in Jamroot
> so that it is applied globally to all sub-projects?

Why can't you put this in your Jamroot?

project
   : requirements
     <variant>debug:<define>MY_DEBUG
   ;

-- Noel Belcourt


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-2]

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