Add 'lime rebuild hxcpp' and 'lime rebuild haxelib' support

This commit is contained in:
Joshua Granick
2017-05-22 19:33:19 -07:00
parent 1db50e4c2d
commit c2633d38ef

View File

@@ -228,7 +228,22 @@ class CommandLineTools {
if (haxelib != null) {
var haxelibPath = HaxelibHelper.getPath (haxelib, true);
hxmlPath = PathHelper.combine (haxelibPath, "rebuild.hxml");
switch (haxelib.name) {
case "hxcpp":
hxmlPath = PathHelper.combine (haxelibPath, "tools/hxcpp/compile.hxml");
case "haxelib":
hxmlPath = PathHelper.combine (haxelibPath, "../client.hxml");
default:
hxmlPath = PathHelper.combine (haxelibPath, "rebuild.hxml");
}
}
@@ -295,7 +310,7 @@ class CommandLineTools {
if (hxmlPath != null && FileSystem.exists (hxmlPath)) {
ProcessHelper.runCommand (Path.directory (hxmlPath), "haxe", [ "rebuild.hxml" ]);
ProcessHelper.runCommand (Path.directory (hxmlPath), "haxe", [ Path.withoutDirectory (hxmlPath) ]);
}