aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/windows/build.xml
diff options
context:
space:
mode:
authorendolf <[email protected]>2006-04-29 22:29:27 +0000
committerendolf <[email protected]>2006-04-29 22:29:27 +0000
commit986c6106aa165d4168f6b8e1216eceb5353fce14 (patch)
tree1a61954c62909e8e4a4b4c578665a4df40d013cf /plugins/windows/build.xml
parent09bdd72a93f2a5498137d22540d035df87cff174 (diff)
Make version 2 the main jinput version
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@139 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/windows/build.xml')
-rw-r--r--plugins/windows/build.xml86
1 files changed, 86 insertions, 0 deletions
diff --git a/plugins/windows/build.xml b/plugins/windows/build.xml
new file mode 100644
index 0000000..a10d7cb
--- /dev/null
+++ b/plugins/windows/build.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<project name="Direct Input Plugin" basedir="." default="all">
+ <target name="init">
+ <mkdir dir="classes"/>
+ <mkdir dir="bin"/>
+ <condition property="dx8" >
+ <os family="Windows" />
+ </condition>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="src/java" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4">
+ <!-- To add something to the classpath: -->
+ <classpath>
+ <pathelement location="../../coreAPI/bin/jinput-core.jar"/>
+ <pathelement location="../../lib/jutils.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target depends="init,compile" name="create_jniheaders">
+ <javah destdir="src/native/dx8">
+ <classpath>
+ <pathelement path="classes"/>
+ <pathelement location="../../coreAPI/classes"/>
+ </classpath>
+ <class name="net.java.games.input.IDirectInput"/>
+ <class name="net.java.games.input.IDirectInputDevice"/>
+ <class name="net.java.games.input.IDirectInputEffect"/>
+ </javah>
+ <javah destdir="src/native">
+ <classpath>
+ <pathelement path="classes"/>
+ <pathelement location="../../coreAPI/classes"/>
+ </classpath>
+ <class name="net.java.games.input.DummyWindow"/>
+ </javah>
+ <javah destdir="src/native/raw">
+ <classpath>
+ <pathelement path="classes"/>
+ <pathelement location="../../coreAPI/bin/jinput-core.jar"/>
+ </classpath>
+ <class name="net.java.games.input.RawInputEnvironmentPlugin"/>
+ <class name="net.java.games.input.RawInputEventQueue"/>
+ <class name="net.java.games.input.RawDevice"/>
+ </javah>
+ </target>
+
+ <target name="compile_native" depends="init,create_jniheaders" if="dx8">
+ <ant dir="src/native" target="compile"/>
+ <copy todir="bin">
+ <fileset dir="src/native" includes="*.dll"/>
+ </copy>
+ </target>
+
+ <target name="jar" depends="init,compile">
+ <jar jarfile="bin/dxinput.jar" compress="true" basedir="classes">
+ <include name="**/*.class"/>
+ </jar>
+ </target>
+
+ <target name="all" depends="compile,compile_native,jar" description="Build everything.">
+ </target>
+
+ <target name="javadoc" depends="init" description="Javadoc for my API.">
+ <mkdir dir="apidocs"/>
+ <javadoc packagenames="net.*"
+ destdir="apidocs"
+ additionalparam="-source 1.4">
+ <sourcepath>
+ <pathelement location="src/java"/>
+ </sourcepath>
+ <classpath>
+ <pathelement location="../../bin/jinput-core.jar"/>
+ <pathelement location="../../lib/jutils.jar"/>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <target name="clean" depends="init" description="Clean all build products.">
+ <delete dir="classes" failonerror="no"/>
+ <delete dir="bin" failonerror="no"/>
+ <delete dir="apidocs" failonerror="no"/>
+ <ant inheritAll="false" antfile="src/native/build.xml" target="clean"/>
+ </target>
+</project>