From: Curt Arnold <carnold@ho...> - 2004-04-22 17:13:50
On Apr 22, 2004, at 10:00 AM, Kaspar von Gunten wrote:
> Hi Mark, Hi Curt
> First of all - thank you for giving us Ant-Contrib, especially ccTask.
> I have one little tiny question about the <libset> element:
> Is there no way to have a libset include any other, already existing
> This would be very useful: if I have subprojects that all produce a
> (and maybe in turn depend on subsubprojects doing the same) I could
> always include the libsets of the subprojects when building a
> (plus some additional ones, if desired) and then export this new
> libset for
> use by supersuperprojects. No dependency-analysis needed, i just need
> to know
> what the direct subprojects are (assuming that the libraries bear the
> of the subprojects, of course).
> I hope you can give me a hint - the documentation says "Libraries can
> also be
> added to a link by specifying them in a fileset." but that doesn't
> help much:
> - what is a "link" in this context?
> - libset does not allow fileset as nested element
> - elements of fileset are neither allowed as nested elements for libset
> - does libset support an id attribute?
That statement concerns a construct like:
<fileset dir="mylib" includes="*.lib"/>
If you are strictly targeting windows and you want to add a library to
the link, you can just add it to the cctask's compile step. That would
probably not get you anything desirable using Gcc. If you want to
wildcard libraries into the link just add them to the fileset as if
they are .cpp files and cctask will pass them to the linker. There is
no support for directory scanning or wildcarding with libset and
> Any answers or workarounds would be appreciated.
libsets and syslibsets are not currently defined as top-level types and
do not support referencing by id. However, that would probably be a
reasonable enhancement. You can embed libsets and syslibsets in a
top-level linker element and reference or extend that.
I just fixed a few bugs involving extension of linkers, so you might
want to start with a CVS build before investigating.