File: build.xml

package info (click to toggle)
jinput 20100502%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,236 kB
  • ctags: 3,236
  • sloc: java: 9,613; xml: 1,030; ansic: 909; awk: 34; makefile: 32; sh: 11
file content (86 lines) | stat: -rw-r--r-- 3,104 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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>