[haiku-development] Re: Some help with Jam

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 22 May 2008 12:53:55 +0200

Julun wrote:
> Hi,
> 
> after getting the source from Scooby (Mail client) checked out with cvs I 
> have the following source tree:
> 
> - 3rdParty
>    - scooby
>      - Scooby
>        - src
>             - some_source.cpp
>             - some_source.cpp
>             - some_source.cpp
>        - libs
>          - Santa
>             - some_header.h
>             - libsgb.a
>          - Toolbar
>             - some_header.h
>             - libToolbar.a
> 
> and so on...
> 
> After making my Jamfile to build the Scooby source i need to link against 
> some of the *.a libs spread in libs/*/*.a So I'm looking for a way to add 
> it in the Jamfile without doing something like this:

Would something like this work?

----
# Where to find the 3rd party libraries
LIBSANTA                        = libsgb.a ;
LIBTOOLBAR                      = libToolbar.a ;

local scoobyLibs = [ FDirName $(HAIKU_TOP) 3rdparty scooby Scooby libs ] ;

SEARCH on $(LIBSANTA) = [ FDirName $(scoobyLibs) Santa ] ;
SEARCH on $(LIBTOOLBAR) = [ FDirName $(scoobyLibs) Toolbar ] ;
----


Have not tried that myself. Hope it helps...

Best regards,
-Stephan



Other related posts: