aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorEdwin Jakobs <edwin@rndr.studio>2021-11-22 23:35:36 +0100
committerEdwin Jakobs <edwin@rndr.studio>2021-11-23 10:26:25 +0100
commitd1fbf470b2a74c4f28c7b11ed741ba6643710e0e (patch)
tree81486ed3495d769b72d59c049ef966701dda61a2 /build.gradle.kts
parente988a14f03127c564e4c7b3a7113b0b2fb6bd34d (diff)
downloadart-playground-openrndr-d1fbf470b2a74c4f28c7b11ed741ba6643710e0e.tar.gz
art-playground-openrndr-d1fbf470b2a74c4f28c7b11ed741ba6643710e0e.zip
Shorten jpackage configuration
Diffstat (limited to '')
-rw-r--r--build.gradle.kts25
1 files changed, 8 insertions, 17 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 843c1c3..48ee09a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,13 +4,12 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
import org.jetbrains.kotlin.utils.addToStdlib.ifTrue
-/* the name of this project, default is the template version but you are free to change these */
group = "org.openrndr.template"
version = "0.4.0"
val applicationMainClass = "TemplateProgramKt"
-/* Which additional (ORX) libraries should be added to this project. */
+/** ## additional ORX features to be added to this project */
val orxFeatures = setOf(
// "orx-boofcv",
// "orx-camera",
@@ -60,6 +59,7 @@ val orxFeatures = setOf(
null
).filterNotNull()
+/** ## additional ORML features to be added to this project */
val ormlFeatures = setOf<String>(
// "orml-blazepose",
// "orml-dbface",
@@ -72,12 +72,12 @@ val ormlFeatures = setOf<String>(
// "orml-u2net"
)
-/* Which OPENRNDR libraries should be added to this project? */
+/** ## additional OPENRNDR features to be added to this project */
val openrndrFeatures = setOf(
"video"
)
-/* What type of logging should this project use? */
+/** ## configure the type of logging this project uses */
enum class Logging { NONE, SIMPLE, FULL }
val applicationLogging = Logging.FULL
@@ -183,19 +183,10 @@ runtime {
jpackage {
imageName = "openrndr-application"
skipInstaller = true
- if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
- jvmArgs.add("-XstartOnFirstThread")
- }
+ if (OperatingSystem.current() == OperatingSystem.MAC_OS) jvmArgs.add("-XstartOnFirstThread")
}
- options.empty()
- options.add("--strip-debug")
- options.add("--compress")
- options.add("1")
- options.add("--no-header-files")
- options.add("--no-man-pages")
- modules.empty()
- modules.add("jdk.unsupported")
- modules.add("java.management")
+ options.set(listOf("--strip-debug", "--compress", "1", "--no--header-files", "--no-man-pages"))
+ modules.set(listOf("jdk.unsupported", "java.management"))
}
// ------------------------------------------------------------------------------------------------------------------ //
@@ -265,4 +256,4 @@ class Openrndr {
}
}
-val openrndr = Openrndr()
+val openrndr = Openrndr() \ No newline at end of file