Exclude the openal package unless the lwjgl libraries are present.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3671 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-08-05 07:32:33 +00:00
parent 064f18deb7
commit 237419b179
2 changed files with 21 additions and 0 deletions
+8
View File
@@ -23,6 +23,8 @@
<!-- checks the availability of certain libraries -->
<target name="check-available">
<available property="lwjgl.present"
classname="org.lwjgl.LWJGLException" classpathref="classpath"/>
<available property="jme.present"
classname="com.jme.scene.Node" classpathref="classpath"/>
<available property="jme-bui.present"
@@ -33,6 +35,11 @@
<isset property="jme-bui.present"/>
</and>
</condition>
<condition property="build.openal">
<and>
<isset property="lwjgl.present"/>
</and>
</condition>
</target>
<!-- generates additional methods for distributed object classes -->
@@ -102,6 +109,7 @@
debug="on" optimize="off" deprecation="off">
<classpath refid="classpath"/>
<exclude name="com/threerings/jme/**" unless="build.jme"/>
<exclude name="com/threerings/openal/**" unless="build.openal"/>
</javac>
</target>