Permalink
Browse files

Missing build files accidentally excluded because of a buggy .gitignore.

  • Loading branch information...
1 parent 84bbbc4 commit 108b5c7a6f9f54b1f84abc42c3b7b9cfd6d0d0a4 @dionjwa committed Feb 8, 2012
View
@@ -0,0 +1,16 @@
+
+<project name="hydrax" default="build" basedir=".">
+ <description>
+ Useful build tasks for hydrax based game projects.
+ </description>
+
+ <target name="updatejslibs" description="Downloads latest versions of js libs">
+ <exec executable="wget" >
+ <arg value="-O"/>
+ <arg value="lib/js/modernizr.js"/>
+ <arg value="https://raw.github.com/Modernizr/Modernizr/master/modernizr.js"/>
+ </exec>
+ </target>
+
+
+</project>
@@ -0,0 +1,7 @@
+../base-flash.hxml
+
+-D debug
+
+-swf-lib ../../lib/MinimalComps.swf
+
+-swf9 build/demo.swf
@@ -0,0 +1,4 @@
+../base-js.hxml
+
+-js build/demo.js
+-main Demo
View
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# calls haxe <build file> on all build files in the root demo directories
+
+import os, os.path, sys, re
+
+os.chdir(os.path.dirname(__file__))
+
+root = os.getcwd()
+
+for f in os.listdir(root):
+ if os.path.isdir(os.path.join(root, f)):
+ print "Project " + f
+
+ for projectFile in os.listdir(os.path.join(root, f)):
+ os.chdir(os.path.join(root, f))
+
+ if projectFile.endswith(".hxml") and projectFile.find("cpp") == -1:
+ print " " + projectFile
+ os.system("haxe " + projectFile)
@@ -0,0 +1,40 @@
+
+<project name="screennavigation" default="buildcanvas" basedir=".">
+ <description>
+ Build file for the game project. Contains targets to all relevant scripts.
+ </description>
+ <import file="../../../hydrax/build.xml" />
+ <property file="build.properties" />
+ <!--<property file="config.properties" />-->
+ <!-- set global properties for this build -->
+ <property name="src" location="${basedir}/src"/>
+ <property name="hxml" location="${basedir}/etc"/>
+ <property name="bin" location="${basedir}/bin"/>
+ <property name="etc" location="${basedir}/etc"/>
+ <property name="build" location="${basedir}/build"/>
+ <property name="haxe" value="/usr/bin/haxe"/>
+ <property name="neko" value="/usr/bin/neko"/>
+
+ <target name="init">
+ <!-- Create the time stamp -->
+ <tstamp/>
+ <!-- Copy resources -->
+ <mkdir dir="${build}"/>
+
+ </target>
+
+ <target name="buildflash" depends="init" >
+ <echo message="Building flash client..."/>
+ <exec executable="haxe">
+ <arg value="${hxml}/buildflash.hxml"/>
+ </exec>
+ </target>
+
+ <target name="buildcanvas" depends="init" >
+ <echo message="Building HTML5 canvas client..."/>
+ <exec executable="haxe">
+ <arg value="${hxml}/buildcanvas.hxml"/>
+ </exec>
+ </target>
+
+</project>
@@ -0,0 +1,28 @@
+-D use_rtti_doc
+-D debug
+-D haxedev
+-D use_html5_canvas_as_default_scene_layer
+# -D debug_graphics
+
+-lib hydrax
+-lib jQueryExtern
+-lib html5
+# -lib jeash
+
+-cp src
+-cp rsrc
+
+--remap flash:jeash
+-js canvas/haxe.js
+
+-main Demo
+
+-cmd cp etc/indexcanvas.html canvas/index.html
+
+--next
+
+-cmd cp etc/indexcanvas.xhtml canvas/index.xhtml
+
+--next
+
+-cmd cp -r rsrc canvas/
@@ -0,0 +1,17 @@
+-D use_rtti_doc
+-D debug
+-D haxedev
+
+-cp src
+-lib hydrax
+-lib jQueryExtern
+
+--remap flash:jeash
+-js css/haxe.js
+
+-main Demo
+
+--next
+-cmd cp indexcss.xhtml css/index.xhtml
+--next
+-cmd open css/index.xhtml
@@ -0,0 +1,25 @@
+#build file
+-D use_rtti_doc
+-D debug
+-D enable_svgweb
+-D haxedev
+
+-lib hydrax
+-lib gm2d
+
+-cp src
+-cp rsrc
+
+-swf-lib ../../lib/svgweb/svgweb.swf
+-swf-lib rsrc/resources.swf
+-swf-version 10
+-swf flash/demo.swf
+-swf-header 970:850:30:FFFFFF
+
+-main Demo
+
+-cmd cp etc/indexflash.xhtml flash/index.xhtml
+
+--next
+
+-cmd cp -r rsrc canvas/
@@ -0,0 +1,16 @@
+../base-js.hxml
+
+-D debug
+-D haxedev
+-D canvas
+
+-js canvas/demo.js
+
+-main Demo
+
+-cmd cp indexcanvas.xhtml canvas/index.xhtml
+
+--next
+
+-cmd cp src/js/* canvas/
+
View
@@ -0,0 +1,14 @@
+../base-js.hxml
+
+-D debug
+-D haxedev
+
+-js css/demo.js
+
+-main Demo
+
+-cmd cp indexcss.xhtml css/index.xhtml
+
+--next
+
+-cmd cp src/js/* css/
View
@@ -0,0 +1,17 @@
+#build file
+-D use_rtti_doc
+-D debug
+-D enable_svgweb
+-D haxedev
+
+-lib hydrax
+-cp src
+
+-swf-lib ../../lib/svgweb/svgweb.swf
+-swf-version 10
+-swf flash/demo.swf
+-swf-header 970:850:30:FFFFFF
+
+-main Demo
+
+-cmd cp indexflash.xhtml flash/index.xhtml

0 comments on commit 108b5c7

Please sign in to comment.