Browse Source

Shorten jpackage configuration

master
Edwin Jakobs 3 years ago
parent
commit
d1fbf470b2
  1. 25
      build.gradle.kts

25
build.gradle.kts

@ -4,13 +4,12 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
import org.jetbrains.kotlin.utils.addToStdlib.ifTrue 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" group = "org.openrndr.template"
version = "0.4.0" version = "0.4.0"
val applicationMainClass = "TemplateProgramKt" 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( val orxFeatures = setOf(
// "orx-boofcv", // "orx-boofcv",
// "orx-camera", // "orx-camera",
@ -60,6 +59,7 @@ val orxFeatures = setOf(
null null
).filterNotNull() ).filterNotNull()
/** ## additional ORML features to be added to this project */
val ormlFeatures = setOf<String>( val ormlFeatures = setOf<String>(
// "orml-blazepose", // "orml-blazepose",
// "orml-dbface", // "orml-dbface",
@ -72,12 +72,12 @@ val ormlFeatures = setOf<String>(
// "orml-u2net" // "orml-u2net"
) )
/* Which OPENRNDR libraries should be added to this project? */ /** ## additional OPENRNDR features to be added to this project */
val openrndrFeatures = setOf( val openrndrFeatures = setOf(
"video" "video"
) )
/* What type of logging should this project use? */ /** ## configure the type of logging this project uses */
enum class Logging { NONE, SIMPLE, FULL } enum class Logging { NONE, SIMPLE, FULL }
val applicationLogging = Logging.FULL val applicationLogging = Logging.FULL
@ -183,19 +183,10 @@ runtime {
jpackage { jpackage {
imageName = "openrndr-application" imageName = "openrndr-application"
skipInstaller = true skipInstaller = true
if (OperatingSystem.current() == OperatingSystem.MAC_OS) { if (OperatingSystem.current() == OperatingSystem.MAC_OS) jvmArgs.add("-XstartOnFirstThread")
jvmArgs.add("-XstartOnFirstThread")
}
} }
options.empty() options.set(listOf("--strip-debug", "--compress", "1", "--no--header-files", "--no-man-pages"))
options.add("--strip-debug") modules.set(listOf("jdk.unsupported", "java.management"))
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")
} }
// ------------------------------------------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------------------------------------------ //
@ -265,4 +256,4 @@ class Openrndr {
} }
} }
val openrndr = Openrndr() val openrndr = Openrndr()
Loading…
Cancel
Save