diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-21 03:17:15 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-21 03:17:15 +0500 |
| commit | 1ecd8d1d527b6b66b4746e44023b6ab3cb2ca4cc (patch) | |
| tree | 44a766670059ef3beb1da048844fc7693418bcf8 /lwjgl3/build.gradle | |
| parent | 4e524d08c5b427cabc1a6e452347c09c963eb86c (diff) | |
feat: using other serializer and gdx-websocket (because the old one doesn't support gwt)
Diffstat (limited to 'lwjgl3/build.gradle')
| -rw-r--r-- | lwjgl3/build.gradle | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/lwjgl3/build.gradle b/lwjgl3/build.gradle index e2986c6..ac9b29f 100644 --- a/lwjgl3/build.gradle +++ b/lwjgl3/build.gradle @@ -1,11 +1,10 @@ - buildscript { repositories { gradlePluginPortal() } dependencies { classpath "io.github.fourlastor:construo:1.5.1" - if(enableGraalNative == 'true') { + if (enableGraalNative == 'true') { classpath "org.graalvm.buildtools.native:org.graalvm.buildtools.native.gradle.plugin:0.9.28" } } @@ -18,24 +17,25 @@ apply plugin: 'io.github.fourlastor.construo' import io.github.fourlastor.construo.Target -sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ] +sourceSets.main.resources.srcDirs += [rootProject.file('assets').path] mainClassName = 'kz.ilotterytea.frogartha.lwjgl3.Lwjgl3Launcher' application.setMainClass(mainClassName) eclipse.project.name = appName + '-lwjgl3' java.sourceCompatibility = 11 java.targetCompatibility = 11 if (JavaVersion.current().isJava9Compatible()) { - compileJava.options.release.set(11) + compileJava.options.release.set(11) } dependencies { implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion" implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" + implementation "com.github.MrStahlfelge.gdx-websockets:common:$gdxWsVersion" implementation project(':core') - if(enableGraalNative == 'true') { + if (enableGraalNative == 'true') { implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion" - } + } } @@ -72,41 +72,41 @@ jar { } construo { - // name of the executable - name.set(appName) - // human-readable name, used for example in the `.app` name for macOS - humanName.set(appName) - // Optional, defaults to project version property - version.set("$projectVersion") - - targets.configure { - create("linuxX64", Target.Linux) { - architecture.set(Target.Architecture.X86_64) - jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz") - } - create("macM1", Target.MacOs) { - architecture.set(Target.Architecture.AARCH64) - jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.12_7.tar.gz") - // macOS needs an identifier - identifier.set("kz.ilotterytea.frogartha." + appName) - // Optional: icon for macOS - macIcon.set(project.file("icons/logo.icns")) - } - create("macX64", Target.MacOs) { - architecture.set(Target.Architecture.X86_64) - jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_mac_hotspot_17.0.12_7.tar.gz") - // macOS needs an identifier - identifier.set("kz.ilotterytea.frogartha." + appName) - // Optional: icon for macOS - macIcon.set(project.file("icons/logo.icns")) - } - create("winX64", Target.Windows) { - architecture.set(Target.Architecture.X86_64) - jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_windows_hotspot_17.0.12_7.zip") - // Uncomment the next line to show a console when the game runs, to print messages. - //useConsole.set(true) - } + // name of the executable + name.set(appName) + // human-readable name, used for example in the `.app` name for macOS + humanName.set(appName) + // Optional, defaults to project version property + version.set("$projectVersion") + + targets.configure { + create("linuxX64", Target.Linux) { + architecture.set(Target.Architecture.X86_64) + jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz") + } + create("macM1", Target.MacOs) { + architecture.set(Target.Architecture.AARCH64) + jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.12_7.tar.gz") + // macOS needs an identifier + identifier.set("kz.ilotterytea.frogartha." + appName) + // Optional: icon for macOS + macIcon.set(project.file("icons/logo.icns")) + } + create("macX64", Target.MacOs) { + architecture.set(Target.Architecture.X86_64) + jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_mac_hotspot_17.0.12_7.tar.gz") + // macOS needs an identifier + identifier.set("kz.ilotterytea.frogartha." + appName) + // Optional: icon for macOS + macIcon.set(project.file("icons/logo.icns")) } + create("winX64", Target.Windows) { + architecture.set(Target.Architecture.X86_64) + jdkUrl.set("https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_windows_hotspot_17.0.12_7.zip") + // Uncomment the next line to show a console when the game runs, to print messages. + //useConsole.set(true) + } + } } // Equivalent to the jar task; here for compatibility with gdx-setup. @@ -131,6 +131,6 @@ distributions { startScripts.dependsOn(':lwjgl3:jar') startScripts.classpath = project.tasks.jar.outputs.files -if(enableGraalNative == 'true') { +if (enableGraalNative == 'true') { apply from: file("nativeimage.gradle") } |
