Search in sources :

Example 1 with CppCompileSpec

use of org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec 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 2 with CppCompileSpec

use of org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec 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)2 CppCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CppCompileSpec)2 CommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)1 DefaultCommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker)1 ObjectiveCppCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppCompileSpec)1 GccCommandLineToolConfigurationInternal (org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)1