2020-09-02 02:19:08 +02:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'io.github.zebalu:teavm-gradle-plugin:1.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'io.github.zebalu.teavm-gradle-plugin'
|
|
|
|
|
2022-03-31 08:54:47 +02:00
|
|
|
sourceCompatibility = 1.8
|
2020-09-02 02:19:08 +02:00
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
2020-09-02 02:52:13 +02:00
|
|
|
srcDir 'src/main/java'
|
|
|
|
srcDir 'src/teavm/java'
|
2020-09-02 02:19:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
2022-01-09 08:35:35 +01:00
|
|
|
|
2020-09-02 02:19:08 +02:00
|
|
|
dependencies {
|
|
|
|
implementation 'org.teavm:teavm-platform:0.6.1'
|
|
|
|
implementation 'org.teavm:teavm-classlib:0.6.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
teavm {
|
|
|
|
|
|
|
|
compileScopes = null;
|
2022-01-19 08:48:00 +01:00
|
|
|
minifying = false;
|
2020-09-02 02:19:08 +02:00
|
|
|
maxTopLevelNames = 10000;
|
|
|
|
properties = null;
|
|
|
|
debugInformationGenerated = false;
|
2022-03-10 03:59:46 +01:00
|
|
|
sourceMapsGenerated = true;
|
2020-09-02 02:19:08 +02:00
|
|
|
sourceFilesCopied = false;
|
|
|
|
incremental = false;
|
|
|
|
transformers = null;
|
|
|
|
|
|
|
|
/** Where to save the result */
|
|
|
|
targetDirectory = file("javascript");
|
|
|
|
|
|
|
|
/** The directory to monitor to decide if compile is up-to-date or not */
|
2022-03-31 08:54:47 +02:00
|
|
|
sourceDirectory = file("src");
|
2020-09-02 02:19:08 +02:00
|
|
|
|
|
|
|
/** How to name the result file. */
|
|
|
|
targetFileName = "classes.js";
|
|
|
|
|
|
|
|
/** Which class holds your public static void main(Strin[] args) method */
|
|
|
|
mainClass = 'net.lax1dude.eaglercraft.Client';
|
|
|
|
|
|
|
|
/** This will be the name of your main method after compilation. */
|
|
|
|
entryPointName = 'main';
|
|
|
|
|
|
|
|
classesToPreserve = null;
|
|
|
|
stopOnErrors = false;
|
2022-05-17 06:11:37 +02:00
|
|
|
optimizationLevel = "ADVANCED"; //org.teavm.vm.TeaVMOptimizationLevel.SIMPLE;
|
2020-09-02 02:19:08 +02:00
|
|
|
fastGlobalAnalysis = false;
|
|
|
|
targetType = "JAVASCRIPT"; //org.teavm.tooling.TeaVMTargetType.JAVASCRIPT;
|
|
|
|
cacheDirectory = null;
|
|
|
|
wasmVersion = "V_0x1"; //org.teavm.backend.wasm.render.WasmBinaryVersion.V_0x1;
|
|
|
|
minHeapSize = 4;
|
|
|
|
maxHeapSize = 128;
|
|
|
|
outOfProcess = false;
|
|
|
|
processMemory = 512;
|
|
|
|
longjmpSupported = true;
|
|
|
|
heapDump = false;
|
|
|
|
|
|
|
|
/** Add name of configurations here where to look for jarfiles. */
|
|
|
|
includeJarsFrom = [];
|
|
|
|
|
|
|
|
/** By default teavmc taskd epends on javaCompile task, unless this varaibale is true. */
|
|
|
|
skipJavaCompile = false;
|
|
|
|
}
|