-
- 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.tasks.TaskWithLocalState,org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool,org.jetbrains.kotlin.gradle.tasks.KotlinToolTask
@CacheableTask() public abstract class KotlinNativeLink extends AbstractKotlinCompileTool<StubK2NativeCompilerArguments> implements KotlinToolTask<KotlinCommonCompilerToolOptions>
A task producing a final binary from a compilation.
-
-
Field Summary
Fields Modifier and Type Field Description private final KotlinNativeCompilationcompilationprivate final KotlinCommonCompilerToolOptionstoolOptionsprivate final DirectoryPropertydestinationDirectoryprivate final ConfigurableFileCollectionlibrariesprivate final CompilerOutputKindoutputKindprivate final Booleanoptimizedprivate final Booleandebuggableprivate final StringbaseNameprivate final LanguageSettingslanguageSettingsprivate 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 Stringtargetprivate final BitcodeEmbeddingModeembedBitcodeprivate final Provider<BitcodeEmbeddingMode>embedBitcodeModeprivate final FileCollectionapiFilesprivate final Provider<File>outputFileprivate final BooleanenableEndorsedLibsprivate final CompilerPluginOptionscompilerPluginOptionsprivate FileCollectioncompilerPluginClasspathprivate Provider<KotlinCompilerPluginData>kotlinPluginDataprivate final NativeBinarybinaryprivate 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>serializedCompilerArgumentsprivate final List<String>serializedCompilerArgumentsIgnoreClasspathIssuesprivate final List<String>defaultSerializedCompilerArgumentsprivate final ConfigurableFileCollectionlocalStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinNativeLink(NativeBinary binary, ObjectFactory objectFactory, ExecOperations execOperations)
-
Method Summary
Modifier and Type Method Description final KotlinNativeCompilationgetCompilation()final KotlinCommonCompilerToolOptionsgetToolOptions()DirectoryPropertygetDestinationDirectory()ConfigurableFileCollectiongetLibraries()final CompilerOutputKindgetOutputKind()final BooleangetOptimized()final BooleangetDebuggable()final StringgetBaseName()final LanguageSettingsgetLanguageSettings()final Provider<Collection<String>>getAdditionalCompilerOptions()final KotlinCommonToolOptionsgetKotlinOptions()final StringgetEntryPoint()final List<String>getLinkerOpts()final Map<String, String>getBinaryOptions()final BooleangetProcessTests()final FileCollectiongetExportLibraries()final BooleanisStaticFramework()final StringgetTarget()final BitcodeEmbeddingModegetEmbedBitcode()final Provider<BitcodeEmbeddingMode>getEmbedBitcodeMode()final FileCollectiongetApiFiles()Provider<File>getOutputFile()final BooleangetEnableEndorsedLibs()final CompilerPluginOptionsgetCompilerPluginOptions()FileCollectiongetCompilerPluginClasspath()UnitsetCompilerPluginClasspath(@Optional() @Classpath() FileCollection compilerPluginClasspath)final Provider<KotlinCompilerPluginData>getKotlinPluginData()Plugin Data provided by KpmCompilerPlugin final UnitsetKotlinPluginData(Provider<KotlinCompilerPluginData> kotlinPluginData)Plugin Data provided by KpmCompilerPlugin final NativeBinarygetBinary()final UnitkotlinOptions(Function1<KotlinCommonToolOptions, Unit> fn)final UnitkotlinOptions(Closure<?> fn)StubK2NativeCompilerArgumentscreateCompilerArgs()UnitsetupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)final Unitcompile()-
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, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, 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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class org.jetbrains.kotlin.gradle.internal.CompilerArgumentAware
getDefaultSerializedCompilerArguments, getSerializedCompilerArguments, getSerializedCompilerArgumentsIgnoreClasspathIssues -
Methods inherited from class org.jetbrains.kotlin.gradle.internal.tasks.TaskWithLocalState
getLocalStateDirectories -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinToolTask
toolOptions, toolOptions -
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, ExecOperations execOperations)
-
-
Method Detail
-
getCompilation
@Internal() final KotlinNativeCompilation getCompilation()
-
getToolOptions
final KotlinCommonCompilerToolOptions getToolOptions()
-
getDestinationDirectory
DirectoryProperty getDestinationDirectory()
-
getLibraries
@Classpath() ConfigurableFileCollection getLibraries()
-
getOutputKind
@Input() final CompilerOutputKind getOutputKind()
-
getOptimized
@Input() final Boolean getOptimized()
-
getDebuggable
@Input() final Boolean getDebuggable()
-
getBaseName
@Input() final String getBaseName()
-
getLanguageSettings
@Internal() final LanguageSettings getLanguageSettings()
-
getAdditionalCompilerOptions
@Internal() final Provider<Collection<String>> getAdditionalCompilerOptions()
-
getKotlinOptions
@Internal() final 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
@Internal() final BitcodeEmbeddingMode getEmbedBitcode()
-
getEmbedBitcodeMode
@Input() final Provider<BitcodeEmbeddingMode> getEmbedBitcodeMode()
-
getApiFiles
@Internal() final FileCollection getApiFiles()
-
getOutputFile
@Internal() Provider<File> getOutputFile()
-
getEnableEndorsedLibs
@Input() final Boolean getEnableEndorsedLibs()
-
getCompilerPluginOptions
final CompilerPluginOptions getCompilerPluginOptions()
-
getCompilerPluginClasspath
FileCollection getCompilerPluginClasspath()
-
setCompilerPluginClasspath
Unit setCompilerPluginClasspath(@Optional() @Classpath() FileCollection compilerPluginClasspath)
-
getKotlinPluginData
@Optional() final Provider<KotlinCompilerPluginData> getKotlinPluginData()
Plugin Data provided by KpmCompilerPlugin
-
setKotlinPluginData
final Unit setKotlinPluginData(Provider<KotlinCompilerPluginData> kotlinPluginData)
Plugin Data provided by KpmCompilerPlugin
-
getBinary
final NativeBinary getBinary()
-
kotlinOptions
final Unit kotlinOptions(Function1<KotlinCommonToolOptions, Unit> fn)
-
kotlinOptions
final Unit kotlinOptions(Closure<?> fn)
-
createCompilerArgs
StubK2NativeCompilerArguments createCompilerArgs()
-
setupCompilerArgs
Unit setupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
-
-
-
-