Boost logo

Boost-Build :

From: Daniel Lidström (daniel.lidstrom_at_[hidden])
Date: 2006-10-16 10:23:22


Jorge Suit Perez Ronda scribbled:

> like this:
>
> # sources ############################################################
>
> : GFL/GFL.cpp
>
> # requirements #######################################################
> : <toolset>msvc:<name>WS2_32.lib # link with WS2_32.lib if msvc
> ;

This doesn't work for me. If I do it like this all I get is this:
: bjam msvc-7.1 -q
...found 120 targets...

I.e. no compilation takes place at all, even though I did modify some
sources.

Vladimir Prus scribbled:

> > What does 'gristed element' mean?
>
> Something internal. Here's what I get in my local tree:
>
> ghost_at_wind:/tmp/xxx$ bjam
> error: at Jamroot:11
> error: properties found in the 'sources' parameter for ./GFL-1
>
> Does this error message make more sense? If so, I'll commit the
> change.

I think it does. It is great that is shows me the line in Jamroot.

> > I have a lot of aliases. Is it possible to put system library
> > dependencys with the alias, instead of, as in my case, the main
> > library target?
>
> I'm not sure what you mean; can you clarify?

What I meant was, can I have requirements on aliases? For example, something
like this:

# helper for platform-dependent ghal classes #########################
alias ghal_alias : ;
alias ghal_alias : [ glob GFL/GHAL/winnt_GHAL/*.cpp ] : <toolset>msvc ;
alias ghal_alias : [ glob GFL/GHAL/cygwin_GHAL/*.cpp ] : <toolset>gcc ;

# ghal alias
alias ghal
    : GFL/GHAL/tcpip.cpp
      ghal_alias

### requirements
    : <toolset>msvc:<name>WS2_32.lib
    ;

Use this in lib GFL target. The difference was that I could specify system
libraries
in my aliases instead of where I use the aliases (the lib GFL target).

By the way:
: bjam -v
Boost.Jam Version 3.1.13. OS=NT.
   Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
   Copyright 2001 David Turner.
   Copyright 2001-2004 David Abrahams.
   Copyright 2002-2005 Rene Rivera.
   Copyright 2003-2005 Vladimir Prus.

Hälsningar,
Daniel
SBG AB

Phone: +4687112090
Fax : +4687112098
Location:
       59 14'10" N
       18 00'09" E


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