-
- All Implemented Interfaces:
-
org.gradle.api.Named
public class NativeBinary implements Named
A base class representing a final binary produced by the Kotlin/Native compiler
-
-
Field Summary
Fields Modifier and Type Field Description private String
baseName
private final KotlinNativeTarget
target
private final Project
project
private final NativeOutputKind
outputKind
private Boolean
debuggable
private Boolean
optimized
private List<String>
linkerOpts
private Map<String, String>
binaryOptions
private List<String>
freeCompilerArgs
private final String
linkTaskName
private final KotlinNativeLink
linkTask
private final TaskProvider<out KotlinNativeLink>
linkTaskProvider
private File
outputDirectory
private final DirectoryProperty
outputDirectoryProperty
private final File
outputFile
private final NativeBuildType
buildType
private transient KotlinNativeCompilation
compilation
-
Method Summary
Modifier and Type Method Description String
getBaseName()
Unit
setBaseName(String baseName)
final KotlinNativeTarget
getTarget()
final Project
getProject()
abstract NativeOutputKind
getOutputKind()
final Boolean
getDebuggable()
final Unit
setDebuggable(Boolean debuggable)
final Boolean
getOptimized()
final Unit
setOptimized(Boolean optimized)
final List<String>
getLinkerOpts()
Additional options passed to the linker by the Kotlin/Native compiler. final Unit
setLinkerOpts(List<String> linkerOpts)
Additional options passed to the linker by the Kotlin/Native compiler. final Map<String, String>
getBinaryOptions()
final Unit
setBinaryOptions(Map<String, String> binaryOptions)
final List<String>
getFreeCompilerArgs()
final Unit
setFreeCompilerArgs(List<String> freeCompilerArgs)
final String
getLinkTaskName()
final KotlinNativeLink
getLinkTask()
final TaskProvider<out KotlinNativeLink>
getLinkTaskProvider()
final File
getOutputDirectory()
final Unit
setOutputDirectory(File outputDirectory)
final DirectoryProperty
getOutputDirectoryProperty()
final File
getOutputFile()
final NativeBuildType
getBuildType()
final KotlinNativeCompilation
getCompilation()
final Unit
setCompilation(KotlinNativeCompilation compilation)
final Unit
linkerOpts(String options)
Additional options passed to the linker by the Kotlin/Native compiler. final Unit
linkerOpts(Iterable<String> options)
Additional options passed to the linker by the Kotlin/Native compiler. final Unit
binaryOption(String name, String value)
String
getName()
-
-
Method Detail
-
getBaseName
String getBaseName()
-
setBaseName
Unit setBaseName(String baseName)
-
getTarget
final KotlinNativeTarget getTarget()
-
getProject
final Project getProject()
-
getOutputKind
abstract NativeOutputKind getOutputKind()
-
getDebuggable
final Boolean getDebuggable()
-
setDebuggable
final Unit setDebuggable(Boolean debuggable)
-
getOptimized
final Boolean getOptimized()
-
setOptimized
final Unit setOptimized(Boolean optimized)
-
getLinkerOpts
final List<String> getLinkerOpts()
Additional options passed to the linker by the Kotlin/Native compiler.
-
setLinkerOpts
final Unit setLinkerOpts(List<String> linkerOpts)
Additional options passed to the linker by the Kotlin/Native compiler.
-
getBinaryOptions
final Map<String, String> getBinaryOptions()
-
setBinaryOptions
final Unit setBinaryOptions(Map<String, String> binaryOptions)
-
getFreeCompilerArgs
final List<String> getFreeCompilerArgs()
-
setFreeCompilerArgs
final Unit setFreeCompilerArgs(List<String> freeCompilerArgs)
-
getLinkTaskName
final String getLinkTaskName()
-
getLinkTask
final KotlinNativeLink getLinkTask()
-
getLinkTaskProvider
final TaskProvider<out KotlinNativeLink> getLinkTaskProvider()
-
getOutputDirectory
final File getOutputDirectory()
-
setOutputDirectory
final Unit setOutputDirectory(File outputDirectory)
-
getOutputDirectoryProperty
final DirectoryProperty getOutputDirectoryProperty()
-
getOutputFile
final File getOutputFile()
-
getBuildType
final NativeBuildType getBuildType()
-
getCompilation
final KotlinNativeCompilation getCompilation()
-
setCompilation
final Unit setCompilation(KotlinNativeCompilation compilation)
- Parameters:
compilation
-a compilation used to produce this binary.
-
linkerOpts
final Unit linkerOpts(String options)
Additional options passed to the linker by the Kotlin/Native compiler.
-
linkerOpts
final Unit linkerOpts(Iterable<String> options)
Additional options passed to the linker by the Kotlin/Native compiler.
-
binaryOption
final Unit binaryOption(String name, String value)
-
-
-
-