Some changes to improve hscript

This commit is contained in:
NeeEoo
2023-06-15 14:44:31 +02:00
parent 92176023db
commit f34e430ae7
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -116,10 +116,14 @@
<!-- Comment this out to disable GitHub API integration !--> <!-- Comment this out to disable GitHub API integration !-->
<define name="GITHUB_API" unless="web || hl"/> <define name="GITHUB_API" unless="web || hl"/>
<!-- Comment this off to prevent unused classes from being compiled. <!-- Comment this out to prevent unused classes from being compiled.
Reduces compilation time at the cost of limited HScript flexibility. !--> Reduces compilation time at the cost of limited HScript flexibility. !-->
<define name="COMPILE_ALL_CLASSES" /> <define name="COMPILE_ALL_CLASSES" />
<!-- Comment this out to prevent extending classes in hscript.
Reduces compilation time at the cost of limited HScript flexibility. !-->
<define name="CUSTOM_CLASSES" />
<!-- Comment this out to disable multithreading !--> <!-- Comment this out to disable multithreading !-->
<haxedef name="ALLOW_MULTITHREADING" unless="web || flash" /> <haxedef name="ALLOW_MULTITHREADING" unless="web || flash" />
@@ -21,12 +21,14 @@ class ScriptsMacro {
"flixel.addons.util", "flixel.addons.util",
// OTHER LIBRARIES & STUFF // OTHER LIBRARIES & STUFF
"away3d", "flx3d", #if sys "sys", #end "openfl.net", "away3d", "flx3d", #if sys "sys", #end "openfl.net",
"funkin.backend.system.net", "funkin.backend.system.net", "format",
// BASE HAXE // BASE HAXE
"DateTools", "EReg", "Lambda", "StringBuf", "haxe.crypto", "haxe.display", "haxe.exceptions", "haxe.extern", "scripting" "DateTools", "EReg", "Lambda", "StringBuf", "haxe.crypto", "haxe.display", "haxe.exceptions", "haxe.extern", "scripting"
]) ])
Compiler.include(inc); Compiler.include(inc);
Compiler.exclude("format.neko");
// FOR ABSTRACTS // FOR ABSTRACTS
Compiler.addGlobalMetadata('haxe.xml', '@:build(hscript.UsingHandler.build())'); Compiler.addGlobalMetadata('haxe.xml', '@:build(hscript.UsingHandler.build())');
Compiler.addGlobalMetadata('haxe.CallStack', '@:build(hscript.UsingHandler.build())'); Compiler.addGlobalMetadata('haxe.CallStack', '@:build(hscript.UsingHandler.build())');