-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.tasks.util.PatternFilterable,org.gradle.util.Configurable,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware,org.jetbrains.kotlin.gradle.internal.CompilerArgumentAwareWithInput,org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool
@CacheableTask() public abstract class KotlinNativeLink extends AbstractKotlinNativeCompile<KotlinCommonToolOptions, KotlinNativeCompilation, StubK2NativeCompilerArguments>
A task producing a final binary from a compilation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKotlinNativeLink.NativeLinkOptions
-
Field Summary
Fields Modifier and Type Field Description private final KotlinNativeCompilationcompilationprivate final DirectoryPropertydestinationDirectoryprivate final CompilerOutputKindoutputKindprivate final Booleanoptimizedprivate final Booleandebuggableprivate final StringbaseNameprivate final Provider<Collection<String>>additionalCompilerOptionsprivate final KotlinCommonToolOptionskotlinOptionsprivate final StringentryPointprivate final List<String>linkerOptsprivate final Map<String, String>binaryOptionsprivate final BooleanprocessTestsprivate final FileCollectionexportLibrariesprivate final BooleanisStaticFrameworkprivate final BitcodeEmbeddingModeembedBitcodeprivate final FileCollectionapiFilesprivate final NativeBinarybinaryprivate final ConfigurableFileCollectionlibrariesprivate final Stringtargetprivate final LanguageSettingslanguageSettingsprivate final BooleanprogressiveModeprivate final BooleanenableEndorsedLibsprivate final StringkotlinNativeVersionprivate final Provider<File>outputFileprivate final CompilerPluginOptionscompilerPluginOptionsprivate final List<String>compilerPluginCommandLineprivate FileCollectioncompilerPluginClasspathprivate Provider<KotlinCompilerPluginData>kotlinPluginDataprivate final List<String>serializedCompilerArgumentsprivate final List<String>defaultSerializedCompilerArgumentsprivate final FileCollectionsourcesprivate final Property<BuildMetricsReporter>metricsprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActionsprivate final Set<Provider<out BuildService<?>>>requiredServicesprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final Map<String, String>filteredArgumentsMapprivate final ConfigurableFileCollectionlocalStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinNativeLink(NativeBinary binary, ObjectFactory objectFactory, ProviderFactory providerFactory, ExecOperations execOperations)
-
Method Summary
Modifier and Type Method Description final KotlinNativeCompilationgetCompilation()DirectoryPropertygetDestinationDirectory()CompilerOutputKindgetOutputKind()BooleangetOptimized()BooleangetDebuggable()StringgetBaseName()Provider<Collection<String>>getAdditionalCompilerOptions()KotlinCommonToolOptionsgetKotlinOptions()final StringgetEntryPoint()final List<String>getLinkerOpts()final Map<String, String>getBinaryOptions()final BooleangetProcessTests()final FileCollectiongetExportLibraries()final BooleanisStaticFramework()final BitcodeEmbeddingModegetEmbedBitcode()final FileCollectiongetApiFiles()final NativeBinarygetBinary()UnitkotlinOptions(Function1<KotlinCommonToolOptions, Unit> fn)UnitkotlinOptions(Closure<?> fn)StubK2NativeCompilerArgumentscreateCompilerArgs()UnitsetupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)final Unitcompile()-
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinNativeCompile
getCompilerPluginClasspath, getCompilerPluginCommandLine, getCompilerPluginOptions, getDefaultSerializedCompilerArguments, getEnableEndorsedLibs, getKotlinNativeVersion, getKotlinPluginData, getLanguageSettings, getLibraries, getOutputFile, getProgressiveMode, getSerializedCompilerArguments, getTarget, setCompilerPluginClasspath, setKotlinPluginData -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
disallowSourceChanges, exclude, exclude, exclude, exclude, getExcludes, getIncludes, getMetrics, getSources, include, include, include, include, setExcludes, setIncludes, setSource, source -
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class org.jetbrains.kotlin.gradle.internal.CompilerArgumentAwareWithInput
getFilteredArgumentsMap, getSerializedCompilerArgumentsIgnoreClasspathIssues -
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KotlinNativeLink
KotlinNativeLink(NativeBinary binary, ObjectFactory objectFactory, ProviderFactory providerFactory, ExecOperations execOperations)
-
-
Method Detail
-
getCompilation
@Internal() final KotlinNativeCompilation getCompilation()
-
getDestinationDirectory
DirectoryProperty getDestinationDirectory()
-
getOutputKind
@Input() CompilerOutputKind getOutputKind()
-
getOptimized
@Input() Boolean getOptimized()
-
getDebuggable
@Input() Boolean getDebuggable()
-
getBaseName
@Input() String getBaseName()
-
getAdditionalCompilerOptions
@Input() Provider<Collection<String>> getAdditionalCompilerOptions()
-
getKotlinOptions
KotlinCommonToolOptions getKotlinOptions()
-
getEntryPoint
@Input()@Optional() final String getEntryPoint()
-
getLinkerOpts
@Input() final List<String> getLinkerOpts()
-
getBinaryOptions
@Input() final Map<String, String> getBinaryOptions()
-
getProcessTests
@Input() final Boolean getProcessTests()
-
getExportLibraries
@Classpath() final FileCollection getExportLibraries()
-
isStaticFramework
@Input() final Boolean isStaticFramework()
-
getEmbedBitcode
@Input() final BitcodeEmbeddingMode getEmbedBitcode()
-
getApiFiles
@Internal() final FileCollection getApiFiles()
-
getBinary
final NativeBinary getBinary()
-
kotlinOptions
Unit kotlinOptions(Function1<KotlinCommonToolOptions, Unit> fn)
-
kotlinOptions
Unit kotlinOptions(Closure<?> fn)
-
createCompilerArgs
StubK2NativeCompilerArguments createCompilerArgs()
-
setupCompilerArgs
Unit setupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
-
-
-