jinput-arm64/plugins/linux/build.xml
endolf daba6d24cc Unless cleanup is called from the same thread as init, the cleanup
doesn't happen properly and events are left of the ff device meaning we
run out of device space. Added a thread that init and cleanup are called
from via methods on the interface.

Then it became apparent that rumble would only work from the same thread
as the others too, so thats added in there.

Nastyness all round.
2005-08-30 19:37:53 +00:00

82 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="Linux Plugin">
<target name="init">
<property name="hello" value="world"/>
<mkdir dir="classes"/>
<mkdir dir="bin"/>
</target>
<target depends="init" name="compile">
<javac debug="true" deprecation="true" destdir="classes" source="1.4" target="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="bin/linux.jar" compress="true" basedir="classes">
<exclude name="**/*.java"/>
<exclude name="linux.jar"/>
<exclude name="apidoc"/>
</jar>
<copy file="bin/linux.jar" todir="../../coreAPI/src/tests/controller" />
</target>
<target depends="compileNativeJinputLib,jar" description="Build everything." name="all">
<echo message="Application built. Hello ${hello}!"/>
</target>
<target name="javadoc" depends="init" description="Javadoc for Linux 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="classes">
<include name="**/*.class"/>
</fileset>
</delete>
<delete file="bin/linux.jar" failonerror="no"/>
<delete file="src/native/libjinput-linux.so" failonerror="no"/>
<delete file="../../coreAPI/src/tests/controller/linux.jar" failonerror="no" />
<delete file="../../coreAPI/src/tests/controller/libjinput-linux.so" failonerror="no"/>
<delete file="apidoc" failonerror="no"/>
</target>
<target depends="init,compile" name="createJNIHeaders">
<javah destdir="src/native">
<classpath>
<pathelement location="../../coreAPI/bin/jinput.jar"/>
<pathelement location="bin/linux.jar"/>
</classpath>
<class name="net.java.games.input.JInputLibrary"/>
</javah>
</target>
<target depends="init" name="createNativeDefinitions.java">
<exec dir="." executable="./getDefinitions" os="linux" output="src/java/net/java/games/input/NativeDefinitions.java">
<arg line="/usr/include/linux/input.h"/>
</exec>
</target>
<target depends="init" name="compileNativeJinputLib">
<ant dir="src/native" target="compileNativeJinputLib"/>
<copy file="src/native/libjinput-linux.so" todir="../../coreAPI/src/tests/controller" />
</target>
</project>