use of org.gradle.nativeplatform.internal.DefaultSymbolExtractorSpec in project gradle by gradle.
the class ExtractSymbols method extractSymbols.
// TODO: Need to track version/implementation of symbol extraction tool.
@TaskAction
public void extractSymbols() {
BuildOperationLogger operationLogger = getServices().get(BuildOperationLoggerFactory.class).newOperationLogger(getName(), getTemporaryDir());
SymbolExtractorSpec spec = new DefaultSymbolExtractorSpec();
spec.setBinaryFile(binaryFile.get().getAsFile());
spec.setSymbolFile(symbolFile.get().getAsFile());
spec.setOperationLogger(operationLogger);
Compiler<SymbolExtractorSpec> symbolExtractor = createCompiler();
symbolExtractor = BuildOperationLoggingCompilerDecorator.wrap(symbolExtractor);
WorkResult result = symbolExtractor.execute(spec);
setDidWork(result.getDidWork());
}
Aggregations