diff options
author | endolf <[email protected]> | 2005-06-16 13:38:16 +0000 |
---|---|---|
committer | endolf <[email protected]> | 2005-06-16 13:38:16 +0000 |
commit | 5f10f95d3556787011bed92d90f1df8548bdf364 (patch) | |
tree | 036ebcaa437df22d2ad642a4bd00fca8368a1c26 | |
parent | e874dcb39a62655c7db2f852a714b48e5dea1a48 (diff) |
Added the simple_dist task and subtasks to build the single
distributable zip/tgz for each platform that includes the core classes,
the default plugins classes, the jutils classes, and the binary library
for that platform.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@98 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r-- | build.xml | 69 |
1 files changed, 69 insertions, 0 deletions
@@ -107,4 +107,73 @@ excludes="*.zip" /> </target> + + <target name="simple_dist" depends="init,compile,simple_windows,simple_linux,simple_osx" description="Build the simple jars for each platform"/> + + <target name="simple_linux" depends="init,compile" description="Build the simple linux jar" if="linux"> + <delete failonerror="no" file="jinput.jar"/> + <delete failonerror="no" file="jinput_linux.tgz"/> + <jar jarfile="jinput.jar" compress="true"> + <fileset dir="coreAPI/classes"> + <include name="**/*.class"/> + </fileset> + <fileset dir="plugins/linux/classes"> + <include name="**/*.class"/> + </fileset> + <zipfileset src="coreAPI/lib/jutils.jar" includes="**/*.class"/> + </jar> + <tar destfile="jinput_linux.tgz" compression="gzip"> + <tarfileset dir="."> + <include name="jinput.jar"/> + </tarfileset> + <tarfileset dir="plugins/linux/src/native"> + <include name="*.so"/> + </tarfileset> + </tar> + <delete failonerror="no" file="jinput.jar"/> + </target> + <target name="simple_windows" depends="init,compile" description="Build the simple windows jar" if="dx8"> + <delete failonerror="no" file="jinput.jar"/> + <delete failonerror="no" file="jinput_windows.zip"/> + <jar jarfile="jinput.jar" compress="true"> + <fileset dir="coreAPI/classes"> + <include name="**/*.class"/> + </fileset> + <fileset dir="plugins/linux/classes"> + <include name="**/*.class"/> + </fileset> + <zipfileset src="coreAPI/lib/jutils.jar" includes="**/*.class"/> + </jar> + <zip destfile="jinput_windows.zip"> + <zipfileset dir="."> + <include name="jinput.jar"/> + </zipfileset> + <zipfileset dir="plugins/DX8/bin"> + <include name="*.dll"/> + </zipfileset> + </zip> + <delete failonerror="no" file="jinput.jar"/> + </target> + <target name="simple_osx" depends="init,compile" description="Build the simple osx jar" if="osx"> + <delete failonerror="no" file="jinput.jar"/> + <delete failonerror="no" file="jinput_osx.tgz"/> + <jar jarfile="jinput.jar" compress="true"> + <fileset dir="coreAPI/classes"> + <include name="**/*.class"/> + </fileset> + <fileset dir="plugins/OSX/classes"> + <include name="**/*.class"/> + </fileset> + <zipfileset src="coreAPI/lib/jutils.jar" includes="**/*.class"/> + </jar> + <tar destfile="jinput_osx.tgz" compression="gzip"> + <tarfileset dir="."> + <include name="jinput.jar"/> + </tarfileset> + <tarfileset dir="plugins/OSX/src/native"> + <include name="*.jnilib"/> + </tarfileset> + </tar> + <delete failonerror="no" file="jinput.jar"/> + </target> </project> |