Merge HXProject defaults and exclude architectures at end
This commit is contained in:
@@ -3,6 +3,7 @@ package;
|
||||
import hxp.HXML;
|
||||
import hxp.Path;
|
||||
import hxp.System;
|
||||
import lime.tools.Architecture;
|
||||
import lime.tools.AssetHelper;
|
||||
import lime.tools.AssetType;
|
||||
import lime.tools.CPPHelper;
|
||||
@@ -24,6 +25,78 @@ class TizenPlatform extends PlatformTarget
|
||||
{
|
||||
super(command, _project, targetFlags);
|
||||
|
||||
var defaults = new HXProject();
|
||||
|
||||
defaults.meta = {
|
||||
title: "MyApplication",
|
||||
description: "",
|
||||
packageName: "com.example.myapp",
|
||||
version: "1.0.0",
|
||||
company: "",
|
||||
companyUrl: "",
|
||||
buildNumber: null,
|
||||
companyId: ""
|
||||
};
|
||||
|
||||
defaults.app =
|
||||
{
|
||||
main: "Main",
|
||||
file: "MyApplication",
|
||||
path: "bin",
|
||||
preloader: "",
|
||||
swfVersion: 17,
|
||||
url: "",
|
||||
init: null
|
||||
};
|
||||
|
||||
defaults.window =
|
||||
{
|
||||
width: 800,
|
||||
height: 600,
|
||||
parameters: "{}",
|
||||
background: 0xFFFFFF,
|
||||
fps: 30,
|
||||
hardware: true,
|
||||
display: 0,
|
||||
resizable: true,
|
||||
borderless: false,
|
||||
orientation: Orientation.AUTO,
|
||||
vsync: false,
|
||||
fullscreen: false,
|
||||
allowHighDPI: true,
|
||||
alwaysOnTop: false,
|
||||
antialiasing: 0,
|
||||
allowShaders: true,
|
||||
requireShaders: false,
|
||||
depthBuffer: true,
|
||||
stencilBuffer: true,
|
||||
colorDepth: 32,
|
||||
maximized: false,
|
||||
minimized: false,
|
||||
hidden: false,
|
||||
title: ""
|
||||
};
|
||||
|
||||
defaults.architectures = [Architecture.ARMV6];
|
||||
defaults.window.width = 0;
|
||||
defaults.window.height = 0;
|
||||
defaults.window.fullscreen = true;
|
||||
defaults.window.requireShaders = true;=
|
||||
defaults.window.allowHighDPI = false;
|
||||
|
||||
for (i in 1...project.windows.length)
|
||||
{
|
||||
defaults.windows.push(defaults.window);
|
||||
}
|
||||
|
||||
defaults.merge(project);
|
||||
project = defaults;
|
||||
|
||||
for (excludeArchitecture in project.excludeArchitectures)
|
||||
{
|
||||
project.architectures.remove(excludeArchitecture);
|
||||
}
|
||||
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("tizen.output-directory", "tizen"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user