Wizard: do not print binaries specification for all native targets
#KT-35719 fixed
This commit is contained in:
+1
-7
@@ -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
|
||||
|
||||
+1
-7
@@ -8,13 +8,7 @@ repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
kotlin {
|
||||
linuxX64 {
|
||||
binaries {
|
||||
executable {
|
||||
entryPoint = "MAIN CLASS"
|
||||
}
|
||||
}
|
||||
}
|
||||
linuxX64()
|
||||
sourceSets {
|
||||
val linuxX64Main by getting
|
||||
val linuxX64Test by getting
|
||||
|
||||
+7
-5
@@ -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() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user