big update
This commit is contained in:
9
template/project.hxml
Normal file
9
template/project.hxml
Normal file
@@ -0,0 +1,9 @@
|
||||
<% sources.forEach(function(item) { %>
|
||||
-cp "<%=item%>"<% }); %>
|
||||
<% libs.forEach(function(item) { %>
|
||||
-lib <%=item.name%>:<%=item.version.split('@').shift()%><% }); %>
|
||||
<% macros.forEach(function(item) { %>
|
||||
--macro "<%=item%>"<% }); %>
|
||||
|
||||
-main <%=main%>
|
||||
-<%=out%> "<%=buildDir%>/<%=platform%>/bin/<%=name%><%=ext%>"
|
||||
@@ -1,13 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<meta title="<%-meta.title%>" package="<%-meta.pack%>" company="<%-meta.company%>"/>
|
||||
<app main="<%-main%>" path="<%-buildDir%>" file="<%-name%>"/>
|
||||
<meta title="<%=meta.title%>" package="<%=meta.pack%>" version="<%=meta.version%>" company="<%=meta.company%>"/>
|
||||
<app main="<%=main%>" path="<%=buildDir%>" file="<%=name%>"/>
|
||||
<% sources.forEach(function(item) { %>
|
||||
<source path="<%-item%>"/><% }); %>
|
||||
<source path="<%=item%>"/><% }); %>
|
||||
<% assets.forEach(function(item) { %>
|
||||
<assets path="<%-item%>" rename="<%-item.split('/').pop()%>" include="*"/><% }); %>
|
||||
<assets path="<%=item%>" rename="<%=item.split('/').pop()%>" include="*"/><% }); %>
|
||||
<% libs.forEach(function(item) { %>
|
||||
<haxelib name="<%-item.name%>" version="<%-item.version.split('@').shift()%>"/><% }); %>
|
||||
<haxelib name="<%=item.name%>" version="<%=item.version.split('@').shift()%>"/><% }); %>
|
||||
<% macros.forEach(function(item) { %>
|
||||
<haxeflag name="--macro" value="<%=item%>"/><% }); %>
|
||||
|
||||
<window fps="30"/>
|
||||
<window width="1024" height="768" unless="html5"/>
|
||||
|
||||
Reference in New Issue
Block a user