staticlibrary

Description

Used to specify a static library name in the link tasks.

Parameters

Attribute Description Required
name The name of the library. Leave out the platform specific prefix and suffiixes (typically lib<name>.a or <name>.lib).
Yes.

Parameters specified as nested elements

None.

Examples

<linkexecutable output="bin/test-linker}">
<objfiles dir="obj/test-linker" includes="**/*"/>
<libpath>
<pathelement path="build/lib"/>
</libpath>
<staticlibrary name="nc5"/>
</linkexecutable>
This will link all files in obj/test-linker together with the library nc5 and place the resulting file in bin/test-linker.exe or bin/test-linker