33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
plugins {
|
|
org.openrndr.extra.convention.`kotlin-multiplatform`
|
|
alias(libs.plugins.kotest.multiplatform)
|
|
}
|
|
|
|
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
|
inputDir.set(file("$projectDir/src/shaders/glsl"))
|
|
outputDir.set(file("$buildDir/generated/shaderKotlin"))
|
|
defaultPackage.set("org.openrndr.shaderphrases.phrases")
|
|
}.get()
|
|
|
|
kotlin {
|
|
kotlin.sourceSets.getByName("commonMain").kotlin.srcDir(embedShaders.outputDir)
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(libs.openrndr.application)
|
|
implementation(libs.openrndr.draw)
|
|
implementation(libs.kotlin.reflect)
|
|
}
|
|
}
|
|
|
|
@Suppress("UNUSED_VARIABLE")
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
runtimeOnly(libs.slf4j.simple)
|
|
runtimeOnly(libs.kotlin.reflect)
|
|
implementation(libs.kotest.assertions)
|
|
implementation(libs.kotest.framework.engine)
|
|
}
|
|
}
|
|
}
|
|
} |