Ejemplo n.º 1
0
 public <T extends BinaryToolSpec> Compiler<T> createCCompiler() {
   CommandLineTool<CCompileSpec> commandLineTool =
       commandLineTool("C compiler", install.getCompiler(targetPlatform));
   Transformer<CCompileSpec, CCompileSpec> specTransformer = addIncludePath();
   commandLineTool.withSpecTransformer(specTransformer);
   CCompiler cCompiler = new CCompiler(commandLineTool);
   return (Compiler<T>) new OutputCleaningCompiler<CCompileSpec>(cCompiler, ".obj");
 }
Ejemplo n.º 2
0
 public <T extends BinaryToolSpec> Compiler<T> createWindowsResourceCompiler() {
   CommandLineTool<WindowsResourceCompileSpec> commandLineTool =
       commandLineTool("Windows resource compiler", sdk.getResourceCompiler(targetPlatform));
   Transformer<WindowsResourceCompileSpec, WindowsResourceCompileSpec> specTransformer =
       addIncludePath();
   commandLineTool.withSpecTransformer(specTransformer);
   WindowsResourceCompiler windowsResourceCompiler =
       new WindowsResourceCompiler(commandLineTool);
   return (Compiler<T>)
       new OutputCleaningCompiler<WindowsResourceCompileSpec>(windowsResourceCompiler, ".res");
 }
Ejemplo n.º 3
0
 public <T extends LinkerSpec> Compiler<T> createLinker() {
   CommandLineTool<LinkerSpec> commandLineTool =
       commandLineTool("Linker", install.getLinker(targetPlatform));
   commandLineTool.withSpecTransformer(addLibraryPath());
   return (Compiler<T>) new LinkExeLinker(commandLineTool);
 }