Adapter for the Mozilla Xpidl Compiler.
addImpliedArgs
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
Add arguments for debug, etc.
- addImpliedArgs in interface CommandLineCompiler
args
- Vector command argument listdebug
- boolean build for debug if truemultithreaded
- boolean build for multithreading if trueexceptions
- boolean enable exceptions if truelinkType
- LinkType output and runtime typertti
- Boolean enable run-time type identification if trueoptimization
- OptimizationEnum optimization
addIncludes
protected void addIncludes(String baseDirPath,
File[] includeDirs,
Vector args,
Vector relativeArgs,
StringBuffer includePathId)
Adds command line arguments for include paths.
- addIncludes in interface CommandLineCompiler
baseDirPath
- String base directoryincludeDirs
- File[] include directoriesargs
- Vector command line argumentsrelativeArgs
- Vector arguments for configuration identificationincludePathId
- StringBuffer buffer for configuration identification
addWarningSwitch
protected void addWarningSwitch(Vector args,
int level)
Add arguments for specified warning level.
- addWarningSwitch in interface CommandLineCompiler
args
- Vector command line argumentslevel
- int warning level value
compile
public void compile(CCTask task,
File outputDir,
String[] sourceFiles,
String[] args,
String[] endArgs,
boolean relentless,
CommandLineCompilerConfiguration config,
ProgressMonitor monitor)
Compiles an .idl file into the corresponding .h and .xpt files.
- compile in interface CommandLineCompiler
task
- current cc taskoutputDir
- output directorysourceFiles
- source filesargs
- command line arguments that appear before input filesendArgs
- command line arguments that appear after input filesrelentless
- if true, do not stop at first compilation errorconfig
- compiler configurationmonitor
- progress monitor
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
Gets number of command line arguments per input file.
- getArgumentCountPerInputFile in interface CommandLineCompiler
- int number of command line arguments per input file.
getDefineSwitch
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value)
Gets switch to define preprocessor macro.
- getDefineSwitch in interface CommandLineCompiler
buffer
- StringBuffer command line argumentdefine
- String macro namevalue
- String macro value, may be null.
getIncludeDirSwitch
protected String getIncludeDirSwitch(String includeDir)
Gets include directory switch.
- getIncludeDirSwitch in interface CommandLineCompiler
includeDir
- String include directory
- String command switch to add specified directory to search path
getInputFileArgument
protected String getInputFileArgument(File outputDir,
String filename,
int index)
Gets input file arguments.
- getInputFileArgument in interface CommandLineCompiler
outputDir
- File output directoryfilename
- String input file name.index
- int argument index,
0 to getNumberOfArgumentsPerInputFile() -1
- String input file argument
getInstance
public static XpidlCompiler getInstance()
Gets singleton instance of compiler.
- XpidlCompiler singleton instance
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command.
- getMaximumInputFilesPerCommand in interface CommandLineCompiler
- int maximum number of input files processed per command.
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
Get total command line length due to the input file.
- getTotalArgumentLengthForInputFile in interface CommandLineCompiler
outputDir
- File output directoryinputFile
- String input file
- int characters added to command line for the input file.
getUndefineSwitch
protected void getUndefineSwitch(StringBuffer buffer,
String define)
Gets switch to undefine preprocessor macro.
- getUndefineSwitch in interface CommandLineCompiler
buffer
- StringBuffer command line argumentdefine
- String macro name