define

Description

This is a nested element which can be used in the compile task to specify defined identifiers in the preprocessor.

Parameters

Attribute Description Required
name The name of the identifier to define.
Yes.
value
The value to set it to. If it isn't set to anything, it will correspond to a simple:
#define name
No.

Parameters specified as nested elements

none.

Examples

<compile objdir="tmp/obj">
 <srcfiles dir="source" includes="Hello.cpp"/>
<define name="DEBUG_TRACE" value="1"/>
</compile>
This will compile the file Hello.cpp with the preprocessor identifier DEBUG_TRACE set to 1.