aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wintab/src/native/build.xml
diff options
context:
space:
mode:
authorendolf <[email protected]>2006-10-29 15:57:42 +0000
committerendolf <[email protected]>2006-10-29 15:57:42 +0000
commit8a492e3f0a81ad71ce0700a5ce7f86418beceffe (patch)
treef8845c2703b899477679e9278ba0a6825eb2e64f /plugins/wintab/src/native/build.xml
parenteee35a192b6ef2a80a36bedc0b23693a56a24171 (diff)
First commit of the wintab plugin
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@167 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/wintab/src/native/build.xml')
-rw-r--r--plugins/wintab/src/native/build.xml70
1 files changed, 70 insertions, 0 deletions
diff --git a/plugins/wintab/src/native/build.xml b/plugins/wintab/src/native/build.xml
new file mode 100644
index 0000000..152ef24
--- /dev/null
+++ b/plugins/wintab/src/native/build.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+
+<project name="JInput wintab port, Native code" basedir="." default="compile">
+ <property environment="env"/>
+ <property name="wintabhome" location="${env.WINTAB_DIR}"/>
+ <property name="sdkhome" location="c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2"/>
+
+ <target name="compile_dir">
+ <echo message="${compiledir}"/>
+ <echo message="wintab: ${wintabhome}"/>
+ <apply dir="${compiledir}" failonerror="true" executable="cl" dest="${compiledir}" skipemptyfilesets="true">
+ <arg line="/Ox /Wp64 /W2 /nologo /c"/>
+ <arg value="/I${sdkhome}\include"/>
+ <arg value="/I${wintabhome}\include"/>
+ <arg value="/I${java.home}\..\include"/>
+ <arg value="/I${java.home}\..\include\win32"/>
+ <arg value="/I${commonhome}/src/native"/>
+ <arg value="/I.."/>
+ <srcfile/>
+ <fileset dir="${compiledir}" includes="*.c"/>
+ <mapper type="glob" from="*.c" to="*.obj"/>
+ </apply>
+ </target>
+
+ <!-- <target name="link" unless="nolink">-->
+ <target name="link">
+ <apply dir="." parallel="true" executable="cl" failonerror="true">
+ <arg line="/LD /nologo"/>
+ <srcfile/>
+ <arg line="/Fe${dllname} /link"/>
+ <arg value="/LIBPATH:${java.home}\lib"/>
+ <arg value="/LIBPATH:${wintabhome}\lib\I386"/>
+ <arg value="/LIBPATH:${sdkhome}\lib"/>
+ <arg line="/DLL ${libs}"/>
+ <fileset dir="${commonhome}/src/native" includes="*.obj"/>
+ <fileset dir="." includes="*.obj"/>
+ <fileset dir="../../../windows/src/native" includes="*.obj"/>
+ </apply>
+ </target>
+
+ <target name="clean">
+ <delete>
+ <fileset dir="." includes="*.obj"/>
+ <fileset dir="." includes="*.dll"/>
+ </delete>
+ </target>
+
+ <target name="compile">
+ <property name="wintablibs" value="Kernel32.lib WINTAB32.LIB User32.lib"/>
+ <property name="commonhome" location="../../../common"/>
+ <property name="dllname" value="jinput-wintab.dll"/>
+ <antcall target="compile_dir">
+ <param name="compiledir" location="${commonhome}/src/native"/>
+ </antcall>
+ <antcall target="compile_dir">
+ <param name="compiledir" location="."/>
+ </antcall>
+ <antcall target="compile_dir">
+ <param name="compiledir" location="../../../windows/src/native"/>
+ </antcall>
+ <!-- <uptodate property="nolink" targetfile="${dllname}">
+ <srcfiles dir="." includes="*.obj"/>
+ </uptodate>-->
+ <antcall target="link">
+ <param name="dllname" value="${dllname}"/>
+ <param name="libs" value="${wintablibs}"/>
+ </antcall>
+ </target>
+</project>
+