Codebase list jinput / a6b9835
Fixed the build failure with Java 10 (Closes: #898225) Emmanuel Bourg 5 years ago
4 changed file(s) with 85 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
00 jinput (20100502+dfsg-10) UNRELEASED; urgency=medium
11
22 * Team upload.
3 * Fixed the build failure with Java 10 (Closes: #898225)
34 * Standards-Version updated to 4.1.4
45 * Switch to debhelper level 11
56 * Use salsa.debian.org Vcs-* URLs
+0
-14
debian/patches/05java7-compat.patch less more
0 Description: Fix FTBFS with Java7
1
2 diff --git a/plugins/linux/build.xml b/plugins/linux/build.xml
3 index ad912f4..2848db3 100644
4 --- a/plugins/linux/build.xml
5 +++ b/plugins/linux/build.xml
6 @@ -56,6 +56,7 @@
7 <javah destdir="src/native">
8 <classpath>
9 <pathelement location="classes"/>
10 + <pathelement location="../../coreAPI/bin/jinput-core.jar"/>
11 </classpath>
12 <class name="net.java.games.input.LinuxEventDevice"/>
13 <class name="net.java.games.input.LinuxJoystickDevice"/>
0 Description: Fixes the compatibility with Java 10
1 Author: Emmanuel Bourg <ebourg@apache.org>
2 Forwarded: no
3 --- a/plugins/linux/build.xml
4 +++ b/plugins/linux/build.xml
5 @@ -12,7 +12,7 @@
6
7 <target depends="init" name="compile">
8 <!-- <ant dir="src/native" target="createNativeDefinitions.java"/>-->
9 - <javac debug="true" deprecation="true" destdir="classes" source="1.4" target="1.4" srcdir="src/java">
10 + <javac debug="true" deprecation="true" destdir="classes" source="1.4" target="1.4" srcdir="src/java" nativeHeaderDir="src/native">
11 <classpath>
12 <pathelement location="../../coreAPI/bin/jinput-core.jar"/>
13 <pathelement location="../../lib/jutils.jar"/>
14 @@ -53,13 +53,6 @@
15 </target>
16
17 <target depends="init,compile" name="createJNIHeaders">
18 - <javah destdir="src/native">
19 - <classpath>
20 - <pathelement location="classes"/>
21 - </classpath>
22 - <class name="net.java.games.input.LinuxEventDevice"/>
23 - <class name="net.java.games.input.LinuxJoystickDevice"/>
24 - </javah>
25 </target>
26
27 <target depends="init,createJNIHeaders" name="compileNativeJinputLib" if="linux">
28 --- a/plugins/wintab/build.xml
29 +++ b/plugins/wintab/build.xml
30 @@ -9,7 +9,7 @@
31 </target>
32
33 <target name="compile" depends="init">
34 - <javac srcdir="../windows/src/java" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4">
35 + <javac srcdir="../windows/src/java" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4" nativeHeaderDir="src/native">
36 <include name="**/DummyWindow.java"/>
37 </javac>
38
39 @@ -23,16 +23,6 @@
40 </target>
41
42 <target depends="init,compile" name="create_jniheaders">
43 - <javah destdir="src/native">
44 - <classpath>
45 - <pathelement path="classes"/>
46 - <pathelement location="../../coreAPI/classes"/>
47 - </classpath>
48 - <class name="net.java.games.input.DummyWindow"/>
49 - <class name="net.java.games.input.WinTabContext"/>
50 - <class name="net.java.games.input.WinTabDevice"/>
51 - <class name="net.java.games.input.WinTabComponent"/>
52 - </javah>
53 </target>
54
55 <target name="compile_native" depends="init,create_jniheaders" if="wintab">
56 --- a/plugins/OSX/build.xml
57 +++ b/plugins/OSX/build.xml
58 @@ -18,7 +18,7 @@
59 </target>
60
61 <target depends="init" name="compile">
62 - <javac debug="true" deprecation="true" destdir="${build}" source="1.4" srcdir="src/java">
63 + <javac debug="true" deprecation="true" destdir="${build}" source="1.4" srcdir="src/java" nativeHeaderDir="src/native">
64 <classpath>
65 <pathelement location="../../coreAPI/bin/jinput-core.jar"/>
66 <pathelement location="../../lib/jutils.jar"/>
67 @@ -59,15 +59,6 @@
68 </target>
69
70 <target depends="init,compile" name="createJNIHeaders">
71 - <javah destdir="src/native">
72 - <classpath>
73 - <pathelement path="${build}"/>
74 - <pathelement location="../../coreAPI/classes"/>
75 - </classpath>
76 - <class name="net.java.games.input.OSXHIDDeviceIterator"/>
77 - <class name="net.java.games.input.OSXHIDDevice"/>
78 - <class name="net.java.games.input.OSXHIDQueue"/>
79 - </javah>
80 </target>
81
82
22 02build.xml.nonfree
33 03javadoc
44 04jinput-remove-getDeviceUsageBits.patch
5 05java7-compat.patch
5 06java10-compat.patch