2018-11-14 23:26:38 +03:00
|
|
|
plugins {
|
2018-12-11 17:25:55 +03:00
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
2018-11-14 23:26:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
targets {
|
|
|
|
fromPreset(presets.jvm, 'jvm')
|
|
|
|
fromPreset(presets.js, 'js')
|
|
|
|
// 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")
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-common'
|
2018-12-11 17:25:55 +03:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-io:$ioVersion"
|
2018-11-14 23:26:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-common'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
2018-12-11 17:25:55 +03:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-io-jvm:$ioVersion"
|
2018-11-14 23:26:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// mingwMain {
|
|
|
|
// }
|
|
|
|
// mingwTest {
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|