C# Класс NAnt.VisualCpp.Tasks.ClTask

Наследование: ExternalProgramBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AreObjsUpToDate bool
FindUpdatedInclude string
IsObjUpToDate bool
IsPchfileUpToDate bool

Открытые методы

Метод Описание
ClTask ( ) : System

Initializes a new instance of the ClTask class.

GetObjOutputFile ( string srcFile, string objectPath ) : string

Determines the file name of the OBJ file for the specified source file.

QuoteArgumentValue ( string value ) : string

Quotes an argument value and duplicates trailing backslahes.

Защищенные методы

Метод Описание
ExecuteTask ( ) : void

Compiles the sources.

NeedsCompiling ( ) : bool

Determines if the sources need to be compiled.

Приватные методы

Метод Описание
AreObjsUpToDate ( ) : bool
FindUpdatedInclude ( string srcFileName, DateTime objLastWriteTime ) : string

Determines whether any file that are includes in the specified source file has been updated after the obj was compiled.

To determine what includes are defined in a source file, conditional directives are not honored.

If a given include cannot be resolved to an existing file, then it will be considered stable.

IsObjUpToDate ( string srcFileName ) : bool
IsPchfileUpToDate ( ) : bool

Determines whether the precompiled header file is up-to-date.

In order to determine accurately whether the precompile header file is up-to-date, we'd need scan all the header files that are pulled in. As this is not implemented right now, its safer to always recompile.

Описание методов

ClTask() публичный Метод

Initializes a new instance of the ClTask class.
public ClTask ( ) : System
Результат System

ExecuteTask() защищенный Метод

Compiles the sources.
protected ExecuteTask ( ) : void
Результат void

GetObjOutputFile() публичный статический Метод

Determines the file name of the OBJ file for the specified source file.
public static GetObjOutputFile ( string srcFile, string objectPath ) : string
srcFile string The source file for which the OBJ file should be determined.
objectPath string The path of the object file.
Результат string

NeedsCompiling() защищенный Метод

Determines if the sources need to be compiled.
protected NeedsCompiling ( ) : bool
Результат bool

QuoteArgumentValue() публичный статический Метод

Quotes an argument value and duplicates trailing backslahes.
public static QuoteArgumentValue ( string value ) : string
value string The argument value to quote.
Результат string