-
- 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 KotlinNativeCompilation
compilation
private final KotlinCommonCompilerToolOptions
toolOptions
private final DirectoryProperty
destinationDirectory
private final ConfigurableFileCollection
libraries
private final CompilerOutputKind
outputKind
private final Boolean
optimized
private final Boolean
debuggable
private final String
baseName
private final LanguageSettings
languageSettings
private final Provider<Collection<String>>
additionalCompilerOptions
private final KotlinCommonToolOptions
kotlinOptions
private final String
entryPoint
private final List<String>
linkerOpts
private final Map<String, String>
binaryOptions
private final Boolean
processTests
private final FileCollection
exportLibraries
private final Boolean
isStaticFramework
private final String
target
private final BitcodeEmbeddingMode
embedBitcode
private final Provider<BitcodeEmbeddingMode>
embedBitcodeMode
private final FileCollection
apiFiles
private final Provider<File>
outputFile
private final Boolean
enableEndorsedLibs
private final CompilerPluginOptions
compilerPluginOptions
private FileCollection
compilerPluginClasspath
private Provider<KotlinCompilerPluginData>
kotlinPluginData
private final NativeBinary
binary
private final FileCollection
sources
private final Property<BuildMetricsReporter>
metrics
private Boolean
enabled
private final Property<Duration>
timeout
private final TaskStateInternal
state
private Boolean
impliesSubProjects
private final Boolean
hasCustomActions
private final Set<Provider<out BuildService<?>>>
requiredServices
private final List<String>
serializedCompilerArguments
private final List<String>
serializedCompilerArgumentsIgnoreClasspathIssues
private final List<String>
defaultSerializedCompilerArguments
private final ConfigurableFileCollection
localStateDirectories
-
Constructor Summary
Constructors Constructor Description KotlinNativeLink(NativeBinary binary, ObjectFactory objectFactory, ExecOperations execOperations)
-
Method Summary
Modifier and Type Method Description final KotlinNativeCompilation
getCompilation()
final KotlinCommonCompilerToolOptions
getToolOptions()
DirectoryProperty
getDestinationDirectory()
ConfigurableFileCollection
getLibraries()
final CompilerOutputKind
getOutputKind()
final Boolean
getOptimized()
final Boolean
getDebuggable()
final String
getBaseName()
final LanguageSettings
getLanguageSettings()
final Provider<Collection<String>>
getAdditionalCompilerOptions()
final KotlinCommonToolOptions
getKotlinOptions()
final String
getEntryPoint()
final List<String>
getLinkerOpts()
final Map<String, String>
getBinaryOptions()
final Boolean
getProcessTests()
final FileCollection
getExportLibraries()
final Boolean
isStaticFramework()
final String
getTarget()
final BitcodeEmbeddingMode
getEmbedBitcode()
final Provider<BitcodeEmbeddingMode>
getEmbedBitcodeMode()
final FileCollection
getApiFiles()
Provider<File>
getOutputFile()
final Boolean
getEnableEndorsedLibs()
final CompilerPluginOptions
getCompilerPluginOptions()
FileCollection
getCompilerPluginClasspath()
Unit
setCompilerPluginClasspath(@Optional() @Classpath() FileCollection compilerPluginClasspath)
final Provider<KotlinCompilerPluginData>
getKotlinPluginData()
Plugin Data provided by KpmCompilerPlugin final Unit
setKotlinPluginData(Provider<KotlinCompilerPluginData> kotlinPluginData)
Plugin Data provided by KpmCompilerPlugin final NativeBinary
getBinary()
final Unit
kotlinOptions(Function1<KotlinCommonToolOptions, Unit> fn)
final Unit
kotlinOptions(Closure<?> fn)
StubK2NativeCompilerArguments
createCompilerArgs()
Unit
setupCompilerArgs(StubK2NativeCompilerArguments args, Boolean defaultsOnly, Boolean ignoreClasspathResolutionErrors)
final Unit
compile()
-
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)
-
-