Change executable of a run task when binary's baseName is changed

This commit is contained in:
Ilya Matveev
2018-12-16 19:12:37 +07:00
parent 7b1552f3d6
commit 0a253ef30a
@@ -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?) {