Browse Source

Add orml setup

master
Ricardo Matias 4 years ago
committed by GitHub
parent
commit
b6e2377384
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 34
      build.gradle.kts

34
build.gradle.kts

@ -47,10 +47,24 @@ val orxFeatures = setOf(
// "orx-temporal-blur", // "orx-temporal-blur",
// "orx-time-operators", // "orx-time-operators",
// "orx-kinect-v1", // "orx-kinect-v1",
// "orx-tensorflow",
"orx-panel" "orx-panel"
) )
val ormlFeatures = setOf<String>(
// "orml-blazepose",
// "orml-dbface",
// "orml-facemesh",
// "orml-image-classifier",
// "orml-psenet",
// "orml-ssd",
// "orml-style-transfer",
// "orml-super-resolution",
// "orml-u2net"
)
/* Which OPENRNDR libraries should be added to this project? */ /* Which OPENRNDR libraries should be added to this project? */
val openrndrFeatures = setOf( val openrndrFeatures = setOf(
"video" "video"
@ -63,6 +77,12 @@ val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.44"
val orxUseSnapshot = false val orxUseSnapshot = false
val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.53" val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.53"
val ormlUseSnapshot = false
val ormlVersion = if (ormlUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.0-rc.5"
// choices are "orx-tensorflow-gpu", "orx-tensorflow-mkl", "orx-tensorflow"
val orxTensorflowBackend = "orx-tensorflow-mkl"
//<editor-fold desc="This is code for OPENRNDR, no need to edit this .. most of the times"> //<editor-fold desc="This is code for OPENRNDR, no need to edit this .. most of the times">
val supportedPlatforms = setOf("windows", "macos", "linux-x64", "linux-arm64") val supportedPlatforms = setOf("windows", "macos", "linux-x64", "linux-arm64")
@ -115,6 +135,10 @@ fun DependencyHandler.orx(module: String): Any {
return "org.openrndr.extra:$module:$orxVersion" return "org.openrndr.extra:$module:$orxVersion"
} }
fun DependencyHandler.orml(module: String): Any {
return "org.openrndr.orml:$module:$ormlVersion"
}
fun DependencyHandler.openrndr(module: String): Any { fun DependencyHandler.openrndr(module: String): Any {
return "org.openrndr:openrndr-$module:$openrndrVersion" return "org.openrndr:openrndr-$module:$openrndrVersion"
} }
@ -168,6 +192,14 @@ dependencies {
for (feature in orxFeatures) { for (feature in orxFeatures) {
implementation(orx(feature)) implementation(orx(feature))
} }
for (feature in ormlFeatures) {
implementation(orml(feature))
}
if ("orx-tensorflow" in orxFeatures) {
runtimeOnly("org.openrndr.extra:$orxTensorflowBackend-natives-$openrndrOs:$orxVersion")
}
if ("orx-kinect-v1" in orxFeatures) { if ("orx-kinect-v1" in orxFeatures) {
runtimeOnly(orxNatives("orx-kinect-v1")) runtimeOnly(orxNatives("orx-kinect-v1"))

Loading…
Cancel
Save