Add 'lime rebuild hxcpp' and 'lime rebuild haxelib' support
This commit is contained in:
@@ -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) ]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user