remove JOGL from the repo, switch it to auto-download

This commit is contained in:
Ben Fry
2020-01-18 19:42:39 -05:00
parent 0447889151
commit ff3fe5918d
3 changed files with 46 additions and 1 deletions

3
core/.gitignore vendored
View File

@@ -1,3 +1,6 @@
bin
bin-test
.idea
/library/gluegen-rt*.jar
/library/jogl-all*.jar

View File

@@ -7,6 +7,11 @@
<delete dir="bin" />
<delete dir="bin-test" />
<delete file="library/core.jar" />
<delete>
<fileset dir="library" includes="gluegen-rt*.jar" />
<fileset dir="library" includes="jogl-all*.jar" />
</delete>
</target>
<target name="methods-check">
@@ -17,6 +22,39 @@
<subant buildpath="methods" target="dist" />
</target>
<!-- Base URL for the current version of JOGL. This should probably be changed to
a location on download.processing.org so that we know it's available forever. -->
<property name="jogl.url"
value="https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20200115/jar" />
<available file="library/jogl-all.jar" property="jogl.present" />
<!-- ok to ignore failed downloads if we at least have a version that's local -->
<condition property="jogl.ignorable" value="false" else="true">
<isset property="jogl.present" />
</condition>
<target name="download-jogl" unless="jogl.present">
<get dest="library" usetimestamp="true" ignoreerrors="${jogl.ignorable}">
<url url="${jogl.url}/gluegen-rt-natives-linux-aarch64.jar" />
<url url="${jogl.url}/gluegen-rt-natives-linux-amd64.jar" />
<url url="${jogl.url}/gluegen-rt-natives-linux-armv6hf.jar" />
<url url="${jogl.url}/gluegen-rt-natives-linux-i586.jar" />
<url url="${jogl.url}/gluegen-rt-natives-macosx-universal.jar" />
<url url="${jogl.url}/gluegen-rt-natives-windows-amd64.jar" />
<url url="${jogl.url}/gluegen-rt-natives-windows-i586.jar" />
<url url="${jogl.url}/gluegen-rt.jar" />
<url url="${jogl.url}/jogl-all-natives-linux-aarch64.jar" />
<url url="${jogl.url}/jogl-all-natives-linux-amd64.jar" />
<url url="${jogl.url}/jogl-all-natives-linux-armv6hf.jar" />
<url url="${jogl.url}/jogl-all-natives-linux-i586.jar" />
<url url="${jogl.url}/jogl-all-natives-macosx-universal.jar" />
<url url="${jogl.url}/jogl-all-natives-windows-amd64.jar" />
<url url="${jogl.url}/jogl-all-natives-windows-i586.jar" />
<url url="${jogl.url}/jogl-all.jar" />
</get>
</target>
<path id="classpath.base">
<pathelement location="library/jogl-all.jar" />
<pathelement location="library/gluegen-rt.jar" />
@@ -112,7 +150,8 @@
<compilecommon srcdir="src" destdir="bin" classpath="classpath.base" />
</target>
<target name="build" depends="methods-build, compile" description="Build core library">
<target name="build" depends="download-jogl, methods-build, compile"
description="Build core library">
<jar basedir="bin" destfile="library/core.jar" />
</target>