2024-02-14 20:52:11 -08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'eclipse'
|
|
|
|
id 'org.teavm' version '0.9.2'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir 'src/main/java'
|
|
|
|
srcDir 'src/teavm/java'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
teavm(teavm.libs.jso)
|
|
|
|
teavm(teavm.libs.jsoApis)
|
|
|
|
}
|
|
|
|
|
|
|
|
teavm.js {
|
|
|
|
obfuscated = true
|
|
|
|
sourceMap = true
|
|
|
|
targetFileName = "../classes.js"
|
2024-03-06 19:01:47 -08:00
|
|
|
optimization = org.teavm.gradle.api.OptimizationLevel.BALANCED // no fps boost was observed with "AGGRESSIVE"
|
2024-02-14 20:52:11 -08:00
|
|
|
outOfProcess = false
|
|
|
|
fastGlobalAnalysis = false
|
|
|
|
processMemory = 512
|
|
|
|
entryPointName = 'main'
|
|
|
|
mainClass = 'net.lax1dude.eaglercraft.v1_8.internal.teavm.MainClass'
|
|
|
|
outputDir = file("javascript")
|
|
|
|
properties = null
|
|
|
|
sourceMap = true
|
|
|
|
debugInformation = false
|
|
|
|
}
|