Boost logo

Boost-Build :

Subject: Re: [Boost-build] aliases for sublibraries
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2012-01-16 17:33:54


You should use use-project to do in Jamroot:

use-project /MyProject/lib1 : libraries/lib1 ;

and refer to it in another lib jam file as /MyProject/lib1//lib1

alternatively, I think this will work (but not as good), you could use alias like this in your Jamroot:

project MyProject ;

alias lib1 : libraries/lib1//lib1 ;

and then refer to it in another lib jam file as /MyProject//lib1

Chris

-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Karsten Ahnert
Sent: Monday, January 16, 2012 2:35 PM
To: Boost.Build developer's and user's list
Subject: [Boost-build] aliases for sublibraries

Hi,

I have a tree like structure for a small software project:

Root
 + Jamroot
 + apps
   + app1.exe
   + ...
   + Jamfile
 + libsraries
   + lib1
     + source1.cpp
     + ...
     + Jamfile
   + lib2
     + source1.cpp
     + ...
     + Jamfile

In each of the lib* directories a static or shared library is created.
Now, some of these libraries depend on other for example lib2 depends on
lib1 and I want to use aliases to reference on the depend library.

I created these aliases in the Jamroot, via

alias /MyProject/lib1 : ./libraries/lib1//lib1 ;
alias /MyProject/lib2 : ./libraries/lib1//lib2 ;

but referencing them does not work. If I call bjam from the root
directory I obtain:

error: Unable to find file or target named
error: '/MyProject/lib1'
error: referred from project at
error: 'libs/lib2'

Is there a easy way to create such aliases? Similar to
/boost//filesystem ? I played around with different names (leading
slashed) and I tried to use appropriate project names but I was unable
to figure out how it works in general.

Thank you,

Karsten

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

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.


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