[haxe] generate project.xml for openfl build
This commit is contained in:
18
template/project.xml
Normal file
18
template/project.xml
Normal 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>
|
||||
Reference in New Issue
Block a user