net.sf.antcontrib.cpptasks.compiler

Class LinkType

public class LinkType extends Object

This class represents the target platform for the compile and link step. The name is an anachronism and should be changed.

Author: Curt Arnold

Constructor Summary
LinkType()
Constructor By default, an gui executable with a dynamically linked runtime
Method Summary
StringgetOutputType()
Gets the output type.
StringgetSubsystem()
Get subsystem name.
booleanisExecutable()
Gets whether the link should produce an executable
booleanisPluginModule()
Gets whether the link should produce a plugin module.
booleanisSharedLibrary()
Gets whether the link should produce a shared library.
booleanisStaticLibrary()
Gets whether the link should produce a static library.
booleanisStaticRuntime()
Gets whether the module should use a statically linked runtime library.
booleanisSubsystemConsole()
Gets whether the link should produce a module for a console subsystem.
booleanisSubsystemGUI()
Gets whether the link should produce a module for a graphical user interface subsystem.
voidsetOutputType(OutputTypeEnum outputType)
Sets the output type (execuable, shared, etc).
voidsetStaticRuntime(boolean staticRuntime)
Requests use of a static runtime library.
voidsetSubsystem(SubsystemEnum subsystem)
Sets the subsystem (gui, console, etc).

Constructor Detail

LinkType

public LinkType()
Constructor By default, an gui executable with a dynamically linked runtime

Method Detail

getOutputType

public String getOutputType()
Gets the output type.

Returns: output type

getSubsystem

public String getSubsystem()
Get subsystem name.

Returns: subsystem name

isExecutable

public boolean isExecutable()
Gets whether the link should produce an executable

Returns: boolean

isPluginModule

public boolean isPluginModule()
Gets whether the link should produce a plugin module.

Returns: boolean

isSharedLibrary

public boolean isSharedLibrary()
Gets whether the link should produce a shared library.

Returns: boolean

isStaticLibrary

public boolean isStaticLibrary()
Gets whether the link should produce a static library.

Returns: boolean

isStaticRuntime

public boolean isStaticRuntime()
Gets whether the module should use a statically linked runtime library.

Returns: boolean

isSubsystemConsole

public boolean isSubsystemConsole()
Gets whether the link should produce a module for a console subsystem.

Returns: boolean

isSubsystemGUI

public boolean isSubsystemGUI()
Gets whether the link should produce a module for a graphical user interface subsystem.

Returns: boolean

setOutputType

public void setOutputType(OutputTypeEnum outputType)
Sets the output type (execuable, shared, etc).

Parameters: outputType may not be null

setStaticRuntime

public void setStaticRuntime(boolean staticRuntime)
Requests use of a static runtime library.

Parameters: staticRuntime if true, use static runtime library if possible.

setSubsystem

public void setSubsystem(SubsystemEnum subsystem)
Sets the subsystem (gui, console, etc).

Parameters: subsystem subsystem, may not be null

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.