[orx-kdtree] Make orx-kdtree a multiplatform module

This commit is contained in:
Edwin Jakobs
2024-01-02 18:13:14 +01:00
parent a1e75269b1
commit 3b57c3ce26
11 changed files with 305 additions and 214 deletions

View File

@@ -1,15 +1,23 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
org.openrndr.extra.convention.`kotlin-jvm`
org.openrndr.extra.convention.`kotlin-multiplatform`
}
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(libs.openrndr.application)
api(libs.openrndr.math)
implementation(libs.kotlin.coroutines)
api(libs.openrndr.utils)
}
}
}
}
dependencies {
implementation(libs.openrndr.application)
implementation(libs.openrndr.math)
implementation(libs.kotlin.coroutines)
}
//tasks.withType<KotlinCompile> {
// kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
//}