Search in sources :

Example 1 with CppPCHCompileSpec

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

use of org.gradle.nativeplatform.toolchain.internal.compilespec.CppPCHCompileSpec 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)

Aggregations

OutputCleaningCompiler (org.gradle.nativeplatform.toolchain.internal.OutputCleaningCompiler)2 CppPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.CppPCHCompileSpec)2 CommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.CommandLineToolInvocationWorker)1 DefaultCommandLineToolInvocationWorker (org.gradle.nativeplatform.toolchain.internal.DefaultCommandLineToolInvocationWorker)1 ObjectiveCppPCHCompileSpec (org.gradle.nativeplatform.toolchain.internal.compilespec.ObjectiveCppPCHCompileSpec)1 GccCommandLineToolConfigurationInternal (org.gradle.nativeplatform.toolchain.internal.tools.GccCommandLineToolConfigurationInternal)1