|
terp - the ANT Tasks v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemesh.terp.ant.compiler.AbstractCompilerOption<C>
com.codemesh.terp.ant.compiler.BooleanCompilerOption<CppCompiler>
com.codemesh.terp.ant.compiler.cpp.VsProjectOption
public class VsProjectOption
An option that generates a VisualStudio project file representing the settings in the compiler task.
| Constructor Summary | |
|---|---|
VsProjectOption()
|
|
| Method Summary | |
|---|---|
void |
addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
Adds the compiler switches repreesnted by this option to the list of switches. |
boolean |
appliesTo(CppCompiler compiler,
CompilerPhase phase)
Returns true if this compiler option applies to the given compiler and compiler phase. |
java.lang.Boolean |
calculateBuiltinWchart(java.lang.String commandLine)
|
java.lang.Integer |
calculateCharacterSet(java.lang.String commandLine)
|
java.lang.Integer |
calculateConfigurationType(CppCompiler compiler)
|
java.lang.Integer |
calculateDebugStyle(java.lang.String commandLine)
Returns the value of debug style option. |
java.util.List<java.lang.String> |
calculateDefines(java.lang.String commandLine)
|
java.lang.String |
calculateDefinitionFile(java.lang.String commandLine)
|
java.util.List<java.lang.String> |
calculateIncludePath(java.lang.String commandLine,
CppCompiler compiler)
|
java.lang.Boolean |
calculateIncrementalLink(java.lang.String commandLine)
|
java.util.List<java.lang.String> |
calculateLibPath(java.lang.String commandLine,
CppCompiler compiler)
|
java.util.List<java.lang.String> |
calculateLibraries(java.lang.String commandLine,
CppCompiler compiler)
|
java.lang.Boolean |
calculateMinimalRebuild(java.lang.String commandLine)
|
java.lang.String |
calculateName(CppCompiler compiler)
|
java.lang.Integer |
calculateOptimization(java.lang.String commandLine)
Returns the optimization level as used by VisualStudio project files. |
java.lang.Boolean |
calculatePortabilityWarnings(java.lang.String commandLine)
|
java.lang.String |
calculateProjectFile(CppCompiler compiler)
|
java.lang.Integer |
calculateRuntimeLibraryNumeric(java.lang.String commandLine)
Returns the value of the runtime library switch. |
java.lang.String |
calculateRuntimeLibraryOption(java.lang.String commandLine)
Returns the value of the runtime library switch. |
java.lang.Integer |
calculateSubsystem(java.lang.String commandLine)
|
java.lang.Integer |
calculateTargetMachine(java.lang.String commandLine,
CppCompiler compiler)
|
java.lang.String |
calculateTargetName(CppCompiler compiler)
|
java.lang.Integer |
calculateWarningLevel(java.lang.String commandLine)
Returns the warning level as used by VisualStudio project files. |
java.util.List<java.lang.String> |
creates(CppCompiler compiler,
CompilerPhase phase)
Returns a list of filenames representing the files that are created due to the presence of this compiler option. |
void |
execute(CppCompiler compiler)
|
Guid |
getGuid()
Returns the GUID configured for this project. |
java.lang.String |
getName()
|
java.lang.String |
getTemplate()
|
java.lang.String |
getVersion()
|
void |
setGuid(java.lang.String guid)
Sets the globally unique identifier used to identify the generated VisualStudio project. |
void |
setName(java.lang.String name)
Set the project file name. |
void |
setTemplate(java.lang.String template)
Set the resource identifier of the project file template to use. |
void |
setVersion(java.lang.String version)
Set the Visual C++ compiler version for which the project file should be generated. |
| Methods inherited from class com.codemesh.terp.ant.compiler.BooleanCompilerOption |
|---|
getValue, isEnabled, setValue |
| Methods inherited from class com.codemesh.terp.ant.compiler.AbstractCompilerOption |
|---|
expand, expand, getIf, getProject, getUnless, quoteIfNecessary, satisfies, setIf, setProject, setUnless |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.codemesh.terp.ant.compiler.CompilerOption |
|---|
getIf, getUnless, satisfies, setIf, setUnless |
| Constructor Detail |
|---|
public VsProjectOption()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the project name.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the compiler version.public java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
template - the project file template to use.public void setGuid(java.lang.String guid)
guid - the GUID, may be null in which case a new GUID
is generated.public Guid getGuid()
public void addCommands(java.util.List<java.lang.String> commandList,
CppCompiler compiler,
CompilerPhase phase)
CompilerOptionThis method is called by the compiler repeatedly with different values for the compiler phase to account for these possibilities.
addCommands in interface CompilerOption<CppCompiler>commandList - the list to which the compiler switches represented
by this option (if any) are added.compiler - the compiler for which we're doing this.phase - the compiler phase in wihch we're doing this.
public boolean appliesTo(CppCompiler compiler,
CompilerPhase phase)
CompilerOption
appliesTo in interface CompilerOption<CppCompiler>compiler - the compiler for which we're asking.phase - the compiler phase we're executing.
public java.util.List<java.lang.String> creates(CppCompiler compiler,
CompilerPhase phase)
FileCreating
creates in interface FileCreating<CppCompiler>compiler - the compiler.phase - the compilation phase.
public void execute(CppCompiler compiler)
public java.lang.String calculateName(CppCompiler compiler)
public java.lang.String calculateDefinitionFile(java.lang.String commandLine)
public java.lang.String calculateTargetName(CppCompiler compiler)
public java.lang.Integer calculateConfigurationType(CppCompiler compiler)
public java.lang.String calculateProjectFile(CppCompiler compiler)
public java.util.List<java.lang.String> calculateDefines(java.lang.String commandLine)
public java.lang.Integer calculateCharacterSet(java.lang.String commandLine)
public java.lang.Integer calculateDebugStyle(java.lang.String commandLine)
public java.lang.Integer calculateOptimization(java.lang.String commandLine)
commandLine - the commandline that's used for compilation.
public java.lang.Integer calculateWarningLevel(java.lang.String commandLine)
commandLine - the commandline that's used for compilation.
public java.util.List<java.lang.String> calculateIncludePath(java.lang.String commandLine,
CppCompiler compiler)
public java.util.List<java.lang.String> calculateLibPath(java.lang.String commandLine,
CppCompiler compiler)
public java.util.List<java.lang.String> calculateLibraries(java.lang.String commandLine,
CppCompiler compiler)
public java.lang.Integer calculateRuntimeLibraryNumeric(java.lang.String commandLine)
public java.lang.String calculateRuntimeLibraryOption(java.lang.String commandLine)
public java.lang.Boolean calculateBuiltinWchart(java.lang.String commandLine)
public java.lang.Boolean calculateIncrementalLink(java.lang.String commandLine)
public java.lang.Boolean calculatePortabilityWarnings(java.lang.String commandLine)
public java.lang.Boolean calculateMinimalRebuild(java.lang.String commandLine)
public java.lang.Integer calculateSubsystem(java.lang.String commandLine)
public java.lang.Integer calculateTargetMachine(java.lang.String commandLine,
CppCompiler compiler)
|
terp - the ANT Tasks v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||