Search in sources :

Example 1 with DefaultStripperSpec

use of org.gradle.nativeplatform.internal.DefaultStripperSpec in project gradle by gradle.

the class StripSymbols method stripSymbols.

// TODO: Need to track version/implementation of symbol strip tool.
@TaskAction
public void stripSymbols() {
    BuildOperationLogger operationLogger = getServices().get(BuildOperationLoggerFactory.class).newOperationLogger(getName(), getTemporaryDir());
    StripperSpec spec = new DefaultStripperSpec();
    spec.setBinaryFile(binaryFile.get().getAsFile());
    spec.setOutputFile(outputFile.get().getAsFile());
    spec.setOperationLogger(operationLogger);
    Compiler<StripperSpec> symbolStripper = createCompiler();
    symbolStripper = BuildOperationLoggingCompilerDecorator.wrap(symbolStripper);
    WorkResult result = symbolStripper.execute(spec);
    setDidWork(result.getDidWork());
}
Also used : BuildOperationLoggerFactory(org.gradle.internal.operations.logging.BuildOperationLoggerFactory) BuildOperationLogger(org.gradle.internal.operations.logging.BuildOperationLogger) DefaultStripperSpec(org.gradle.nativeplatform.internal.DefaultStripperSpec) StripperSpec(org.gradle.nativeplatform.internal.StripperSpec) WorkResult(org.gradle.api.tasks.WorkResult) DefaultStripperSpec(org.gradle.nativeplatform.internal.DefaultStripperSpec) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

TaskAction (org.gradle.api.tasks.TaskAction)1 WorkResult (org.gradle.api.tasks.WorkResult)1 BuildOperationLogger (org.gradle.internal.operations.logging.BuildOperationLogger)1 BuildOperationLoggerFactory (org.gradle.internal.operations.logging.BuildOperationLoggerFactory)1 DefaultStripperSpec (org.gradle.nativeplatform.internal.DefaultStripperSpec)1 StripperSpec (org.gradle.nativeplatform.internal.StripperSpec)1