|
@@ -65,6 +65,7 @@ class Hl {
|
|
|
|
|
|
runCommand(hlBinary, ["--version"]);
|
|
runCommand(hlBinary, ["--version"]);
|
|
addToPATH(hlBuildBinDir);
|
|
addToPATH(hlBuildBinDir);
|
|
|
|
+ addToLIBPATH(hlBuildBinDir);
|
|
|
|
|
|
haxelibDev("hashlink", '$hlSrc/other/haxelib/');
|
|
haxelibDev("hashlink", '$hlSrc/other/haxelib/');
|
|
}
|
|
}
|
|
@@ -75,6 +76,23 @@ class Hl {
|
|
runCommand("haxe", ["compile-hl.hxml"].concat(args));
|
|
runCommand("haxe", ["compile-hl.hxml"].concat(args));
|
|
runCommand(hlBinary, ["bin/unit.hl"]);
|
|
runCommand(hlBinary, ["bin/unit.hl"]);
|
|
|
|
|
|
|
|
+ runCommand("haxe", ["compile-hlc.hxml"].concat(args));
|
|
|
|
+ switch (systemName) {
|
|
|
|
+ case "Linux" if (isCi()):
|
|
|
|
+ runCommand("gcc", [
|
|
|
|
+ "-o", "bin/hlc/main",
|
|
|
|
+ "bin/hlc/main.c",
|
|
|
|
+ "-Ibin/hlc/",
|
|
|
|
+ '-I$hlSrc/src',
|
|
|
|
+ '$hlBuildBinDir/fmt.hdll',
|
|
|
|
+ "-lm",
|
|
|
|
+ '-L$hlBuildBinDir', "-lhl"
|
|
|
|
+ ]);
|
|
|
|
+ runCommand("bin/hlc/main", []);
|
|
|
|
+ case _:
|
|
|
|
+ // TODO hl/c for mac/windows
|
|
|
|
+ }
|
|
|
|
+
|
|
changeDirectory(threadsDir);
|
|
changeDirectory(threadsDir);
|
|
runCommand("haxe", ["build.hxml", "-hl", "export/threads.hl"]);
|
|
runCommand("haxe", ["build.hxml", "-hl", "export/threads.hl"]);
|
|
runCommand(hlBinary, ["export/threads.hl"]);
|
|
runCommand(hlBinary, ["export/threads.hl"]);
|
|
@@ -88,6 +106,16 @@ class Hl {
|
|
// TODO: check output like misc tests do
|
|
// TODO: check output like misc tests do
|
|
runCommand(hlBinary, ["eventLoop.hl"]);
|
|
runCommand(hlBinary, ["eventLoop.hl"]);
|
|
|
|
|
|
|
|
+ changeDirectory(getMiscSubDir("hl/reserved-keywords"));
|
|
|
|
+ runCommand("haxe", ["compile.hxml"]);
|
|
|
|
+ switch (systemName) {
|
|
|
|
+ case "Linux" if (isCi()):
|
|
|
|
+ runCommand("gcc", ["-o", "bin/test", "bin/test.c", "-Ibin/", '-I$hlSrc/src', '-L$hlBuildBinDir', "-lhl"]);
|
|
|
|
+ runCommand("bin/test", []);
|
|
|
|
+ case _:
|
|
|
|
+ // TODO hl/c for mac/windows
|
|
|
|
+ }
|
|
|
|
+
|
|
changeDirectory(miscHlDir);
|
|
changeDirectory(miscHlDir);
|
|
runCommand("haxe", ["run.hxml"]);
|
|
runCommand("haxe", ["run.hxml"]);
|
|
}
|
|
}
|