Files
orx/orx-shader-phrases/build.gradle.kts
2025-09-20 06:17:24 +02:00

33 lines
1.1 KiB
Plaintext

plugins {
id("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(layout.buildDirectory.dir("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(openrndr.application.core)
implementation(openrndr.draw)
implementation(sharedLibs.kotlin.reflect)
}
}
@Suppress("UNUSED_VARIABLE")
val jvmTest by getting {
dependencies {
runtimeOnly(sharedLibs.slf4j.simple)
runtimeOnly(sharedLibs.kotlin.reflect)
implementation(sharedLibs.kotest.assertions)
implementation(sharedLibs.kotest.framework.engine)
}
}
}
}