Add entry class to non-template displalay command
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user