aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/OSX/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/OSX/build.xml')
-rw-r--r--plugins/OSX/build.xml81
1 files changed, 0 insertions, 81 deletions
diff --git a/plugins/OSX/build.xml b/plugins/OSX/build.xml
deleted file mode 100644
index 066c838..0000000
--- a/plugins/OSX/build.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" ?>
-<project basedir="." default="all" name="OSX Plugin">
- <description>OSX JInput Plugin</description>
- <property name="src" location="src" />
- <property name="build" location="classes" />
- <property name="dist" location="dist" />
- <property name="plugins" location="plugins" />
-
- <target name="init">
- <mkdir dir="classes"/>
- <mkdir dir="dist"/>
- </target>
-
- <target depends="init" name="compile">
- <javac debug="true" deprecation="true" destdir="${build}" source="1.4" srcdir="src/java">
- <classpath>
- <pathelement location="../../coreAPI/bin/jinput.jar"/>
- <pathelement location="../../coreAPI/lib/jutils.jar"/>
- </classpath>
- </javac>
- </target>
-
- <target depends="init,compile" name="jar">
- <jar jarfile="${dist}/HIDWrapper.jar" compress="true" basedir="${build}">
- <exclude name="**/*.java"/>
- <exclude name="HIDWrapper.jar"/>
- <exclude name="apidoc"/>
- </jar>
- <copy file="${dist}/HIDWrapper.jar" todir="../../coreAPI/src/tests/controller" />
- </target>
-
- <target depends="compileNativeJinputLib,jar" description="Build everything." name="all">
- <echo message="Native OSX JInput library built!"/>
- </target>
-
- <target name="javadoc" depends="init" description="Javadoc for OS X plugin for JInput.">
- <mkdir dir="apidocs"/>
- <javadoc packagenames="net.java.games.input.*"
- destdir="apidocs"
- additionalparam="-source 1.4"
- link="../../../coreAPI/apidocs">
- <sourcepath>
- <pathelement location="src/java"/>
- </sourcepath>
- <classpath>
- <pathelement location="../../coreAPI/bin/jinput.jar"/>
- <pathelement location="../../coreAPI/lib/jutils.jar"/>
- </classpath>
- </javadoc>
- </target>
-
- <target description="Clean all build products." name="clean">
- <delete failonerror="no">
- <fileset dir="${build}">
- <include name="**/*.class"/>
- </fileset>
- </delete>
- <delete file="${dist}/HIDWrapper.jar" failonerror="no"/>
- <delete file="${dist}/libjinput.jnilib" failonerror="no"/>
- <delete file="../../coreAPI/src/tests/controller/HIDWrapper.jar" failonerror="no" />
- <delete file="../../coreAPI/src/tests/controller/libjinput.jnilib" failonerror="no"/>
- <delete file="apidoc" failonerror="no"/>
- </target>
-
- <target depends="init,compile" name="createJNIHeaders">
- <javah destdir="src/native">
- <classpath>
- <pathelement path="${build}"/>
- <pathelement location="../../coreAPI/classes"/>
- </classpath>
- <class name="net.java.games.input.OSXEnvironmentPlugin"/>
- </javah>
- </target>
-
-
- <target name="compileNativeJinputLib" depends="init,createJNIHeaders" >
- <ant dir="src/native" target="compileNativeJinputLib"/>
- <copy file="src/native/libjinput.jnilib" todir="${dist}" />
- <copy file="${dist}/libjinput.jnilib" todir="../../coreAPI/src/tests/controller" />
- </target>
-</project>