summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-31 18:23:02 +0100
committerSven Gothel <[email protected]>2019-12-31 18:23:02 +0100
commit332dd8550a2301427dd942d2a77cb59ebd3ec92e (patch)
tree0c860a40c05ba5b27d99770a433b922cbf685f70 /make
parent7ea189170b6ae75b7e15be43344a785eb56bb48a (diff)
Enable compilation using JogAmp 2.4.0 (one demo needs vecmath, dependency issue)HEADmaster
Diffstat (limited to 'make')
-rw-r--r--make/build.xml40
-rw-r--r--make/scripts/make.jogl.all.x86_64.sh19
2 files changed, 42 insertions, 17 deletions
diff --git a/make/build.xml b/make/build.xml
index bd65149..7e51fef 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -10,26 +10,32 @@
- built into its build directory.
-->
<project name="joglutils" basedir="." default="all">
- <property name="top.dir" value=".." />
- <property name="src.dir" value="${top.dir}/src" />
- <property name="demos.src.dir" value="${top.dir}/demos/src" />
- <property name="output.dir" value="${top.dir}/build" />
- <property name="output.tmp.dir" value="${top.dir}/build/classes" />
- <property name="output.jar" value="${output.dir}/joglutils.jar" />
- <property name="demos.jar" value="${output.dir}/joglutils-demos.jar" />
- <property name="jogl.jar" value="${top.dir}/../jogl/build/jogl/jogl.all.jar" />
- <property name="nativewindow.jar" value="${top.dir}/../jogl/build/nativewindow/nativewindow.all.jar" />
- <property name="swinglayout.jar" value="lib/swing-layout-1.0.jar" />
- <property name="jogl-demos-util.jar" value="lib/jogl-demos-util.jar" />
+ <condition property="rootrel.build" value="build">
+ <not>
+ <isset property="rootrel.build"/>
+ </not>
+ </condition>
+
+ <property name="top.dir" value=".." />
+ <property name="src.dir" value="${top.dir}/src" />
+ <property name="demos.src.dir" value="${top.dir}/demos/src" />
+ <property name="output.dir" value="${top.dir}/${rootrel.build}" />
+ <property name="output.tmp.dir" value="${top.dir}/${rootrel.build}/classes" />
+ <property name="output.jar" value="${output.dir}/joglutils.jar" />
+ <property name="demos.jar" value="${output.dir}/joglutils-demos.jar" />
+ <property name="gluegen-rt.jar" value="${top.dir}/../gluegen/${rootrel.build}/gluegen-rt.jar" />
+ <property name="jogl.jar" value="${top.dir}/../jogl/${rootrel.build}/jar/jogl-all.jar" />
+ <property name="jogl-demos-util.jar" value="${top.dir}/../jogl-demos/${rootrel.build}/jogl-demos-util.jar" />
+ <property name="swinglayout.jar" value="lib/swing-layout-1.0.jar" />
<path id="build.classpath">
+ <pathelement location="${gluegen-rt.jar}" />
<pathelement location="${jogl.jar}" />
- <pathelement location="${nativewindow.jar}" />
<pathelement location="${jogl-demos-util.jar}" />
<pathelement location="${swinglayout.jar}" />
</path>
<path id="demos.build.classpath">
+ <pathelement location="${gluegen-rt.jar}" />
<pathelement location="${jogl.jar}" />
- <pathelement location="${nativewindow.jar}" />
<pathelement location="${jogl-demos-util.jar}" />
<pathelement location="${swinglayout.jar}" />
<pathelement location="${output.jar}" />
@@ -43,7 +49,7 @@
<javadoc packagenames="${javadoc.packagenames}"
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
- source="1.5"
+ source="1.8"
linkoffline="${javadoc.link} 5-packages" >
</javadoc>
</target>
@@ -57,14 +63,14 @@
sourcepath="${src.dir}"
destdir="${msg.javadoc.dir}" windowtitle="${msg.javadoc.windowtitle}"
overview="${msg.javadoc.overview}"
- source="1.5"
+ source="1.8"
linkoffline="${javadoc.link} 5-packages" >
</javadoc>
</target>
<target name="compile">
<mkdir dir="${output.tmp.dir}" />
- <javac destdir="${output.tmp.dir}" source="5" debug="true" debuglevel="source,lines">
+ <javac destdir="${output.tmp.dir}" source="1.8" debug="true" debuglevel="source,lines">
<src path="${src.dir}" />
<classpath refid="build.classpath" />
</javac>
@@ -79,7 +85,7 @@
</target>
<target name="joglutils-demos.jar" depends="joglutils.jar">
- <javac destdir="${output.tmp.dir}" source="5" debug="true" debuglevel="source,lines">
+ <javac destdir="${output.tmp.dir}" source="1.8" debug="true" debuglevel="source,lines">
<src path="${demos.src.dir}" />
<classpath refid="demos.build.classpath" />
</javac>
diff --git a/make/scripts/make.jogl.all.x86_64.sh b/make/scripts/make.jogl.all.x86_64.sh
new file mode 100644
index 0000000..110e51d
--- /dev/null
+++ b/make/scripts/make.jogl.all.x86_64.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+SDIR=`dirname $0`
+
+if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then
+ . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh
+fi
+
+. $SDIR/../../../jogl/etc/profile.jogl JOGL_ALL $SDIR/../../../jogl/build-x86_64
+
+# -Dc.compiler.debug=true
+# -Djogl.cg=1 \
+# -Djogl.redbook=true \
+
+ant \
+ -Djogl.cg=1 \
+ -Duser.swt.jar=$SWT_CLASSPATH \
+ -Drootrel.build=build-x86_64 \
+ $* 2>&1 | tee make.jogl.all.x86_64.log