|
|
|
@ -16,10 +16,23 @@ kotlin {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (withNative) { |
|
|
|
|
macosX64 { |
|
|
|
|
binaries { |
|
|
|
|
executable { |
|
|
|
|
entryPoint = "org.jetbrains.compose.kapp.demo.main" |
|
|
|
|
freeCompilerArgs += listOf( |
|
|
|
|
"-linker-option", "-framework", "-linker-option", "Metal", |
|
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreText", |
|
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreGraphics" |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
iosX64("uikitX64") { |
|
|
|
|
binaries { |
|
|
|
|
executable { |
|
|
|
|
entryPoint = "main" |
|
|
|
|
entryPoint = "org.jetbrains.compose.kapp.demo.main" |
|
|
|
|
freeCompilerArgs += listOf( |
|
|
|
|
"-linker-option", "-framework", "-linker-option", "Metal", |
|
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreText", |
|
|
|
@ -28,6 +41,7 @@ kotlin {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/* |
|
|
|
|
iosArm64("uikitArm64") { |
|
|
|
|
binaries { |
|
|
|
|
executable { |
|
|
|
@ -39,7 +53,7 @@ kotlin {
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sourceSets { |
|
|
|
@ -59,15 +73,28 @@ kotlin {
|
|
|
|
|
val jsMain by getting |
|
|
|
|
|
|
|
|
|
if (withNative) { |
|
|
|
|
val uikitMain by creating { |
|
|
|
|
val darwinMain by creating { |
|
|
|
|
dependsOn(commonMain) |
|
|
|
|
} |
|
|
|
|
val uikitX64Main by getting { |
|
|
|
|
dependsOn(uikitMain) |
|
|
|
|
|
|
|
|
|
val macosMain by creating { |
|
|
|
|
dependsOn(darwinMain) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val macosX64Main by getting { |
|
|
|
|
dependsOn(macosMain) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val uikitMain by creating { |
|
|
|
|
dependsOn(darwinMain) |
|
|
|
|
} |
|
|
|
|
val uikitArm64Main by getting { |
|
|
|
|
|
|
|
|
|
val uikitX64Main by getting { |
|
|
|
|
dependsOn(uikitMain) |
|
|
|
|
} |
|
|
|
|
//val uikitArm64Main by getting { |
|
|
|
|
// dependsOn(uikitMain) |
|
|
|
|
//} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|