Skip to content

Commit ff3fe59

Browse files
committed
remove JOGL from the repo, switch it to auto-download
1 parent 0447889 commit ff3fe59

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

core/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
bin
22
bin-test
33
.idea
4+
5+
/library/gluegen-rt*.jar
6+
/library/jogl-all*.jar

core/build.xml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
<delete dir="bin" />
88
<delete dir="bin-test" />
99
<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>
1015
</target>
1116

1217
<target name="methods-check">
@@ -17,6 +22,39 @@
1722
<subant buildpath="methods" target="dist" />
1823
</target>
1924

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+
2058
<path id="classpath.base">
2159
<pathelement location="library/jogl-all.jar" />
2260
<pathelement location="library/gluegen-rt.jar" />
@@ -112,7 +150,8 @@
112150
<compilecommon srcdir="src" destdir="bin" classpath="classpath.base" />
113151
</target>
114152

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">
116155
<jar basedir="bin" destfile="library/core.jar" />
117156
</target>
118157

todo.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ X selecting a sketch in the Sketch menu no longer opens its window
1414
X https://github.com/processing/processing/issues/5882
1515
X streamlining the jdk downloader
1616
X https://github.com/processing/processing4/issues/47
17+
X remove JOGL from the repo, switch it to auto-download
1718

1819
cross-ported from 3.5.4
1920
X don't remove entries from Recent menu on Save As
@@ -117,6 +118,8 @@ X https://github.com/processing/processing-docs/issues/766
117118
X was just an issue with https vs http
118119

119120
before final release
121+
_ Update graphics and visual design elements for 4.x
122+
_ https://github.com/processing/processing4/issues/48
120123
_ Welcome screen or not?
121124
_ change help menu links to go to newer FAQ and the rest
122125

0 commit comments

Comments
 (0)