(see the link page for more information about linking)
Link a standard static library which can be linked statically with an executable. (configured using staticlibrarylinker)
Attribute | Description | Required |
---|---|---|
output | The name of the library. A platform specific ending and prefix might be added to this name automatically by the linker where appilcable (for example lib<name>.a, <name>.dll, <name>.dylib <name>.lib) | No. Default:
"a.out" |
debug | true turns on debugging symbols. false optimizes for release. Exactly what is done is determined by the command sequence defined for this linker. | No. Default: "true" |
An ant FileSet which selects all object files to link into the library file.. It can be accessed using an arglist with the name="objfiles".
<target name="build-lib" depends="init">This will link all files in obj/ and place the resulting file in lib/libnc5.a or lib/nc5.lib depending on the platform.
<linkstaticlibrary output="lib/nc5">
<objfiles dir="obj" includes="**/*"/>
</linkstaticlibrary>
</target>