mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 10:57:42 +00:00
teavm source added
This commit is contained in:
28
build.gradle
28
build.gradle
@@ -1,5 +1,8 @@
|
||||
import org.teavm.gradle.api.OptimizationLevel
|
||||
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.teavm" version "0.10.2"
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -22,10 +25,33 @@ tasks.withType(JavaCompile) {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: './lwjgl-rundir/', include: '*.jar')
|
||||
|
||||
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.js"
|
||||
|
||||
teavm.js {
|
||||
obfuscated = true
|
||||
sourceMap = true
|
||||
targetFileName = "../" + name
|
||||
optimization = OptimizationLevel.AGGRESSIVE
|
||||
outOfProcess = false
|
||||
fastGlobalAnalysis = false
|
||||
processMemory = 512
|
||||
entryPointName = "main"
|
||||
mainClass = "net.lax1dude.eaglercraft.Client"
|
||||
outputDir = file(folder)
|
||||
properties = [ "java.util.TimeZone.autodetect": "true" ]
|
||||
debugInformation = false
|
||||
}
|
||||
/*
|
||||
tasks.register('copyDebugJar', Copy) {
|
||||
project.delete("lwjgl-rundir/eaglercraft.jar")
|
||||
from layout.buildDirectory.file("eaglercraft.jar")
|
||||
into ("lwjgl-rundir/")
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user