73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
import ScreenshotsHelper.collectScreenshots
|
|
|
|
plugins {
|
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val demo by compilations.getting {
|
|
// TODO: Move demos to /jvmDemo
|
|
defaultSourceSet {
|
|
kotlin.srcDir("src/demo/kotlin")
|
|
}
|
|
collectScreenshots { }
|
|
}
|
|
compilations.all {
|
|
kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
|
|
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
|
|
}
|
|
testRuns["test"].executionTask.configure {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|
|
js(IR) {
|
|
browser()
|
|
nodejs()
|
|
}
|
|
|
|
sourceSets {
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(libs.openrndr.math)
|
|
api(libs.openrndr.shape)
|
|
implementation(project(":orx-noise"))
|
|
}
|
|
}
|
|
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val jvmMain by getting {
|
|
}
|
|
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val jvmDemo by getting {
|
|
dependencies {
|
|
implementation(project(":orx-shapes"))
|
|
implementation(project(":orx-triangulation"))
|
|
implementation(project(":orx-noise"))
|
|
}
|
|
}
|
|
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
implementation(kotlin("test-annotations-common"))
|
|
implementation(kotlin("test-junit5"))
|
|
implementation(libs.kotlin.serialization.json)
|
|
runtimeOnly(libs.bundles.jupiter)
|
|
implementation(libs.spek.dsl)
|
|
implementation(libs.kluent)
|
|
}
|
|
}
|
|
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
}
|
|
} |