|
7 | 7 | <delete dir="bin" /> |
8 | 8 | <delete dir="bin-test" /> |
9 | 9 | <delete file="library/core.jar" /> |
| 10 | + |
| 11 | + <delete> |
| 12 | + <fileset dir="library" includes="gluegen-rt*.jar" /> |
| 13 | + <fileset dir="library" includes="jogl-all*.jar" /> |
| 14 | + </delete> |
10 | 15 | </target> |
11 | 16 |
|
12 | 17 | <target name="methods-check"> |
|
17 | 22 | <subant buildpath="methods" target="dist" /> |
18 | 23 | </target> |
19 | 24 |
|
| 25 | + <!-- Base URL for the current version of JOGL. This should probably be changed to |
| 26 | + a location on download.processing.org so that we know it's available forever. --> |
| 27 | + <property name="jogl.url" |
| 28 | + value="https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20200115/jar" /> |
| 29 | + |
| 30 | + <available file="library/jogl-all.jar" property="jogl.present" /> |
| 31 | + |
| 32 | + <!-- ok to ignore failed downloads if we at least have a version that's local --> |
| 33 | + <condition property="jogl.ignorable" value="false" else="true"> |
| 34 | + <isset property="jogl.present" /> |
| 35 | + </condition> |
| 36 | + |
| 37 | + <target name="download-jogl" unless="jogl.present"> |
| 38 | + <get dest="library" usetimestamp="true" ignoreerrors="${jogl.ignorable}"> |
| 39 | + <url url="${jogl.url}/gluegen-rt-natives-linux-aarch64.jar" /> |
| 40 | + <url url="${jogl.url}/gluegen-rt-natives-linux-amd64.jar" /> |
| 41 | + <url url="${jogl.url}/gluegen-rt-natives-linux-armv6hf.jar" /> |
| 42 | + <url url="${jogl.url}/gluegen-rt-natives-linux-i586.jar" /> |
| 43 | + <url url="${jogl.url}/gluegen-rt-natives-macosx-universal.jar" /> |
| 44 | + <url url="${jogl.url}/gluegen-rt-natives-windows-amd64.jar" /> |
| 45 | + <url url="${jogl.url}/gluegen-rt-natives-windows-i586.jar" /> |
| 46 | + <url url="${jogl.url}/gluegen-rt.jar" /> |
| 47 | + <url url="${jogl.url}/jogl-all-natives-linux-aarch64.jar" /> |
| 48 | + <url url="${jogl.url}/jogl-all-natives-linux-amd64.jar" /> |
| 49 | + <url url="${jogl.url}/jogl-all-natives-linux-armv6hf.jar" /> |
| 50 | + <url url="${jogl.url}/jogl-all-natives-linux-i586.jar" /> |
| 51 | + <url url="${jogl.url}/jogl-all-natives-macosx-universal.jar" /> |
| 52 | + <url url="${jogl.url}/jogl-all-natives-windows-amd64.jar" /> |
| 53 | + <url url="${jogl.url}/jogl-all-natives-windows-i586.jar" /> |
| 54 | + <url url="${jogl.url}/jogl-all.jar" /> |
| 55 | + </get> |
| 56 | + </target> |
| 57 | + |
20 | 58 | <path id="classpath.base"> |
21 | 59 | <pathelement location="library/jogl-all.jar" /> |
22 | 60 | <pathelement location="library/gluegen-rt.jar" /> |
|
112 | 150 | <compilecommon srcdir="src" destdir="bin" classpath="classpath.base" /> |
113 | 151 | </target> |
114 | 152 |
|
115 | | - <target name="build" depends="methods-build, compile" description="Build core library"> |
| 153 | + <target name="build" depends="download-jogl, methods-build, compile" |
| 154 | + description="Build core library"> |
116 | 155 | <jar basedir="bin" destfile="library/core.jar" /> |
117 | 156 | </target> |
118 | 157 |
|
|
0 commit comments