-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathbuild.gradle
59 lines (53 loc) · 1.43 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
id 'java'
id 'eclipse'
id 'org.teavm' version '0.9.2'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/teavm/java'
}
}
eagler {
java {
srcDir 'src/main/java'
srcDir 'src/lwjgl/java'
}
}
}
repositories {
mavenCentral()
}
dependencies {
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
eaglerImplementation fileTree(dir: './desktopRuntime/eclipseProject/deps_fix/', include: '*.jar')
}
teavm.js {
obfuscated = false
sourceMap = true
targetFileName = "../classes.js"
optimization = org.teavm.gradle.api.OptimizationLevel.BALANCED
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 2048
entryPointName = 'main'
mainClass = 'net.lax1dude.eaglercraft.v1_8.internal.teavm.MainClass'
outputDir = file("javascript")
properties = null
sourceMap = true
debugInformation = false
}
tasks.register('runclient', JavaExec) {
classpath = sourceSets.eagler.compileClasspath
group = "ShadowClient"
description = "Runs the client"
classpath sourceSets.eagler.runtimeClasspath
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
jvmArgs '-XstartOnFirstThread'
}
workingDir "./desktopRuntime"
main 'net.lax1dude.eaglercraft.v1_8.internal.lwjgl.MainClass'
}