2020-10-04 08:45:35 +03:00
|
|
|
@file:Suppress("UNUSED_VARIABLE")
|
|
|
|
|
|
|
|
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("ru.mipt.npm.native")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
targets.withType<KotlinNativeTarget> {
|
2020-10-04 09:19:49 +03:00
|
|
|
compilations["main"].cinterops {
|
|
|
|
val libgsl by creating {
|
|
|
|
defFile("src/nativeInterop/cinterop/libgsl.def")
|
|
|
|
includeDirs { allHeaders("./src/nativeMain/resources/") }
|
2020-10-04 08:45:35 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets.commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":kmath-core"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|