Professional.Open.Source.dot.NET.Development.Programming.with.NAnt.NUnit.NDoc [Electronic resources]

John Wait

نسخه متنی -صفحه : 275/ 128
نمايش فراداده

<cl>Compiles C/C++ programs using cl, Microsoft's C/C++ compiler.

Attribute

Description

Required

options

Options to pass to the compiler.

False

outputdir

Directory where all output files are placed.

True

pchfile

The name of the precompiled header file.

False

failonerror

Determines whether task failure stops the build or is just reported. Default is "true."

False

verbose

Task reports detailed build log messages. Default is "false."

False

if

If true then the task will be executed; otherwise skipped. Default is "true."

False

unless

Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false."

False

Example

<cl outputdir="build" options="/clr">
<sources>
<includes name="helloworld.cpp"/>
</sources>
</cl>