dynamiclibrary

Description

Define a dynamic 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 static 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

<dynamiclibrary id="date_time-dyn" fullname="libboost_date_time-vc80-mt-1_34" os="Windows XP" debug="false" />
<dynamiclibrary id="date_time-dyn" 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>
<
dynamiclibrary refid="date_time-dyn"/>
</linkexecutable>

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