use of org.gradle.nativeplatform.internal.DefaultStaticLibraryArchiverSpec in project gradle by gradle.
the class CreateStaticLibrary method link.
// TODO: Need to track version/implementation of ar tool.
@TaskAction
protected void link() {
StaticLibraryArchiverSpec spec = new DefaultStaticLibraryArchiverSpec();
spec.setTempDir(getTemporaryDir());
spec.setOutputFile(getOutputFile().get().getAsFile());
spec.objectFiles(getSource());
spec.args(getStaticLibArgs().get());
BuildOperationLogger operationLogger = getOperationLoggerFactory().newOperationLogger(getName(), getTemporaryDir());
spec.setOperationLogger(operationLogger);
Compiler<StaticLibraryArchiverSpec> compiler = createCompiler();
WorkResult result = BuildOperationLoggingCompilerDecorator.wrap(compiler).execute(spec);
setDidWork(result.getDidWork());
}
Aggregations