List Info

Thread: Using inputs into targets




Using inputs into targets
user name
2006-06-23 22:00:35

This looks like it would work. I'm going to give it a shot next week when I'm back in the office.

By the way, is there a reference or tutorial for the entire bjam language? It seems very nice.

-----Original Message-----
From: boost-build-bounceslists.boost.org on behalf of Ilya Sokolov
Sent: Thu 6/22/2006 11:38 PM
To: boost-buildlists.boost.org
Subject: Re: [Boost-build] Using inputs into targets

local a_cpp = [ glob a/*.cpp ] ;
for local i in $(a_cpp)
{
   # :B for basename, see "jam/language/variables"
   obj $(i:B) : $(i) ;
}
lib a : $(a_cpp:B) ;

local b_cpp = [ glob b/*.cpp ] ;
for local i in $(b_cpp)
{
   obj $(i:B) : $(i) ;
}
lib b : $(b_cpp:B) ;

local c_cpp = [ glob c/*.cpp ] ;
for local i in $(c_cpp)
{
   obj $(i:B) : $(i) ;
}
lib c : $(c_cpp:B) $(b_cpp:B) ;

lib all : $(a_cpp:B) $(b_cpp:B) $(c_cpp:B) ;

you can also move the loops to separate rule:

rule objs ( name
          ; : sources ? # maybe i wrong with this signs, see docs
          ; : requirements *
     ;      : default-build ?
     ;      : usage-requirements )
{
   for local i in $(sources)
   {
     obj $(i:B) : $(i) ;
   }
}

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

Using inputs into targets
user name
2006-06-24 19:10:56
On 24/06/06, Sohail Somani <s.somanifincad.com> wrote:
>  By the way, is there a reference or tutorial for the
entire bjam language?
> It seems very nice.
>
htt
p://www.boost.org/tools/build/jam_src/Jam.html

This is the best language reference we have now.

Andrei
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Using inputs into targets
user name
2006-06-24 19:29:16
Andrei Melnikov wrote:
> htt
p://www.boost.org/tools/build/jam_src/Jam.html
> This is the best language reference we have now.
It's somewhat incomplete. Besides, BJam has some strange
quirks which 
can be hard to debug.

For example, I've spent a LOT of time trying to debug my
code. It turned 
out that:

rule test ( a b * c : d )

should have been:

rule test ( a b * : c : d )

I think we need to create a section in Wiki to collect all
cases of such 
behaviour.

PS: My BJamC++ issues an error on this code ;)
-- 
With respect,
             Alex Besogonov (cyberaxelewise.com)

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

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