staticlibrary

Description

Define a static library name that can be referenced in the link tasks. The idea is to specifiy the os and debug strings that must match when linking. This way it is possible to define different library names for the same id on different platforms. There is a similar task to define a dynamic library reference.

Parameters

Attribute Description Required
id The id to use when referencing the library
Yes.
name
The name of the library that is to be used for this configuration. Yes.
os
The os for which the library is to be used.
No. Default:  detected OS name
debug
The debug mode for which the library is to be used.
No. Default: true

Parameters specified as nested elements

none.

Examples

<staticlibrary id="date_time" fullname="libboost_date_time-vc80-mt-1_34" os="Windows XP" debug="false" />
<staticlibrary id="date_time" fullname="boost_date_time-mt" os="mac os x" debug="false" />
<linkexecutable output="${deliveries.output.dir}/test-app">
<objfiles dir="${obj.output.dir}" includes="**/*"/>
<libpath>
<pathelement path="${deliveries.output.dir}"/>
</libpath>
<staticlibrary refid="date_time"/>
</linkexecutable>

This will cause the library for the current platform (Windows XP or Mac OS X) to be referenced by the staticlibrary element in the linking process.