Defines a command sequence which will link object files into a library file on a specific platform. This sequence will be called by a linkstaticlibrary task. It is perfectly OK to be very platform specific in those tasks as they are only run when the os-attribute matches the current platform.
Attribute | Description | Required |
---|---|---|
os |
The operating system for which the task is to be
used. |
No. Default: detected OS name |
showcommandline | Setting this attribute to "true"
will display each command line before it's executed. |
No. Default:
"false". |
The command to run. In fact any number of commands may be executed
in sequence by specifying multiple command-elements.
<staticlibrarylinker os="mac os x">
<command file="ar">
<arg value="rvs"/>
<value attribute="output" prefix="lib" suffix=".a "/>
<arglist name="objfiles"/>
</command>
</staticlibrarylinker>
The above example defines a command which serves as an library
linker for Windows XP. It will be run when the linkstaticlibrary
task is invoked on a Windows XP platform.