On Thu, Jan 23, 2003 at 11:07:00AM +0100, Sven Luther wrote: > about the lablgtkgl predicate ... I know nothing about lablgtkgl, but I suppose you can easily deduce how to add it to the META file ... > I have just checked also lablgl, and it seems that there is no META file > for it also. Right, I can write it if you tell me what are the 'crucial' ocaml objects because I've never used lablgl. > also adding a gtkgl predicate to the lablgtk META file would double its > size again, right ? This is not very nice, i wish findlib would have a > better way of handling this. The problem isn't as easy as is seems. Actually you should have an ordered list of all ocaml objects needed to be linked in at compile time for each possible combination of predicates. An alternative approach could be the one in which each predicate declare which object it needs to be linked in _BUT_ with this approach you loose the ordering between objects belonging to different predicates. If you have a good proposal I think that Gerd will be happy to discuss it. Anyway remember that a META file isn't seen by the final user, it's written once by the upstream author or the maintainter it's size is not so painful IMO. > So i was thinking about adding the gtkgl predicate to lablgl's META file > instead, it would go like this : Ok for me, _you_ are the maintainer :-) > But then, we need to include both +lablGL and +lablgtk as directories in > the last case, is this possible, with maybe : > > directory(byte,gtkgl)="+lablGL +lablgtk" No, the "directory" directive simply tell findlib where the object listed in metafile reside and predicates are ignored for that directory. If you have META files belonging to different directory is better to have a META file for each directory and use the "requires" findlib directive to declare dependencies between packages. Cheers. -- Stefano Zacchiroli - Undergraduate Student of CS @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney
Attachment:
pgpkZ3myHCIfW.pgp
Description: PGP signature