Search in sources :

Example 11 with OutputCleaningCompiler

use of org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler in project gradle by gradle.

the class VisualCppPlatformToolProvider method createCppPCHCompiler.

@Override
protected Compiler<?> createCppPCHCompiler() {
    CommandLineToolInvocationWorker commandLineTool = tool("C++ PCH compiler", visualCpp.getCompilerExecutable());
    CppPCHCompiler cppPCHCompiler = new CppPCHCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, context(commandLineToolConfigurations.get(ToolType.CPP_COMPILER)), pchSpecTransforms(CppPCHCompileSpec.class), getPCHFileExtension(), true, workerLeaseService);
    OutputCleaningCompiler<CppPCHCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CppPCHCompileSpec>(cppPCHCompiler, compilerOutputFileNamingSchemeFactory, getPCHFileExtension());
    return versionAwareCompiler(outputCleaningCompiler);
}
Also used : CppPCHCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CppPCHCompileSpec) OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) DefaultCommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker) CommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)

Example 12 with OutputCleaningCompiler

use of org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler in project gradle by gradle.

the class VisualCppPlatformToolProvider method createCPCHCompiler.

@Override
protected Compiler<?> createCPCHCompiler() {
    CommandLineToolInvocationWorker commandLineTool = tool("C PCH compiler", visualCpp.getCompilerExecutable());
    CPCHCompiler cpchCompiler = new CPCHCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, context(commandLineToolConfigurations.get(ToolType.C_COMPILER)), pchSpecTransforms(CPCHCompileSpec.class), getPCHFileExtension(), true, workerLeaseService);
    OutputCleaningCompiler<CPCHCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CPCHCompileSpec>(cpchCompiler, compilerOutputFileNamingSchemeFactory, getPCHFileExtension());
    return versionAwareCompiler(outputCleaningCompiler);
}
Also used : OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) DefaultCommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker) CommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker) CPCHCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CPCHCompileSpec)

Example 13 with OutputCleaningCompiler

use of org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler in project gradle by gradle.

the class VisualCppPlatformToolProvider method createWindowsResourceCompiler.

@Override
protected Compiler<WindowsResourceCompileSpec> createWindowsResourceCompiler() {
    CommandLineToolInvocationWorker commandLineTool = tool("Windows resource compiler", sdk.getResourceCompiler());
    String objectFileExtension = ".res";
    WindowsResourceCompiler windowsResourceCompiler = new WindowsResourceCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, context(commandLineToolConfigurations.get(ToolType.WINDOW_RESOURCES_COMPILER)), addDefinitions(WindowsResourceCompileSpec.class), objectFileExtension, false, workerLeaseService);
    return new OutputCleaningCompiler<WindowsResourceCompileSpec>(windowsResourceCompiler, compilerOutputFileNamingSchemeFactory, objectFileExtension);
}
Also used : OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) DefaultCommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker) CommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker) WindowsResourceCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.WindowsResourceCompileSpec)

Aggregations

OutputCleaningCompiler (org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler)13 GccCommandLineToolConfigurationInternal (org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)8 CommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)5 DefaultCommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker)5 CCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CCompileSpec)2 CPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CPCHCompileSpec)2 CppCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec)2 CppPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CppPCHCompileSpec)2 ObjectiveCCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCCompileSpec)2 ObjectiveCPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCPCHCompileSpec)2 ObjectiveCppCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppCompileSpec)2 ObjectiveCppPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppPCHCompileSpec)2 WindowsResourceCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.WindowsResourceCompileSpec)1