Search in sources :

Example 1 with OutputCleaningCompiler

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

the class GccPlatformToolProvider method createCCompiler.

@Override
protected Compiler<CCompileSpec> createCCompiler() {
    GccCommandLineToolConfigurationInternal cCompilerTool = toolRegistry.getTool(ToolType.C_COMPILER);
    CCompiler cCompiler = new CCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool(cCompilerTool), context(cCompilerTool), getObjectFileExtension(), useCommandFile, workerLeaseService);
    OutputCleaningCompiler<CCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CCompileSpec>(cCompiler, compilerOutputFileNamingSchemeFactory, getObjectFileExtension());
    return versionAwareCompiler(outputCleaningCompiler, ToolType.C_COMPILER);
}
Also used : CCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CCompileSpec) ObjectiveCCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCCompileSpec) OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) GccCommandLineToolConfigurationInternal(org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)

Example 2 with OutputCleaningCompiler

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

the class VisualCppPlatformToolProvider method createCppCompiler.

@Override
protected Compiler<CppCompileSpec> createCppCompiler() {
    CommandLineToolInvocationWorker commandLineTool = tool("C++ compiler", visualCpp.getCompilerExecutable());
    CppCompiler cppCompiler = new CppCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, context(commandLineToolConfigurations.get(ToolType.CPP_COMPILER)), addDefinitions(CppCompileSpec.class), getObjectFileExtension(), true, workerLeaseService);
    OutputCleaningCompiler<CppCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CppCompileSpec>(cppCompiler, compilerOutputFileNamingSchemeFactory, getObjectFileExtension());
    return versionAwareCompiler(outputCleaningCompiler);
}
Also used : OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) CppCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec) DefaultCommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker) CommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)

Example 3 with OutputCleaningCompiler

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

the class VisualCppPlatformToolProvider method createCCompiler.

@Override
protected Compiler<CCompileSpec> createCCompiler() {
    CommandLineToolInvocationWorker commandLineTool = tool("C compiler", visualCpp.getCompilerExecutable());
    CCompiler cCompiler = new CCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, context(commandLineToolConfigurations.get(ToolType.C_COMPILER)), addDefinitions(CCompileSpec.class), getObjectFileExtension(), true, workerLeaseService);
    OutputCleaningCompiler<CCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CCompileSpec>(cCompiler, compilerOutputFileNamingSchemeFactory, getObjectFileExtension());
    return versionAwareCompiler(outputCleaningCompiler);
}
Also used : CCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CCompileSpec) OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) DefaultCommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker) CommandLineToolInvocationWorker(org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)

Example 4 with OutputCleaningCompiler

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

the class GccPlatformToolProvider method createCppPCHCompiler.

@Override
protected Compiler<?> createCppPCHCompiler() {
    GccCommandLineToolConfigurationInternal cppCompilerTool = toolRegistry.getTool(ToolType.CPP_COMPILER);
    CppPCHCompiler cppPCHCompiler = new CppPCHCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool(cppCompilerTool), context(cppCompilerTool), getPCHFileExtension(), useCommandFile, workerLeaseService);
    OutputCleaningCompiler<CppPCHCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CppPCHCompileSpec>(cppPCHCompiler, compilerOutputFileNamingSchemeFactory, getPCHFileExtension());
    return versionAwareCompiler(outputCleaningCompiler, ToolType.CPP_COMPILER);
}
Also used : ObjectiveCppPCHCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppPCHCompileSpec) CppPCHCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CppPCHCompileSpec) OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) GccCommandLineToolConfigurationInternal(org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)

Example 5 with OutputCleaningCompiler

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

the class GccPlatformToolProvider method createCppCompiler.

@Override
protected Compiler<CppCompileSpec> createCppCompiler() {
    GccCommandLineToolConfigurationInternal cppCompilerTool = toolRegistry.getTool(ToolType.CPP_COMPILER);
    CppCompiler cppCompiler = new CppCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool(cppCompilerTool), context(cppCompilerTool), getObjectFileExtension(), useCommandFile, workerLeaseService);
    OutputCleaningCompiler<CppCompileSpec> outputCleaningCompiler = new OutputCleaningCompiler<CppCompileSpec>(cppCompiler, compilerOutputFileNamingSchemeFactory, getObjectFileExtension());
    return versionAwareCompiler(outputCleaningCompiler, ToolType.CPP_COMPILER);
}
Also used : OutputCleaningCompiler(org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler) CppCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec) ObjectiveCppCompileSpec(org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppCompileSpec) GccCommandLineToolConfigurationInternal(org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)

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