Change executable of a run task when binary's baseName is changed
This commit is contained in:
+8
-1
@@ -27,7 +27,7 @@ import java.io.File
|
||||
*/
|
||||
sealed class NativeBinary(
|
||||
private val name: String,
|
||||
var baseName: String,
|
||||
open var baseName: String,
|
||||
val buildType: NativeBuildType,
|
||||
var compilation: KotlinNativeCompilation
|
||||
) : Named {
|
||||
@@ -98,6 +98,13 @@ class Executable constructor(
|
||||
override val outputKind: NativeOutputKind
|
||||
get() = NativeOutputKind.EXECUTABLE
|
||||
|
||||
override var baseName: String
|
||||
get() = super.baseName
|
||||
set(value) {
|
||||
super.baseName = value
|
||||
runTask.executable = outputFile.absolutePath
|
||||
}
|
||||
|
||||
var entryPoint: String? = null
|
||||
|
||||
fun entryPoint(point: String?) {
|
||||
|
||||
Reference in New Issue
Block a user