List Info

Thread: How do I specify a path relative to the compiler one?




How do I specify a path relative to the compiler one?
country flaguser name
Italy
2007-03-02 07:30:58
Hallo,
I'm trying to configure odbc32 as an external library in a
Jamfile. This works
fine for those compilers which have it in their default
library path; for
Borland I need to specify a location that is relative to
where the compiler is
installed. Currently I have it hard-coded as follows:

lib odbc
    :
    : <name>odbc32
      <toolset>borland:<search>"C:/Program
Files/Borland/CBuilder6/Lib/Psdk"
    ;

However I'd like to refer to the path that's specified in my
user-config.jam
file. Is that possible?

Cheers,
Nicola Musatti
 

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

Re: How do I specify a path relative to the compiler one?
country flaguser name
United States
2007-03-19 10:52:29
on Fri Mar 02 2007, Nicola Musatti
<Nicola.Musatti-AT-gmail.com> wrote:

> Hallo,
> I'm trying to configure odbc32 as an external library
in a Jamfile. This works
> fine for those compilers which have it in their default
library path; for
> Borland I need to specify a location that is relative
to where the compiler is
> installed. Currently I have it hard-coded as follows:
>
> lib odbc
>     :
>     : <name>odbc32
>      
<toolset>borland:<search>"C:/Program
Files/Borland/CBuilder6/Lib/Psdk"
>     ;
>
> However I'd like to refer to the path that's specified
in my user-config.jam
> file. Is that possible?

IIRC there's a way to get your user-config.jam to be treated
as a
regular Boost.Build module (but I don't remember what it
is).  Then
you could set up the compiler path as a variable and write a
small
rule there that accesses it.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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

Re: How do I specify a path relative to the compiler one?
country flaguser name
Russian Federation
2007-03-19 11:15:45
On Monday 19 March 2007 18:52, David Abrahams wrote:
> 
> on Fri Mar 02 2007, Nicola Musatti
<Nicola.Musatti-AT-gmail.com> wrote:
> 
> > Hallo,
> > I'm trying to configure odbc32 as an external
library in a Jamfile. This works
> > fine for those compilers which have it in their
default library path; for
> > Borland I need to specify a location that is
relative to where the compiler is
> > installed. Currently I have it hard-coded as
follows:
> >
> > lib odbc
> >     :
> >     : <name>odbc32
> >      
<toolset>borland:<search>"C:/Program
Files/Borland/CBuilder6/Lib/Psdk"
> >     ;
> >
> > However I'd like to refer to the path that's
specified in my user-config.jam
> > file. Is that possible?
> 
> IIRC there's a way to get your user-config.jam to be
treated as a
> regular Boost.Build module (but I don't remember what
it is).  

There's no way -- user-config.jam is already treated exactly
like
Jamfile, and Jamroot inherit things from user-config.jam.

Therefore, adding

	path-constant WHATEVER : WHATEVER ;

in user-config.jam will allow one to write

	$(WHATEVER)

in all Jamfiles everywhere.

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

[1-3]

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