net.sf.antcontrib.cpptasks.trolltech
public final class UserInterfaceCompiler extends CommandLineCompiler
Method Summary | |
---|---|
protected void | addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
Add arguments for debug, etc. |
protected void | addWarningSwitch(Vector args, int level)
Add arguments for specified warning level. |
Processor | changeEnvironment(boolean newEnvironment, Environment env)
Change enviroment (deprecated). |
void | compile(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor)
Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files. |
protected Parser | createParser(File source)
The include parser for C will work just fine, but we didn't want to
inherit from CommandLineCCompiler. |
protected int | getArgumentCountPerInputFile()
Gets number of command line arguments per input file. |
protected void | getDefineSwitch(StringBuffer buffer, String define, String value)
Gets switch to define preprocessor macro. |
protected File[] | getEnvironmentIncludePath()
Gets standard include paths. |
protected String | getIncludeDirSwitch(String includeDir)
Gets include directory switch. |
protected String | getInputFileArgument(File outputDir, String filename, int index)
Gets input file arguments. |
static UserInterfaceCompiler | getInstance()
Gets singleton instance of compiler. |
Linker | getLinker(LinkType type)
Gets linker associated with this type. |
int | getMaximumCommandLength()
Gets maximum length of command line. |
protected int | getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command. |
String[] | getOutputFileNames(String inputFile, VersionInfo versionInfo)
Gets output file names. |
protected int | getTotalArgumentLengthForInputFile(File outputDir, String inputFile)
Get total command line length due to the input file. |
protected void | getUndefineSwitch(StringBuffer buffer, String define)
Gets switch to undefine preprocessor macro. |
Parameters: args Vector command argument list debug boolean build for debug if true multithreaded boolean build for multithreading if true exceptions boolean enable exceptions if true linkType LinkType output and runtime type rtti Boolean enable run-time type identification if true optimization OptimizationEnum optimization
Parameters: args Vector command line arguments level int warning level value
Parameters: newEnvironment boolean use new environment. env Environment environment
Returns: Processor modified processor
Parameters: task current cc task outputDir output directory sourceFiles source files args command line arguments that appear before input files endArgs command line arguments that appear after input files relentless if true, do not stop at first compilation error config compiler configuration monitor progress monitor
Parameters: source source file to be parsed
Returns: parser
Returns: int number of command line arguments per input file.
Parameters: buffer StringBuffer command line argument define String macro name value String macro value, may be null.
Returns: File[] standard include paths
Parameters: includeDir String include directory
Returns: String command switch to add specified directory to search path
Parameters: outputDir File output directory filename String input file name. index int argument index, 0 to getNumberOfArgumentsPerInputFile() -1
Returns: String input file argument
Returns: MetaObjectCompiler singleton instance
Parameters: type LinkType linker, returns ld.
Returns: Linker
Returns: int maximum length of command line
Returns: int maximum number of input files processed per command.
Parameters: inputFile String input file name versionInfo version info, not used by this compiler.
Returns: String[] output file names
Parameters: outputDir File output directory inputFile String input file
Returns: int characters added to command line for the input file.
Parameters: buffer StringBuffer command line argument define String macro name