kmath/kmath-gsl/build.gradle.kts
2020-10-04 14:10:53 +07:00

29 lines
703 B
Plaintext

@file:Suppress("UNUSED_VARIABLE")
plugins {
id("ru.mipt.npm.mpp")
}
kotlin {
val nativeTarget = when (System.getProperty("os.name")) {
"Mac OS X" -> macosX64("native")
"Linux" -> linuxX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
val main by nativeTarget.compilations.getting {
cinterops {
val libgsl by creating {
defFile("src/nativeInterop/cinterop/libgsl.def")
includeDirs { allHeaders("./src/nativeMain/resources/") }
}
}
}
sourceSets.commonMain {
dependencies {
api(project(":kmath-core"))
}
}
}