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());
}
Aggregations