Skip to content

Commit

Permalink
Missing build files accidentally excluded because of a buggy .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
dionjwa committed Feb 8, 2012
1 parent 84bbbc4 commit 108b5c7
Show file tree
Hide file tree
Showing 11 changed files with 203 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.xml
@@ -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>
7 changes: 7 additions & 0 deletions demo/bitmapRendering/buildflash.hxml
@@ -0,0 +1,7 @@
../base-flash.hxml

-D debug

-swf-lib ../../lib/MinimalComps.swf

-swf9 build/demo.swf
4 changes: 4 additions & 0 deletions demo/bitmapRendering/buildjs.hxml
@@ -0,0 +1,4 @@
../base-js.hxml

-js build/demo.js
-main Demo
19 changes: 19 additions & 0 deletions demo/buildall.py
@@ -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)
40 changes: 40 additions & 0 deletions demo/screennavigation/build.xml
@@ -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>
28 changes: 28 additions & 0 deletions demo/screennavigation/etc/buildcanvas.hxml
@@ -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/
17 changes: 17 additions & 0 deletions demo/screennavigation/etc/buildcss.hxml
@@ -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
25 changes: 25 additions & 0 deletions demo/screennavigation/etc/buildflash.hxml
@@ -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/
16 changes: 16 additions & 0 deletions demo/svgui/buildcanvas.hxml
@@ -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/

14 changes: 14 additions & 0 deletions demo/svgui/buildcss.hxml
@@ -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/
17 changes: 17 additions & 0 deletions demo/svgui/buildflash.hxml
@@ -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.