blob: ea19bc6d2559b642e8dacfa8649e58d9a5f010ed (
plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Ant build for JOGL's BuildStaticGLInfo and corresponding ANT task. This
- build should not be called directly. It is invoked from the main
- "build.xml" file and relies on the properties set therein.
-
- This build has been tested with ANT 1.5.3 and JOGL 1.1.1.1.
-
- Public targets:
- all: clean and build BuildStaticGLInfo and StaticGLGen Ant task
- clean: clean all built
-->
<project name="JOGL.BuildStaticGLInfo" default="all">
<!-- ================================================================== -->
<!--
- Declare all paths and user defined variables.
-->
<target name="declare" description="Declare properties">
<!-- The location of the BuildStaticGLInfo source. -->
<property name="static.gl.src" value="${src.java}/com/jogamp/gluegen/opengl" />
</target>
<!-- ================================================================== -->
<!--
- Build BuildStaticGLInfo.
-->
<target name="build.static.gl" depends="declare">
<!-- Ensure that the output classes directory exists. -->
<mkdir dir="${classes}" />
<!-- Compile BuildStaticGLInfo -->
<javac srcdir="${src.java}" destdir="${classes}" includes="**/BuildStaticGLInfo.java" source="${target.sourcelevel}" debug="true" debuglevel="${javacdebuglevel}"
includeAntRuntime="false"
memoryMaximumSize="${javac.memorymax}"
source="${target.sourcelevel}"
target="${target.targetlevel}"
bootclasspath="${target.rt.jar}">
<classpath refid="antlr.classpath" />
</javac>
<!-- Inform the user that BuildStaticGLInfo has been successfully built. -->
<echo message="" />
<echo message="BuildStaticGLInfo has been built successfully." />
</target>
<!-- ================================================================== -->
<!--
- Build the StaticGLGen ANT task.
-->
<target name="build.static.gl.task" depends="declare">
<!-- Ensure that the output classes directory exists. -->
<mkdir dir="${classes}" />
<!-- Build the BuildStaticGLInfo ANT task.
- NOTE: ONLY the StaticGLGen is built at this time. BuildStaticGLInfo
- itself is built in a separate task. -->
<javac destdir="${classes}" includes="**/StaticGLGenTask.java" source="${target.sourcelevel}" debug="true" debuglevel="${javacdebuglevel}"
includeAntRuntime="true"
memoryMaximumSize="${javac.memorymax}"
source="1.6">
<src path="${src.java}" />
<classpath refid="classpath" />
</javac>
<!-- Inform the user that the BuildStaticGLInfo ANT task has been
- successfully built. -->
<echo message="" />
<echo message="StaticGLGen ANT task has been built successfully." />
</target>
<!-- ================================================================== -->
<!--
- Clean up all that is built.
- NOTE: this is a bit heavy-handed as it may delete more than just
- what is built with this build.
-->
<target name="clean" depends="declare">
<!-- Create the directory before attempting to delete it. Deleting
- non-existant dirs will cause an error. -->
<mkdir dir="${classes}" />
<delete includeEmptyDirs="true">
<fileset dir="${classes}" />
</delete>
</target>
<!-- ================================================================== -->
<!--
- Build BuildStaticGLInfo and the BuildStaticGLInfo ANT task.
-->
<target name="all" depends="declare">
<!-- Build BuildStaticGLInfo -->
<antcall target="build.static.gl" />
<!-- Build the BuildStaticGLInfo ANT task -->
<antcall target="build.static.gl.task" />
</target>
</project>
|