Added pre-build and post-build callbacks, as described in issue #612. (#731)

This commit is contained in:
player-03
2016-06-09 06:19:43 -04:00
committed by Valentin Lemière
parent 668f59ae1c
commit f0c605d091
6 changed files with 157 additions and 0 deletions

View File

@@ -511,6 +511,12 @@ class CommandLineTools {
if (project.targetHandlers.exists (Std.string (project.target))) {
if (command == "build" || command == "test") {
CommandHelper.executeCommands (project.preBuildCallbacks);
}
LogHelper.info ("", LogHelper.accentColor + "Using target platform: " + Std.string (project.target).toUpperCase () + "\x1b[0m");
var handler = project.targetHandlers.get (Std.string (project.target));
@@ -551,6 +557,12 @@ class CommandLineTools {
} catch (e:Dynamic) {}
if (command == "build" || command == "test") {
CommandHelper.executeCommands (project.postBuildCallbacks);
}
} else {
var platform:PlatformTarget = null;