Add entry class to non-template displalay command

This commit is contained in:
Joshua Granick
2019-02-28 11:58:38 -08:00
parent 44bf137f9b
commit 00e3c85b58
9 changed files with 37 additions and 28 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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";
@@ -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;
}
}

View File

@@ -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";
@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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";
@@ -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;
}
}