aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts55
1 files changed, 32 insertions, 23 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 3bb5e58..16078da 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -15,7 +15,7 @@ val orxUseSnapshot = false
val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.44"
// supported features are: orx-camera, orx-compositor,orx-easing, orx-filter-extension,orx-file-watcher, orx-fx
-// orx-integral-image, orx-interval-tree, orx-jumpflood, orx-kdtree, orx-mesh-generators,orx-midi, orx-no-clear,
+// orx-integral-image, orx-interval-tree, orx-jumpflood, orx-kinect-v1, orx-kdtree, orx-mesh-generators,orx-midi, orx-no-clear,
// orx-noise, orx-obj, orx-olive, orx-osc, orx-palette, orx-runway
val orxFeatures = setOf("orx-noise", "orx-fx")
@@ -65,54 +65,63 @@ fun DependencyHandler.openrndrNatives(module: String): Any {
return "org.openrndr:openrndr-$module-natives-$openrndrOs:$openrndrVersion"
}
+fun DependencyHandler.orxNatives(module: String): Any {
+ return "org.openrndr.extra:$module-natives-$openrndrOs:$orxVersion"
+}
+
+
dependencies {
- runtime(openrndr("gl3"))
- runtime(openrndrNatives("gl3"))
- compile(openrndr("openal"))
- runtime(openrndrNatives("openal"))
- compile(openrndr("core"))
- compile(openrndr("svg"))
- compile(openrndr("animatable"))
- compile(openrndr("extensions"))
- compile(openrndr("filter"))
+ runtimeOnly(openrndr("gl3"))
+ runtimeOnly(openrndrNatives("gl3"))
+ implementation(openrndr("openal"))
+ runtimeOnly(openrndrNatives("openal"))
+ implementation(openrndr("core"))
+ implementation(openrndr("svg"))
+ implementation(openrndr("animatable"))
+ implementation(openrndr("extensions"))
+ implementation(openrndr("filter"))
- compile("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.3.3")
+ implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.3.3")
- compile("io.github.microutils", "kotlin-logging","1.7.8")
+ implementation("io.github.microutils", "kotlin-logging","1.7.8")
when(applicationLogging) {
Logging.NONE -> {
- runtime("org.slf4j","slf4j-nop","1.7.29")
+ runtimeOnly("org.slf4j","slf4j-nop","1.7.29")
}
Logging.SIMPLE -> {
- runtime("org.slf4j","slf4j-simple","1.7.29")
+ runtimeOnly("org.slf4j","slf4j-simple","1.7.29")
}
Logging.FULL -> {
- runtime("org.apache.logging.log4j", "log4j-slf4j-impl", "2.13.0")
- runtime("com.fasterxml.jackson.core", "jackson-databind", "2.10.1")
- runtime("com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml", "2.10.1")
+ runtimeOnly("org.apache.logging.log4j", "log4j-slf4j-impl", "2.13.0")
+ runtimeOnly("com.fasterxml.jackson.core", "jackson-databind", "2.10.1")
+ runtimeOnly("com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml", "2.10.1")
}
}
if ("video" in openrndrFeatures) {
- compile(openrndr("ffmpeg"))
- runtime(openrndrNatives("ffmpeg"))
+ implementation(openrndr("ffmpeg"))
+ runtimeOnly(openrndrNatives("ffmpeg"))
}
if ("panel" in openrndrFeatures) {
- compile("org.openrndr.panel:openrndr-panel:$panelVersion")
+ implementation("org.openrndr.panel:openrndr-panel:$panelVersion")
}
for (feature in orxFeatures) {
- compile(orx(feature))
+ implementation(orx(feature))
+ }
+
+ if ("orx-kinect-v1" in orxFeatures) {
+ runtimeOnly("orx-kinect-v1")
}
if ("orx-olive" in orxFeatures) {
- compile("org.jetbrains.kotlin", "kotlin-scripting-compiler-embeddable")
+ implementation("org.jetbrains.kotlin", "kotlin-scripting-compiler-embeddable")
}
implementation(kotlin("stdlib-jdk8"))
- testCompile("junit", "junit", "4.12")
+ testImplementation("junit", "junit", "4.12")
}
// --------------------------------------------------------------------------------------------------------------------