forked from kscience/kmath
43 lines
1.2 KiB
Groovy
43 lines
1.2 KiB
Groovy
|
plugins {
|
||
|
id "org.jetbrains.kotlin.multiplatform"
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
targets {
|
||
|
fromPreset(presets.jvm, 'jvm')
|
||
|
// 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.mingwX64, 'mingw')
|
||
|
}
|
||
|
sourceSets {
|
||
|
commonMain {
|
||
|
dependencies {
|
||
|
api project(":kmath-core")
|
||
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutinesVersion"
|
||
|
}
|
||
|
}
|
||
|
commonTest {
|
||
|
dependencies {
|
||
|
api 'org.jetbrains.kotlin:kotlin-test-common'
|
||
|
api 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
||
|
}
|
||
|
}
|
||
|
jvmMain {
|
||
|
dependencies {
|
||
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
||
|
}
|
||
|
}
|
||
|
jvmTest {
|
||
|
dependencies {
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
||
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
||
|
}
|
||
|
}
|
||
|
// mingwMain {
|
||
|
// }
|
||
|
// mingwTest {
|
||
|
// }
|
||
|
}
|
||
|
}
|