Allow changing base name for a Kotlin/Native binary

This commit is contained in:
Ilya Matveev
2018-12-14 18:44:04 +07:00
parent a28902d358
commit 89c1170e5d
@@ -17,8 +17,6 @@ import org.jetbrains.kotlin.gradle.utils.lowerCamelCaseName
import org.jetbrains.kotlin.konan.target.Family import org.jetbrains.kotlin.konan.target.Family
import java.io.File import java.io.File
// TODO: Should the baseName be a var?
/** /**
* A base class representing a final binary produced by the Kotlin/Native compiler * A base class representing a final binary produced by the Kotlin/Native compiler
* @param name - a name of the DSL entity. * @param name - a name of the DSL entity.
@@ -29,7 +27,7 @@ import java.io.File
*/ */
sealed class NativeBinary( sealed class NativeBinary(
private val name: String, private val name: String,
val baseName: String, var baseName: String,
val buildType: NativeBuildType, val buildType: NativeBuildType,
var compilation: KotlinNativeCompilation var compilation: KotlinNativeCompilation
) : Named { ) : Named {