diff options
Diffstat (limited to 'lwjgl3/build.gradle')
| -rw-r--r-- | lwjgl3/build.gradle | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/lwjgl3/build.gradle b/lwjgl3/build.gradle index 76f521b..33f6d9b 100644 --- a/lwjgl3/build.gradle +++ b/lwjgl3/build.gradle @@ -21,12 +21,8 @@ import io.github.fourlastor.construo.Target sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ] application.mainClass = 'coffee.liz.dyl.lwjgl3.Lwjgl3Launcher' application.applicationName = appName +application.applicationDefaultJvmArgs = ['-XX:+UseZGC', '-XX:+UseCompactObjectHeaders'] eclipse.project.name = appName + '-lwjgl3' -java.sourceCompatibility = JavaVersion.VERSION_24 -java.targetCompatibility = JavaVersion.VERSION_24 -if (JavaVersion.current().isJava9Compatible()) { - compileJava.options.release.set(24) -} dependencies { implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion" @@ -119,40 +115,34 @@ tasks.register("jarWin") { } construo { - // name of the executable name.set(appName) - // human-readable name, used for example in the `.app` name for macOS humanName.set(appName) + roast { + vmArgs.addAll('-XX:+UseCompactObjectHeaders') + } + targets.configure { register("linuxX64", Target.Linux) { architecture.set(Target.Architecture.X86_64) - jdkUrl.set("https://api.adoptium.net/v3/binary/latest/24/ga/linux/x64/jdk/hotspot/normal/eclipse") - // Linux does not currently have a way to set the icon on the executable + jdkUrl.set("https://api.adoptium.net/v3/binary/latest/25/ga/linux/x64/jdk/hotspot/normal/eclipse") } register("macM1", Target.MacOs) { architecture.set(Target.Architecture.AARCH64) - jdkUrl.set("https://api.adoptium.net/v3/binary/latest/24/ga/mac/aarch64/jdk/hotspot/normal/eclipse") - // macOS needs an identifier + jdkUrl.set("https://api.adoptium.net/v3/binary/latest/25/ga/mac/aarch64/jdk/hotspot/normal/eclipse") identifier.set("coffee.liz.dyl." + appName) - // Optional: icon for macOS, as an ICNS file macIcon.set(project.file("icons/logo.icns")) } register("macX64", Target.MacOs) { architecture.set(Target.Architecture.X86_64) - jdkUrl.set("https://api.adoptium.net/v3/binary/latest/24/ga/mac/x64/jdk/hotspot/normal/eclipse") - // macOS needs an identifier + jdkUrl.set("https://api.adoptium.net/v3/binary/latest/25/ga/mac/x64/jdk/hotspot/normal/eclipse") identifier.set("coffee.liz.dyl." + appName) - // Optional: icon for macOS, as an ICNS file macIcon.set(project.file("icons/logo.icns")) } register("winX64", Target.Windows) { architecture.set(Target.Architecture.X86_64) - // Optional: icon for Windows, as a PNG icon.set(project.file("icons/logo.png")) - jdkUrl.set("https://api.adoptium.net/v3/binary/latest/24/ga/windows/x64/jdk/hotspot/normal/eclipse") - // Uncomment the next line to show a console when the game runs, to print messages. - //useConsole.set(true) + jdkUrl.set("https://api.adoptium.net/v3/binary/latest/25/ga/windows/x64/jdk/hotspot/normal/eclipse") } } } |
