aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/make.jogl.all.linux-x86.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/make.jogl.all.linux-x86.sh')
-rwxr-xr-xmake/scripts/make.jogl.all.linux-x86.sh65
1 files changed, 65 insertions, 0 deletions
diff --git a/make/scripts/make.jogl.all.linux-x86.sh b/make/scripts/make.jogl.all.linux-x86.sh
new file mode 100755
index 000000000..76b46a03b
--- /dev/null
+++ b/make/scripts/make.jogl.all.linux-x86.sh
@@ -0,0 +1,65 @@
+#! /bin/sh
+
+if [ -e ../../setenv-build-jogl-x86.sh ] ; then
+ . ../../setenv-build-jogl-x86.sh
+fi
+
+if [ -z "$ANT_PATH" ] ; then
+ if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then
+ ANT_PATH=/usr/share/ant
+ export ANT_PATH
+ echo autosetting ANT_PATH to $ANT_PATH
+ fi
+fi
+if [ -z "$ANT_PATH" ] ; then
+ echo ANT_PATH does not exist, set it
+ exit
+fi
+
+if [ "$1" = "-libdir" ] ; then
+ shift
+ if [ -z "$1" ] ; then
+ echo libdir argument missing
+ print_usage
+ exit
+ fi
+ CUSTOMLIBDIR="-Dcustom.libdir=$1"
+ shift
+fi
+
+
+# -Djogl.cg=1
+# -Dc.compiler.debug=true
+# -DuseOpenMAX=true \
+# -Dbuild.noarchives=true
+# -Dgluegen.cpptasks.detected.os=true \
+# -DisUnix=true \
+# -DisLinux=true \
+# -DisLinuxX86=true \
+# -DisX11=true \
+# -Djogl.cg=1 \
+
+#LD_LIBRARY_PATH=/opt-linux-x86_64/mesa-7.8.1/lib64
+#export LD_LIBRARY_PATH
+
+LOGF=make.jogl.all.linux-x86.log
+rm -f $LOGF
+
+# export LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib32/fglrx/dri
+# export LIBGL_DEBUG=verbose
+echo LIBXCB_ALLOW_SLOPPY_LOCK: $LIBXCB_ALLOW_SLOPPY_LOCK 2>&1 | tee -a $LOGF
+echo LIBGL_DRIVERS_PATH: $LIBGL_DRIVERS_PATH 2>&1 | tee -a $LOGF
+echo LIBGL_DEBUG: $LIBGL_DEBUG 2>&1 | tee -a $LOGF
+
+ant \
+ $CUSTOMLIBDIR \
+ -Dbuild.noarchives=true \
+ -Dgluegen-cpptasks.file=`pwd`/../../gluegen/make/lib/gluegen-cpptasks-linux-32bit.xml \
+ -Dbuild.noarchives=true \
+ -Djogl.cg=1 \
+ -Drootrel.build=build-x86 \
+ -Dos.arch=x86 \
+ -DuseKD=true \
+ -DuseOpenMAX=true \
+ $* 2>&1 | tee -a $LOGF
+