summaryrefslogtreecommitdiffstats
path: root/make/make.jogl.all.linux-x86.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-28 01:10:31 +0200
committerSven Gothel <[email protected]>2010-04-28 01:10:31 +0200
commit3dae4b359e9494c34cc6056e43f1c835fca53100 (patch)
tree72423a77830af29355466a588a0d0c0924983472 /make/make.jogl.all.linux-x86.sh
parent897c7248f9895d828542d524b211b74efcc715d2 (diff)
Add custom.libdir property to sneak in eg a alt. GL lib
Diffstat (limited to 'make/make.jogl.all.linux-x86.sh')
-rw-r--r--make/make.jogl.all.linux-x86.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/make/make.jogl.all.linux-x86.sh b/make/make.jogl.all.linux-x86.sh
index 32f48a80f..d73d3b7f7 100644
--- a/make/make.jogl.all.linux-x86.sh
+++ b/make/make.jogl.all.linux-x86.sh
@@ -4,6 +4,29 @@ 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 -Dx11.cg.lib=../../lib-linux-x86_64
# -Dc.compiler.debug=true
@@ -17,6 +40,7 @@ fi
# -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86 \
ant \
+ $CUSTOMLIBDIR \
-Dgluegen-cpptasks.file=`pwd`/../../gluegen/make/lib/gluegen-cpptasks-linux-32bit.xml \
-Dbuild.noarchives=true \
-Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86 \