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.")
|
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
||||||
}
|
}
|
||||||
|
|
||||||
nativeTarget.apply {
|
|
||||||
binaries {
|
|
||||||
executable {
|
|
||||||
entryPoint = "MAIN CLASS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val myNativeMain by getting
|
val myNativeMain by getting
|
||||||
val myNativeTest by getting
|
val myNativeTest by getting
|
||||||
|
|||||||
+1
-7
@@ -8,13 +8,7 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
kotlin {
|
kotlin {
|
||||||
linuxX64 {
|
linuxX64()
|
||||||
binaries {
|
|
||||||
executable {
|
|
||||||
entryPoint = "MAIN CLASS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val linuxX64Main by getting
|
val linuxX64Main by getting
|
||||||
val linuxX64Test by getting
|
val linuxX64Test by getting
|
||||||
|
|||||||
+7
-5
@@ -64,12 +64,14 @@ data class NonDefaultTargetConfigurationIR(
|
|||||||
copy(irs = irs)
|
copy(irs = irs)
|
||||||
|
|
||||||
override fun GradlePrinter.renderGradle() {
|
override fun GradlePrinter.renderGradle() {
|
||||||
+name
|
if (irs.isNotEmpty()) {
|
||||||
when (dsl) {
|
+name
|
||||||
GradlePrinter.GradleDsl.KOTLIN -> +".apply"
|
when (dsl) {
|
||||||
GradlePrinter.GradleDsl.GROOVY -> +".with"
|
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.plugins.printer.GradlePrinter
|
||||||
import org.jetbrains.kotlin.tools.projectWizard.settings.buildsystem.Module
|
import org.jetbrains.kotlin.tools.projectWizard.settings.buildsystem.Module
|
||||||
|
|
||||||
interface NativeTargetConfigurator : TargetConfigurator {
|
interface NativeTargetConfigurator : TargetConfigurator
|
||||||
override fun createInnerTargetIrs(module: Module): List<BuildSystemIR> = buildList {
|
|
||||||
+NativeTargetInternalIR("MAIN CLASS")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class RealNativeTargetConfigurator private constructor(
|
class RealNativeTargetConfigurator private constructor(
|
||||||
override val moduleSubType: ModuleSubType
|
override val moduleSubType: ModuleSubType
|
||||||
|
|||||||
Reference in New Issue
Block a user