From: Phillip Seaver (phil_at_[hidden])
Date: 2008-01-13 20:28:11
> Hey all,
> I am trying to create a library that depends on a large number of other
> library files. In Visual Studio, I simply specify all the libraries like
> so: ../dependencies/libs/*.a
> In the Jamfile, I am simulating that like this:
> lib dependencies :
> : <file>$(env)/custom/lib1.a
> # and so on...
> Is there any way I can do a glob command instead? The other option I tried
> was to simply provide a <linkflag> option to my library, but that didn't
> work either.
> Any ideas?
How about this?
local mydeps = [ glob $(env)/custom/lib*.a ] ;
lib dependencies :
Because of the way Jam works, that will get expanded to
"<file>$(env)/custom/lib1.a <file>$(env)/custom/lib2.a ..." As far as I
know, you have to use a variable, because "<file>[ glob
$(env)/custom/lib*.a ]" won't work the same way.
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