Files
orx/orx-shader-phrases/build.gradle.kts
Edwin Jakobs b7ba6f6daa Feature variants (#376)
Migrate from buildSrc to build-logic. Setup feature variants.
2025-09-17 10:03:02 +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)
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)
}
}
}
}