List Info

Thread: Testing installed components




Testing installed components
user name
2006-02-07 19:59:47
Vladimir Prus <ghostcs.msu.su> writes:

> On Monday 06 February 2006 17:46, Phillip Seaver wrote:
>> How hard would it be to automatically create a
Jamfile to be installed
>> along with the libraries?  
>
> It will be rather tricky. Imagine you build/install a
project twice, with 
> different properties. Then, you'd need to load the
previous installed 
> Jamfile, add new declarations to it, and write it
again. And you should take 
> care not to write the same declaration twice, if case
you build/install twice 
> with the same properties.
>
> It's doable, but not very easy, and the structure of
file must be fixed.

Seems easier than that to me.  Can't you just load the
Jamfile as
usual and inspect the data structure that creates?

>> That could also help with the problem of some
libraries having
>> usage requirements (in the case of boost libs and
in the more
>> general case of building and installing libraries
with bbv2).
>
> Alternatively, each installed library libfoo.so can be
accompanied by
> libfoo.so.usage-requirements, and whatever Jamroot
responsible for globbing 
> and declaring prebuilt targets can glob for those files
as well. Though it 
> would require "read a file" builtin in jam,
unless we have one.

INCLUDE

?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Testing installed components
user name
2006-02-08 08:00:57
On Tuesday 07 February 2006 22:59, David Abrahams wrote:
> Vladimir Prus <ghostcs.msu.su> writes:
> > On Monday 06 February 2006 17:46, Phillip Seaver
wrote:
> >> How hard would it be to automatically create a
Jamfile to be installed
> >> along with the libraries?
> >
> > It will be rather tricky. Imagine you
build/install a project twice, with
> > different properties. Then, you'd need to load the
previous installed
> > Jamfile, add new declarations to it, and write it
again. And you should
> > take care not to write the same declaration twice,
if case you
> > build/install twice with the same properties.
> >
> > It's doable, but not very easy, and the structure
of file must be fixed.
>
> Seems easier than that to me.  Can't you just load the
Jamfile as
> usual and inspect the data structure that creates?

Ah, right, I think it's possible.

> >> That could also help with the problem of some
libraries having
> >> usage requirements (in the case of boost libs
and in the more
> >> general case of building and installing
libraries with bbv2).
> >
> > Alternatively, each installed library libfoo.so
can be accompanied by
> > libfoo.so.usage-requirements, and whatever Jamroot
responsible for
> > globbing and declaring prebuilt targets can glob
for those files as well.
> > Though it would require "read a file"
builtin in jam, unless we have one.
>
> INCLUDE

That only works if the file has variable declaration of some
kind:

  usage-requirements = ................. ;

It can't be just a list of properties. Maybe not so big a
restriction, anyway.

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

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