Boost logo

Boost-Build :

From: Alexey (Alexey.Trenikhin_at_[hidden])
Date: 2006-04-06 13:15:10


Thanks !
Is any way to enumerate targets from sub-project, I mean for second variant
have something like

exe hello : [glob subsystem1//*]?

Regards,
Alexey

"Reece Dunn" <msclrhd_at_[hidden]> wrote in message
news:BAY101-W56654B4DAA5CE319B232DA0C80_at_phx.gbl...
> Alexey Trenikhin wrote:
>>
>> I have project with following structure:
>>
>> /root
>> /subsystem1
>> std.cpp
>> /subsystem2
>> std.cpp
>> main.cpp
>> Jamfile
>> project-root.jam
>>
>> How can I describe such structure in Jamfile? Obvious way:
>> exe hello : main.cpp subsystem1/std.cpp subsystem2/std.cpp ;
>> - does not work due to
>> "error: Duplicate name of actual target: <pbin\msvc\debug>std.obj"
>
> If you have a Jamfile in each subsystem directory containing:
>
> lib subsystem1 : std.cpp : <link>static ;
>
> and then define hello as:
>
> exe hello : main.cpp subsystem1//subsystem1 ... ;
>
> Or, if you don't wan't to use libraries:
>
> obj std : std.cpp ;
>
> and
>
> exe hello : main.cpp subsystem1//std ... ;
>
> HTH,
> - Reece
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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