jromero
10/04/2019, 3:21 PMmacos64
and linuxX64
). They should both be able to utilize platform.posix
and kotlin.system
. Is there an example for setting up something like that?
I tried to setup what the original Q/A had but IntelliJ showed that “Kotlin/Native 1.3.50 - stdlib” wasn’t an available dependency for that sourceSet
.basher
10/04/2019, 3:32 PMnixMain
or something like that, and then you add that source directory to both targetsjromero
10/04/2019, 3:43 PMplugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.50'
}
repositories {
mavenCentral()
}
kotlin {
macosX64("macos") {
binaries {
executable {
// Change to specify fully qualified name of your application's entry point:
entryPoint = 'sample.main'
// Specify command-line arguments, if necessary:
runTask?.args('')
}
}
}
linuxX64("linux") {
}
sourceSets {
// Note: To enable common source sets please comment out 'kotlin.import.noCommonSourceSets' property
// in gradle.properties file and re-import your project in IDE.
macosMain {
kotlin.srcDirs += file("src/nativeCommon/kotlin")
}
linuxMain {
kotlin.srcDirs += file("src/nativeCommon/kotlin")
}
}
}
jromero
10/04/2019, 3:43 PMjromero
10/04/2019, 3:44 PMbasher
10/04/2019, 3:44 PMjromero
10/04/2019, 3:44 PMjromero
10/04/2019, 3:58 PMjromero
10/04/2019, 3:59 PMlouiscad
10/04/2019, 4:23 PMjromero
10/04/2019, 5:14 PMSebastian Sellmair [JB]
10/04/2019, 9:34 PM