Initial improvements to 'rebuild' command and '-rebuild' flag, walking through actual project dependencies

This commit is contained in:
Joshua Granick
2014-11-19 14:42:34 -08:00
parent 534a1f8c1e
commit b46c781b4c
7 changed files with 71 additions and 17 deletions

View File

@@ -119,10 +119,15 @@ class TizenPlatform extends PlatformTarget {
public override function rebuild ():Void {
var device = [ "-Dtizen" ];
var simulator = [ "-Dtizen", "-Dsimulator" ];
var device = (command == "rebuild" || !targetFlags.exists ("simulator"));
var simulator = (command == "rebuild" || targetFlags.exists ("simulator"));
CPPHelper.rebuild (project, [ device, simulator ]);
var commands = [];
if (device) commands.push ([ "-Dtizen" ]);
if (simulator) commands.push ([ "-Dtizen", "-Dsimulator" ]);
CPPHelper.rebuild (project, commands);
}