Skip to content

Commit

Permalink
Add entry class to non-template displalay command
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Feb 28, 2019
1 parent 44bf137 commit 00e3c85
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 28 deletions.
7 changes: 4 additions & 3 deletions tools/platforms/AndroidPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ class AndroidPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.cpp = "_";
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/EmscriptenPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ class EmscriptenPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.cpp = "_";
hxml.define("webgl");
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
9 changes: 5 additions & 4 deletions tools/platforms/FlashPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ class FlashPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
hxml.swfVersion = context.SWF_VERSION;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.swf = "_.swf";
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.swfVersion = context.SWF_VERSION;
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/HTML5Platform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,16 @@ class HTML5Platform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.js = "_";
hxml.define("html");
if (targetFlags.exists("electron"))
{
hxml.define("electron");
}
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/IOSPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,12 @@ class IOSPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.cpp = "_";
hxml.define("iphone");
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/LinuxPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ class LinuxPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
switch (targetType)
{
case "hl": hxml.hl = "_.hl";
Expand All @@ -270,7 +270,8 @@ class LinuxPlatform extends PlatformTarget
case "nodejs": hxml.js = "_.js";
default: hxml.cpp = "_";
}
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ class MacPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
switch (targetType)
{
case "hl": hxml.hl = "_.hl";
Expand All @@ -245,7 +245,8 @@ class MacPlatform extends PlatformTarget
case "nodejs": hxml.js = "_.js";
default: hxml.cpp = "_";
}
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/TVOSPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,13 @@ class TVOSPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
hxml.cpp = "_";
hxml.define("tvos");
hxml.define("appletv");
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tools/platforms/WindowsPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ class WindowsPlatform extends PlatformTarget
else
{
var context = project.templateContext;
var hxml = new HXML();
hxml.noOutput = true;
var hxml = HXML.fromString(context.HAXE_FLAGS);
hxml.addClassName(context.APP_MAIN);
switch (targetType)
{
case "hl": hxml.hl = "_.hl";
Expand All @@ -435,7 +435,8 @@ class WindowsPlatform extends PlatformTarget
case "nodejs", "winjs": hxml.js = "_.js";
default: hxml.cpp = "_";
}
return context.HAXE_FLAGS + "\n" + hxml.toString();
hxml.noOutput = true;
return hxml;
}
}

Expand Down

0 comments on commit 00e3c85

Please sign in to comment.