Wizard: do not print binaries specification for all native targets

#KT-35719 fixed
This commit is contained in:
Ilya Kirillov
2020-01-15 12:33:52 +03:00
parent bf93d767b3
commit 9e96cd4507
4 changed files with 10 additions and 24 deletions
@@ -17,13 +17,7 @@ kotlin {
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
nativeTarget.apply {
binaries {
executable {
entryPoint = "MAIN CLASS"
}
}
}
sourceSets {
val myNativeMain by getting
val myNativeTest by getting
@@ -8,13 +8,7 @@ repositories {
mavenCentral()
}
kotlin {
linuxX64 {
binaries {
executable {
entryPoint = "MAIN CLASS"
}
}
}
linuxX64()
sourceSets {
val linuxX64Main by getting
val linuxX64Test by getting
@@ -64,12 +64,14 @@ data class NonDefaultTargetConfigurationIR(
copy(irs = irs)
override fun GradlePrinter.renderGradle() {
+name
when (dsl) {
GradlePrinter.GradleDsl.KOTLIN -> +".apply"
GradlePrinter.GradleDsl.GROOVY -> +".with"
if (irs.isNotEmpty()) {
+name
when (dsl) {
GradlePrinter.GradleDsl.KOTLIN -> +".apply"
GradlePrinter.GradleDsl.GROOVY -> +".with"
}
+" "; inBrackets { irs.listNl() }
}
+" "; inBrackets { irs.listNl() }
}
}
@@ -14,11 +14,7 @@ import org.jetbrains.kotlin.tools.projectWizard.plugins.kotlin.ModuleType
import org.jetbrains.kotlin.tools.projectWizard.plugins.printer.GradlePrinter
import org.jetbrains.kotlin.tools.projectWizard.settings.buildsystem.Module
interface NativeTargetConfigurator : TargetConfigurator {
override fun createInnerTargetIrs(module: Module): List<BuildSystemIR> = buildList {
+NativeTargetInternalIR("MAIN CLASS")
}
}
interface NativeTargetConfigurator : TargetConfigurator
class RealNativeTargetConfigurator private constructor(
override val moduleSubType: ModuleSubType