[haxe] generate project.xml for openfl build

This commit is contained in:
2018-04-05 11:33:29 +03:00
parent 99a9f5638c
commit f94eb8745c
3 changed files with 47 additions and 35 deletions

18
template/project.xml Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<meta title="<%-title%>" package="<%-pack%>" company="<%-company%>"/>
<app main="<%-main%>" path="<%-buildDir%>" file="<%-outputFile%>"/>
<% cp.forEach(function(item) { %>
<source path="<%-item%>"/><% }); %>
<% asset.forEach(function(item) { %>
<assets path="<%-item%>" rename="<%-item.split('/').pop()%>" include="*"/><% }); %>
<% lib.forEach(function(item) { %>
<haxelib name="<%-item.name%>" version="<%-item.version%>"/><% }); %>
<window fps="30"/>
<window width="1024" height="768" unless="html5"/>
<haxeflag name="-D" value="swf-gpu"/>
<haxeflag name="-D" value="native-trace"/>
<haxeflag name="-dce" value="no"/>
</project>