Migrate mobile (shared) / native / shared library MPP wizards to new DSL

#KT-28458 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-12-06 11:28:31 +03:00
parent 9a0facf56a
commit 8e81d9a44f
5 changed files with 57 additions and 63 deletions
@@ -70,17 +70,16 @@ class KotlinGradleNativeMultiplatformModuleBuilder : KotlinGradleAbstractMultipl
override fun buildMultiPlatformPart(): String {
return """
kotlin {
targets {
// For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
// For Linux, preset should be changed to e.g. presets.linuxX64
// For MacOS, preset should be changed to e.g. presets.macosX64
fromPreset(presets.$nativePresetName, '$nativeTargetName')
configure([$nativeTargetName]) {
// For ARM, should be changed to iosArm32 or iosArm64
// For Linux, should be changed to e.g. linuxX64
// For MacOS, should be changed to e.g. macosX64
// For Windows, should be changed to e.g. mingwX64
$nativePresetName("$nativeTargetName") {
compilations.main {
// Comment to generate Kotlin/Native library (KLIB) instead of executable file:
compilations.main.outputKinds 'EXECUTABLE'
outputKinds("executable")
// Change to specify fully qualified name of your application's entry point:
compilations.main.entryPoint 'sample.main'
entryPoint 'sample.main'
}
}
sourceSets {