Build a Flash library like we build Java libraries. Tidied up some other bits

along the way.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@418 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2008-02-18 18:34:36 +00:00
parent 7e804e60c5
commit ffde63b3a5
5 changed files with 137 additions and 21 deletions
+52
View File
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<!-- build configuration -->
<project name="nenya-checks" basedir=".">
<!-- checks the availability of certain libraries -->
<target name="check-available">
<available property="lwjgl.present"
classname="org.lwjgl.LWJGLException" classpathref="classpath"/>
<echo level="info" message="Have LWJGL: ${lwjgl.present}"/>
<available property="jme.present"
classname="com.jme.scene.Node" classpathref="classpath"/>
<echo level="info" message="Have JME: ${jme.present}"/>
<available property="jme-bui.present"
classname="com.jmex.bui.BWindow" classpathref="classpath"/>
<echo level="info" message="Have JME-BUI: ${jme-bui.present}"/>
<available property="jme-sound.present"
classname="com.jmex.sound.openAL.SoundSystem" classpathref="classpath"/>
<echo level="info" message="Have OpenAL: ${jme-sound.present}"/>
<available property="jl.present"
classname="javazoom.jl.decoder.Decoder" classpathref="classpath"/>
<echo level="info" message="Have JL: ${jl.present}"/>
<available property="xml-writer.present"
classname="com.megginson.sax.DataWriter" classpathref="classpath"/>
<echo level="info" message="Have XML Writer: ${xml-writer.present}"/>
<condition property="build.jme">
<and>
<isset property="jme.present"/>
<isset property="jme-bui.present"/>
</and>
</condition>
<condition property="build.openal">
<and>
<isset property="lwjgl.present"/>
<isset property="jme-sound.present"/>
<isset property="jl.present"/>
</and>
</condition>
<condition property="build.xml">
<isset property="xml-writer.present"/>
</condition>
</target>
</project>