Boost logo

Boost-Build :

From: TEMPLIE Cédric (cedric.templie_at_[hidden])
Date: 2004-12-23 11:15:20


Vladimir Prus wrote:
> On Thursday 23 December 2004 18:29, TEMPLIE Cédric wrote:
>
>
>>In my root Jamfile, I done the following thing :
>>
>>if [ glob Project1 ]
>>{
>>#Project1 sources available
>> use-project /project1 : ./project1 ;
>>}
>>else
>>{
>>#Project1 sources unavailable,
>>#so use already build libraries
>> use-project /project1 : $(STAGE_DIR) ;
>>}
>>
>>In $(STAGE_DIR), there is a jamfile that declare same targets than in
>>project1, but just point to needed file instead of building them...
>>
>>Isn't it a valid solution ?
>
>
> It is, indeed. But if ./project1 defines export_headers, export_lib and
> project1 lib target, then project2 better link to "project1".
>
> This way:
> 1. If project1 is available you link directly to the library, not to the
> staged version.
>
> 2. If project1 is not available then Jamfile in $(STAGE_DIR) will define
> project1 target and you will link to it.
>
> Still no need to link to result 'stage' target.
>
> - Volodya

Yes, I agree, you mean what pedro said, linking directly with the library...

lib project2
: $(cppFiles:BS)
: <source>/project1//project1
;

But when doing that how to specify the project1 to also stage its
headers and the generated lib in another location ?

That is why I link with the library alias that build the lib, copy
headers, and the generated lib in another location....

alias library : project1 export_lib export_headers ;

If you know something to do what I want, I will be happy :)

Thx again

TEMPLIE Cédric

>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

 


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