api / org.gradle.nativeplatform.tasks / InstallExecutable

InstallExecutable

@Incubating open class InstallExecutable : DefaultTask

Installs an executable with it's dependent libraries so it can be easily executed.

Constructors

<init>

InstallExecutable(workerLeaseService: WorkerLeaseService)

Injects a WorkerLeaseService instance.

Functions

getExecutableFile

open fun getExecutableFile(): RegularFileProperty

The executable file to install.

getInstallDirectory

open fun getInstallDirectory(): DirectoryProperty

The directory to install files into.

getInstalledExecutable

open fun getInstalledExecutable(): RegularFileProperty

The location of the installed executable file.

getLibs

open fun getLibs(): FileCollection

The library files that should be installed.

getRunScriptFile

open fun getRunScriptFile(): Provider<RegularFile>

Returns the script file that can be used to run the install image.

getTargetPlatform

open fun getTargetPlatform(): Property<NativePlatform>

The platform being linked for.

getToolChain

open fun getToolChain(): Property<NativeToolChain>

The tool chain used for linking.

install

open fun install(): Unit

lib

open fun lib(libs: Any): Unit

Adds a set of library files to be installed. The provided libs object is evaluated as per org.gradle.api.Project#files(Object...).

setLibs

open fun setLibs(libs: FileCollection): Unit