sp-server

This commit is contained in:
catfoolyou
2025-02-06 18:02:51 -05:00
parent 353c5d7165
commit f4e3cbe2fe
1030 changed files with 123381 additions and 3 deletions

46
sp-server/build.gradle Normal file
View File

@@ -0,0 +1,46 @@
import org.teavm.gradle.api.OptimizationLevel
plugins {
id "java"
id "eclipse"
id "org.teavm" version "0.10.2"
}
sourceSets {
main {
java {
srcDirs(
"src/main/java",
"src/ipc/java"
)
}
}
}
repositories {
mavenCentral()
}
dependencies {
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
compileOnly "org.teavm:teavm-core:0.10.2" // workaround for a few hacks
}
def folder = "../javascript"
def name = "classes_server.js"
teavm.js {
obfuscated = true
sourceMap = true
targetFileName = "../" + name
optimization = OptimizationLevel.AGGRESSIVE
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 512
entryPointName = "main"
mainClass = "net.lax1dude.eaglercraft.sp.IntegratedServer"
outputDir = file(folder)
properties = [ "java.util.TimeZone.autodetect": "true" ]
debugInformation = false
}