lwjgl/build.xml

509 lines
21 KiB
XML
Raw Normal View History

2004-10-17 17:16:40 -04:00
<project name="LWJGL" default="compile" basedir=".">
2003-11-13 18:16:58 -05:00
<!-- ================================================================== -->
<!-- Global properties for build -->
2004-10-17 17:16:40 -04:00
<!-- ================================================================== -->
<property name="lwjgl.src" value="./src" />
<property name="lwjgl.src.native" value="${lwjgl.src}/native" />
<property name="lwjgl.src.headers" value="${lwjgl.src.native}/common" />
2004-10-17 17:16:40 -04:00
<property name="lwjgl.bin" value="./bin" />
<property name="lwjgl.lib" value="./libs" />
<property name="lwjgl.dist" value="./dist" />
<property name="lwjgl.docs" value="./doc" />
<property name="lwjgl.temp" value="./temp" />
<property name="lwjgl.res" value="./res" />
2005-01-25 01:31:35 -05:00
<property name="lwjgl.version" value="0.95" />
2004-10-17 17:16:40 -04:00
<!-- ================================================================== -->
2003-11-13 18:16:58 -05:00
<!-- Filesets used for targets -->
<!-- ================================================================== -->
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Files to include in the lwjgl.jar file -->
<fileset id="lwjgl.fileset" dir="${lwjgl.bin}">
2004-10-17 17:16:40 -04:00
<include name="**" />
<exclude name="**.*" />
<exclude name="org/lwjgl/fmod3/**" />
<exclude name="org/lwjgl/test/**" />
<exclude name="org/lwjgl/util/**" />
2004-12-13 12:28:08 -05:00
<exclude name="org/lwjgl/devil/**" />
2004-10-17 17:16:40 -04:00
<exclude name="org/lwjgl/examples/**" />
</fileset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in the lwjgl_test.jar file -->
<fileset id="lwjgl_test.fileset" dir="${lwjgl.bin}">
2004-10-17 17:16:40 -04:00
<exclude name="**.*" />
<include name="org/lwjgl/test/**" />
<include name="org/lwjgl/examples/**" />
</fileset>
2004-10-17 17:16:40 -04:00
<!-- Files to include in the lwjgl_util.jar file -->
<fileset id="lwjgl_util.fileset" dir="${lwjgl.bin}">
2004-10-17 17:16:40 -04:00
<exclude name="**.*" />
<include name="org/lwjgl/util/**" />
</fileset>
2004-09-06 12:36:08 -04:00
2004-06-09 16:02:10 -04:00
<!-- Files to include in the lwjgl_fmod3.jar file -->
<fileset id="lwjgl_fmod3.fileset" dir="${lwjgl.bin}">
2004-10-17 17:16:40 -04:00
<exclude name="**.*" />
<include name="org/lwjgl/fmod3/**" />
</fileset>
<!-- Files to include in the lwjgl_devil.jar file -->
<fileset id="lwjgl_devil.fileset" dir="${lwjgl.bin}">
<exclude name="**.*"/>
<include name="org/lwjgl/devil/**"/>
</fileset>
2003-11-13 18:16:58 -05:00
<!-- Files to make Javadoc from -->
<fileset id="lwjgl.javadoc.fileset" dir="${lwjgl.src}/java">
<include name="**/*.java" />
2004-10-17 17:16:40 -04:00
<exclude name="org/lwjgl/test/**" />
2005-01-25 16:26:18 -05:00
<exclude name="org/lwjgl/examples/**" />
2004-10-17 17:16:40 -04:00
</fileset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in common package -->
<patternset id="lwjgl-common.fileset">
2004-10-17 17:16:40 -04:00
<include name="*.jar" />
<include name="CREDITS" />
<include name="LICENSE" />
<include name="README" />
2004-12-13 12:11:37 -05:00
<include name="lwjgl_hidden_switches.text" />
2004-10-17 17:16:40 -04:00
</patternset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in win32 package -->
<patternset id="lwjgl-win32.fileset">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
<include name="lwjgl.dll" />
<include name="lwjgl-fmod3.dll" />
2004-12-13 12:28:08 -05:00
<include name="lwjgl-devil.dll" />
2004-10-17 17:16:40 -04:00
<include name="lwjglaudio.dll" />
</patternset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in linux, glibc2.3 package -->
2003-11-25 17:34:07 -05:00
<patternset id="lwjgl-linux.fileset">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
<include name="liblwjgl.so" />
<include name="liblwjgl-fmod3.so" />
2004-12-13 12:28:08 -05:00
<include name="liblwjgl-devil.so" />
2004-10-17 17:16:40 -04:00
<include name="libopenal.so" />
</patternset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in mac os x package -->
<patternset id="lwjgl-macosx.fileset">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
<include name="liblwjgl.jnilib" />
<include name="liblwjgl-fmod3.jnilib" />
2004-12-13 12:28:08 -05:00
<include name="liblwjgl-devil.jnilib" />
2004-10-17 17:16:40 -04:00
<include name="openal.dylib" />
</patternset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in source distribution -->
<fileset id="lwjgl.source.fileset" dir=".">
2004-10-17 17:16:40 -04:00
<include name="build.xml" />
<include name="src/**" />
<include name="platform_build/**" />
<exclude name="**/*CVS*" />
<exclude name="native/projb/**" />
</fileset>
2003-11-13 18:16:58 -05:00
<!-- Files to include in media distribution -->
<fileset id="lwjgl.media.fileset" dir="${lwjgl.res}">
2004-10-17 17:16:40 -04:00
<include name="**" />
<exclude name="**/*CVS*" />
2003-11-13 18:16:58 -05:00
</fileset>
2004-10-17 17:16:40 -04:00
<!-- ================================================================== -->
2003-11-13 18:16:58 -05:00
<!-- Everything below this line is targets. -->
<!-- Do not modify, unless you know what you're doing -->
2004-10-17 17:16:40 -04:00
<!-- ================================================================== -->
<!-- ================================================================== -->
2003-11-22 17:30:37 -05:00
<!-- Initialize build -->
2004-10-17 17:16:40 -04:00
<!-- ================================================================== -->
2004-09-06 12:36:08 -04:00
<target name="-initialize">
2004-10-17 17:16:40 -04:00
<mkdir dir="${lwjgl.bin}" taskname="initialiazing bin folder" />
<mkdir dir="${lwjgl.lib}" taskname="initialiazing lib folder" />
<mkdir dir="${lwjgl.dist}" taskname="initialiazing dist folder" />
<mkdir dir="${lwjgl.docs}/javadoc" taskname="initialiazing docs folder" />
<mkdir dir="${lwjgl.res}" taskname="initialiazing res folder" />
<mkdir dir="${lwjgl.temp}" taskname="initialiazing temp folder" />
2003-11-22 17:30:37 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Performs all the tasks needed for a distribution of LWJGL -->
2004-09-06 12:36:08 -04:00
<target name="all" description="Compile. Make jars. Javadoc and distribute">
2004-10-17 17:16:40 -04:00
<!-- Though we perform all targets, we do it in somewhat mixed. -->
<!-- This is because we want the 'distribution_application' target to be -->
<!-- executed as soon as possible, since this target is most likely to fail. -->
<!-- That way we don't spend time doing javadocs, if the 'distribution_application' -->
<!-- target is going to fail anyway. However we cannot call the 'distribution' before -->
<!-- the javadoc target, since the 'distribution' target will try to create the javadoc -->
<!-- archive. -->
<antcall target="clean" />
<antcall target="-initialize" />
<antcall target="compile" />
<antcall target="compile_native" />
<antcall target="jars" />
2004-10-17 17:16:40 -04:00
<antcall target="-distribution_application" />
<antcall target="javadoc" />
<antcall target="-distribution_javadoc" />
<antcall target="-distribution_source" />
<antcall target="-internal_clean" />
2003-11-13 18:16:58 -05:00
</target>
<!-- Performs all the tasks needed for a distribution of LWJGL -->
<target name="non-javadoc-build" description="Compile. Make jars. Javadoc and distribute">
<!-- Though we perform all targets, we do it in somewhat mixed. -->
<!-- This is because we want the 'distribution_application' target to be -->
<!-- executed as soon as possible, since this target is most likely to fail. -->
<!-- That way we don't spend time doing javadocs, if the 'distribution_application' -->
<!-- target is going to fail anyway. However we cannot call the 'distribution' before -->
<!-- the javadoc target, since the 'distribution' target will try to create the javadoc -->
<!-- archive. -->
<antcall target="-initialize"/>
<antcall target="compile"/>
<antcall target="compile_native"/>
<antcall target="jars"/>
<antcall target="-distribution_application"/>
</target>
<!-- Performs all the tasks needed for a distribution of LWJGL -->
<target name="non-javadoc-rebuild" description="Compile. Make jars. Javadoc and distribute">
<!-- Though we perform all targets, we do it in somewhat mixed. -->
<!-- This is because we want the 'distribution_application' target to be -->
<!-- executed as soon as possible, since this target is most likely to fail. -->
<!-- That way we don't spend time doing javadocs, if the 'distribution_application' -->
<!-- target is going to fail anyway. However we cannot call the 'distribution' before -->
<!-- the javadoc target, since the 'distribution' target will try to create the javadoc -->
<!-- archive. -->
<antcall target="clean"/>
<antcall target="-initialize"/>
2004-10-22 22:32:40 -04:00
<antcall target="compile"/>
<antcall target="compile_native"/>
<antcall target="jars"/>
<antcall target="-distribution_application"/>
</target>
2003-11-13 18:16:58 -05:00
<!-- Cleans up any files created during the execution of this script -->
2004-09-06 12:36:08 -04:00
<target name="clean" description="Cleans the diectories controlled by this ant script">
2004-10-17 17:16:40 -04:00
<delete dir="${lwjgl.temp}" quiet="true" failonerror="false" taskname="cleaning temp folder" />
<delete dir="${lwjgl.dist}" quiet="true" failonerror="false" taskname="cleaning dist folder" />
<delete dir="${lwjgl.lib}" quiet="true" failonerror="false" taskname="cleaning libs folder" />
2004-10-17 17:16:40 -04:00
<delete dir="${lwjgl.docs}/javadoc" quiet="true" failonerror="false" taskname="cleaning javadoc folder" />
<delete dir="${lwjgl.bin}/org" quiet="true" failonerror="false" taskname="cleaning bin folder" />
2003-11-25 17:34:07 -05:00
<delete taskname="cleaning bin folder" failonerror="false">
2004-10-17 17:16:40 -04:00
<fileset dir="${lwjgl.bin}" includes="*.class" />
2003-11-13 18:16:58 -05:00
</delete>
</target>
2003-11-13 18:16:58 -05:00
<!-- Compiles the Java source code -->
2004-10-17 17:16:40 -04:00
<target name="compile" description="Compiles the java source code">
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/**.java" source="1.4" target="1.4" taskname="lwjgl" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/input/**" source="1.4" target="1.4" taskname="input" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/openal/**" source="1.4" target="1.4" taskname="openal" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/opengl/**" source="1.4" target="1.4" taskname="opengl" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/test/**" source="1.4" target="1.4" taskname="test" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/examples/**" source="1.4" target="1.4" taskname="examples" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/util/**" source="1.4" target="1.4" taskname="util" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/fmod3/**" source="1.4" target="1.4" taskname="fmod" />
<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/devil/**" source="1.4" target="1.4" taskname="devil"/>
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Compiles the native files -->
2004-10-17 17:16:40 -04:00
<target name="compile_native" depends="headers" description="Compiles the native files">
2003-11-13 18:16:58 -05:00
<!-- check each platform, and run their build target -->
2004-10-17 17:16:40 -04:00
<condition property="lwjgl.platform.windows">
<os family="windows" />
</condition>
<antcall target="-compile_native_win32" />
<condition property="lwjgl.platform.linux">
<os name="Linux" />
</condition>
<antcall target="-compile_native_linux" />
<condition property="lwjgl.platform.mac">
<os name="Mac OS X" />
</condition>
<antcall target="-compile_native_mac" />
</target>
<uptodate property="lwjgl.main.built" targetfile="${lwjgl.lib}/lwjgl.dll" >
<srcfiles dir= "${lwjgl.src.native}/common" includes="*.c*"/>
<srcfiles dir= "${lwjgl.src.native}/common/arb" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/common/nv" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/common/ext" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/common/ati" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/win32" includes="*.cpp"/>
</uptodate>
<uptodate property="lwjgl.fmod.built" targetfile="${lwjgl.lib}/lwjgl-fmod3.dll" >
<srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/common/fmod3" includes="*.c"/>
</uptodate>
<uptodate property="lwjgl.devil.built" targetfile="${lwjgl.lib}/lwjgl-devil.dll" >
<srcfiles dir= "${lwjgl.src.native}/common" includes="*.c"/>
<srcfiles dir= "${lwjgl.src.native}/common/devil" includes="*.c"/>
</uptodate>
2003-11-13 18:16:58 -05:00
<!-- Compiles LWJGL on Win32 platforms -->
2004-09-06 12:36:08 -04:00
<target name="-compile_native_win32" if="lwjgl.platform.windows">
2004-10-17 17:16:40 -04:00
<echo>Compiling Win32 LWJGL version</echo>
<antcall target="-compile_native_win32_main" />
<antcall target="-compile_native_win32_fmod" />
<antcall target="-compile_native_win32_devil" />
<!-- optimize using upx -->
<!-- <exec dir="${lwjgl.lib}" executable="upx">
<arg line="-9 -f win32/*.dll"/>
</exec> -->
<!-- copy to libs -->
</target>
<target name="-compile_native_win32_main" unless="lwjgl.main.built">
2004-09-06 12:36:08 -04:00
<!-- build main -->
<exec dir="platform_build/win32_ms_cmdline" executable="cmd.exe" failonerror="true">
2004-10-17 17:16:40 -04:00
<arg line="/c build.bat" />
2004-09-06 12:36:08 -04:00
</exec>
<move file="platform_build/win32_ms_cmdline/lwjgl.dll" tofile="${lwjgl.lib}/lwjgl.dll"/>
</target>
2004-10-17 17:16:40 -04:00
<target name="-compile_native_win32_fmod" unless="lwjgl.fmod.built">
2004-09-06 12:36:08 -04:00
<!-- build fmod -->
<exec dir="platform_build/win32_ms_cmdline" executable="cmd.exe" failonerror="true">
2004-10-17 17:16:40 -04:00
<arg line="/c build-fmod.bat" />
2004-09-06 12:36:08 -04:00
</exec>
<move file="platform_build/win32_ms_cmdline/lwjgl-fmod3.dll" tofile="${lwjgl.lib}/lwjgl-fmod3.dll"/>
</target>
<target name="-compile_native_win32_devil" unless="lwjgl.devil.built">
<!-- build devil -->
<exec dir="platform_build/win32_ms_cmdline" executable="cmd.exe" failonerror="true">
<arg line="/c build-devil.bat"/>
</exec>
<move file="platform_build/win32_ms_cmdline/lwjgl-devil.dll" tofile="${lwjgl.lib}/lwjgl-devil.dll"/>
</target>
2004-09-06 12:36:08 -04:00
<!-- Compiles LWJGL on Linux platforms -->
<target name="-compile_native_linux" if="lwjgl.platform.linux">
2003-11-13 18:16:58 -05:00
<echo>Compiling Linux LWJGL version</echo>
2003-11-25 17:34:07 -05:00
<apply executable="sh" dir="${lwjgl.src.native}">
2004-10-17 17:16:40 -04:00
<fileset dir="${lwjgl.src.native}">
<include name="build.sh" />
</fileset>
2003-11-25 17:34:07 -05:00
</apply>
2004-10-17 17:16:40 -04:00
<move file="${lwjgl.src.native}/.libs/liblwjgl.0.0.0" tofile="${lwjgl.lib}/liblwjgl.so" />
</target>
2003-11-13 18:16:58 -05:00
<!-- Compiles LWJGL on Mac OS X platforms -->
2005-01-25 15:50:44 -05:00
<target name="-compile_native_mac" if="lwjgl.platform.mac">
<echo>Checking for valid OpenAL install</echo>
<property name="openal.home" value="/projects/openal"/>
<available file="${openal.home}" type="dir" property="isValidOpenALHome"/>
<fail message="openal.home in build.xml in target compile_native_mac does not point to valid OpenAL install. Please change this to the location of your OpenAL install." unless="isValidOpenALHome"/>
<echo>Valid OpenAL install located</echo>
<echo>Compiling Mac OS X LWJGL version</echo>
<exec dir="${lwjgl.src.native}/macosx" executable="make" failonerror="true">
<env key="AL" path="${openal.home}" />
</exec>
<move file="${lwjgl.src.native}/macosx/liblwjgl.jnilib" tofile="${lwjgl.lib}/liblwjgl.jnilib" />
</target>
2004-10-17 17:16:40 -04:00
<!-- Packages the java files -->
<target name="jars">
2004-10-17 17:16:40 -04:00
<!-- Create lwjgl.jar -->
2003-11-13 18:16:58 -05:00
<jar destfile="${lwjgl.lib}/lwjgl.jar" taskname="lwjgl.jar">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl.fileset" />
2003-11-13 18:16:58 -05:00
</jar>
<!-- Create lwjgl.jar -->
<jar destfile="${lwjgl.lib}/lwjgl_devil.jar" taskname="lwjgl_devil.jar">
<fileset refid="lwjgl_devil.fileset"/>
</jar>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Create lwjgl_test.jar -->
<jar destfile="${lwjgl.lib}/lwjgl_test.jar" taskname="lwjgl_test.jar">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl_test.fileset" />
2003-11-13 18:16:58 -05:00
</jar>
2004-10-17 17:16:40 -04:00
<!-- Create lwjgl_util.jar -->
<jar destfile="${lwjgl.lib}/lwjgl_util.jar" taskname="lwjgl_util.jar">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl_util.fileset" />
</jar>
<!-- Create lwjgl_fmod.jar -->
2004-06-09 16:02:10 -04:00
<jar destfile="${lwjgl.lib}/lwjgl_fmod3.jar" taskname="lwjgl_fmod3.jar">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl_fmod3.fileset" />
</jar>
2004-10-26 15:50:06 -04:00
<!-- Create lwjgl_devil.jar -->
<jar destfile="${lwjgl.lib}/lwjgl_devil.jar" taskname="lwjgl_devil.jar">
<fileset refid="lwjgl_devil.fileset" />
</jar>
2004-10-17 17:16:40 -04:00
2004-09-06 16:08:26 -04:00
<!-- Create lwjgl_media.jar -->
<jar destfile="${lwjgl.lib}/lwjgl_media.jar" taskname="lwjgl_media.jar">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl.media.fileset" />
</jar>
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Creates the Javadoc -->
<target name="javadoc" description="Creates javadoc from java source code">
<javadoc destdir="${lwjgl.docs}/javadoc" author="true" version="true" use="true" source="1.4" windowtitle="LWJGL API">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl.javadoc.fileset" />
2003-11-13 18:16:58 -05:00
<doctitle><![CDATA[<h1>Lightweight Java Game Toolkit</h1>]]></doctitle>
2005-01-25 16:26:18 -05:00
<bottom><![CDATA[<i>Copyright &#169; 2002-2005 lwjgl.org. All Rights Reserved.</i>]]></bottom>
2003-11-13 18:16:58 -05:00
</javadoc>
2004-10-17 17:16:40 -04:00
</target>
2003-11-13 18:16:58 -05:00
<!-- Creates a distribution from the compiled files -->
<target name="-distribution" depends="jars">
2004-10-17 17:16:40 -04:00
<antcall target="-distribution_application" />
<antcall target="-distribution_javadoc" />
<antcall target="-distribution_source" />
<antcall target="-distribution_resources" />
<antcall target="-internal_clean" />
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Creates a build of LWJGL directly from CVS -->
2004-09-06 12:36:08 -04:00
<target name="cvsbuild" description="Builds lwjgl from cvs">
2003-11-13 18:16:58 -05:00
<!-- Check that files do not exist BEFORE doing the CVS build -->
2004-10-17 17:16:40 -04:00
<available file="LWJGL/build.xml" property="lwjgl.preexistingfiles" />
<available file="${lwjgl.src}/java/org/lwjgl/Sys.java" property="lwjgl.preexistingfiles" />
<fail if="lwjgl.preexistingfiles" message="Cannot perform webbuild from nonempty folder" />
2003-11-13 18:16:58 -05:00
<!-- checkout files and build using checked out buildfiles 'all' target -->
2004-10-17 17:16:40 -04:00
<cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:anonymous@cvs.sf.net:/cvsroot/java-game-lib" package="LWJGL/build.xml" dest="." />
<cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:anonymous@cvs.sf.net:/cvsroot/java-game-lib" package="LWJGL/src" dest="." />
<cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:anonymous@cvs.sf.net:/cvsroot/java-game-lib" package="LWJGL/doc" dest="." />
<ant dir="LWJGL" target="all" />
</target>
2003-11-13 18:16:58 -05:00
<!-- Generates the native headers from source files -->
2004-10-17 17:16:40 -04:00
<target name="headers" description="invokes javah on java classes" depends="compile">
<!-- platform specific classes -->
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/linux" force="yes">
<class name="org.lwjgl.opengl.LinuxDisplay" />
</javah>
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/win32" force="yes">
<class name="org.lwjgl.opengl.Win32Display" />
2005-01-20 17:51:28 -05:00
<class name="org.lwjgl.NativeSysImplementation" />
</javah>
2004-11-11 11:03:19 -05:00
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
<class name="org.lwjgl.opengl.MacOSXDisplay" />
</javah>
2004-10-17 17:16:40 -04:00
<!-- lwjgl -->
2003-11-13 18:16:58 -05:00
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}" force="yes">
<class name="org.lwjgl.DefaultSysImplementation" />
2004-10-17 17:16:40 -04:00
<class name="org.lwjgl.input.Cursor" />
<class name="org.lwjgl.input.Keyboard" />
<class name="org.lwjgl.input.Mouse" />
<class name="org.lwjgl.openal.ALC" />
<class name="org.lwjgl.openal.AL" />
<class name="org.lwjgl.opengl.GLContext" />
<class name="org.lwjgl.opengl.Pbuffer" />
</javah>
2004-09-06 12:36:08 -04:00
<!-- fmod -->
2004-06-09 16:02:10 -04:00
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/fmod3" force="yes">
2004-10-17 17:16:40 -04:00
<class name="org.lwjgl.fmod3.FMOD" />
<class name="org.lwjgl.fmod3.FMusic" />
<class name="org.lwjgl.fmod3.FSound" />
</javah>
<!-- devil -->
<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/devil" force="yes">
<class name="org.lwjgl.devil.IL"/>
<class name="org.lwjgl.devil.ILU"/>
2005-01-12 07:30:34 -05:00
<class name="org.lwjgl.devil.ILUT"/>
</javah>
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Creates a versioned distribution for all supported platforms -->
2004-09-06 12:36:08 -04:00
<target name="-distribution_application">
2004-10-17 17:16:40 -04:00
<!-- check each platform, and run their copy target -->
<antcall target="-distribute_win32" />
<antcall target="-distribute_linux" />
<antcall target="-distribute_macosx" />
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Distributes win32 files -->
2004-09-06 15:51:11 -04:00
<target name="-distribute_win32">
2003-11-13 18:16:58 -05:00
<!-- copy files from lib/platform to temp -->
<copy todir="${lwjgl.temp}/lwjgl-win32-${lwjgl.version}">
<fileset dir="${lwjgl.lib}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-win32.fileset" />
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
<fileset dir="${lwjgl.docs}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
2004-10-17 17:16:40 -04:00
</copy>
<zip destfile="${lwjgl.dist}/lwjgl-win32-${lwjgl.version}.zip" basedir="${lwjgl.temp}" includes="lwjgl-win32-${lwjgl.version}/**" />
</target>
2003-11-13 18:16:58 -05:00
<!-- Distributes linux files -->
2004-09-06 15:51:11 -04:00
<target name="-distribute_linux">
2003-11-13 18:16:58 -05:00
<!-- copy files from lib/platform to temp -->
<copy todir="${lwjgl.temp}/lwjgl-linux-${lwjgl.version}">
<fileset dir="${lwjgl.lib}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-linux.fileset" />
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
<fileset dir="${lwjgl.docs}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
2004-10-17 17:16:40 -04:00
</copy>
<zip destfile="${lwjgl.dist}/lwjgl-linux-${lwjgl.version}.zip" basedir="${lwjgl.temp}" includes="lwjgl-linux-${lwjgl.version}/**" />
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Distributes macosx files -->
2004-09-06 15:51:11 -04:00
<target name="-distribute_macosx">
2003-11-13 18:16:58 -05:00
<!-- copy files from lib/platform to temp -->
<copy todir="${lwjgl.temp}/lwjgl-macosx-${lwjgl.version}">
<fileset dir="${lwjgl.lib}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-macosx.fileset" />
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
<fileset dir="${lwjgl.docs}">
2004-10-17 17:16:40 -04:00
<patternset refid="lwjgl-common.fileset" />
2003-11-13 18:16:58 -05:00
</fileset>
2004-10-17 17:16:40 -04:00
</copy>
<zip destfile="${lwjgl.dist}/lwjgl-macosx-${lwjgl.version}.zip" basedir="${lwjgl.temp}" includes="lwjgl-macosx-${lwjgl.version}/**" />
</target>
2003-11-13 18:16:58 -05:00
<!-- Creates a versioned distribution of javadocs -->
2004-09-06 12:36:08 -04:00
<target name="-distribution_javadoc">
2004-10-17 17:16:40 -04:00
<zip destfile="${lwjgl.dist}/lwjgl-docs-${lwjgl.version}.zip" basedir="${lwjgl.docs}" includes="javadoc/**" />
2003-11-13 18:16:58 -05:00
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Creates a versioned distribution of the source code -->
2004-09-06 12:36:08 -04:00
<target name="-distribution_source">
2003-11-13 18:16:58 -05:00
<zip destfile="${lwjgl.dist}/lwjgl-source-${lwjgl.version}.zip">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl.source.fileset" />
2003-11-13 18:16:58 -05:00
</zip>
</target>
2004-10-17 17:16:40 -04:00
2003-11-13 18:16:58 -05:00
<!-- Creates a versioned distribution of the resource files -->
2004-09-06 12:36:08 -04:00
<target name="-distribution_resources">
2003-11-13 18:16:58 -05:00
<zip destfile="${lwjgl.dist}/lwjgl-media-${lwjgl.version}.zip">
2004-10-17 17:16:40 -04:00
<fileset refid="lwjgl.media.fileset" />
2003-11-13 18:16:58 -05:00
</zip>
2004-10-17 17:16:40 -04:00
</target>
<!-- clean internal temporary directories -->
2004-09-06 12:36:08 -04:00
<target name="-internal_clean">
2004-10-17 17:16:40 -04:00
<delete dir="${lwjgl.temp}" taskname="cleanup" />
2003-11-13 18:16:58 -05:00
</target>
2003-12-15 07:18:15 -05:00
</project>