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(
|
sealed class NativeBinary(
|
||||||
private val name: String,
|
private val name: String,
|
||||||
var baseName: String,
|
open var baseName: String,
|
||||||
val buildType: NativeBuildType,
|
val buildType: NativeBuildType,
|
||||||
var compilation: KotlinNativeCompilation
|
var compilation: KotlinNativeCompilation
|
||||||
) : Named {
|
) : Named {
|
||||||
@@ -98,6 +98,13 @@ class Executable constructor(
|
|||||||
override val outputKind: NativeOutputKind
|
override val outputKind: NativeOutputKind
|
||||||
get() = NativeOutputKind.EXECUTABLE
|
get() = NativeOutputKind.EXECUTABLE
|
||||||
|
|
||||||
|
override var baseName: String
|
||||||
|
get() = super.baseName
|
||||||
|
set(value) {
|
||||||
|
super.baseName = value
|
||||||
|
runTask.executable = outputFile.absolutePath
|
||||||
|
}
|
||||||
|
|
||||||
var entryPoint: String? = null
|
var entryPoint: String? = null
|
||||||
|
|
||||||
fun entryPoint(point: String?) {
|
fun entryPoint(point: String?) {
|
||||||
|
|||||||
Reference in New Issue
Block a user