Add linux native target on windows
This commit is contained in:
parent
0959cdee15
commit
57ca6e57af
@ -21,13 +21,18 @@ class KScienceNativePlugin : Plugin<Project> {
|
|||||||
val nativeTarget = when {
|
val nativeTarget = when {
|
||||||
hostOs == "Mac OS X" -> macosX64("native")
|
hostOs == "Mac OS X" -> macosX64("native")
|
||||||
hostOs == "Linux" -> linuxX64("native")
|
hostOs == "Linux" -> linuxX64("native")
|
||||||
isMingwX64 -> mingwX64("native")
|
isMingwX64 -> {
|
||||||
|
mingwX64("native")
|
||||||
|
linuxX64()
|
||||||
|
}
|
||||||
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.invoke {
|
sourceSets.invoke {
|
||||||
val nativeMain by getting
|
val nativeMain by getting
|
||||||
|
findByName("linuxX64Main")?.dependsOn(nativeMain)
|
||||||
val nativeTest by getting
|
val nativeTest by getting
|
||||||
|
findByName("linuxX64Test")?.dependsOn(nativeTest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user