From 9e979e542165358b5c3684078e193f9c706f1eab Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 15 May 2009 21:07:37 +0000 Subject: Updated .cfg files to properly #include headers; updated build scripts to correctly pick up OS git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@133 a78bb65f-1512-4460-ba86-f6dc96a7bf27 --- doc/manual/example1/function.cfg | 3 +++ doc/manual/example1/gen.sh | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'doc/manual/example1') diff --git a/doc/manual/example1/function.cfg b/doc/manual/example1/function.cfg index c604a40..c251261 100644 --- a/doc/manual/example1/function.cfg +++ b/doc/manual/example1/function.cfg @@ -3,3 +3,6 @@ Style AllStatic JavaClass TestFunction JavaOutputDir gensrc/java NativeOutputDir gensrc/native + +# Include the function.h header in the generated glue code +CustomCCode #include "function.h" diff --git a/doc/manual/example1/gen.sh b/doc/manual/example1/gen.sh index 6fb971e..047b448 100644 --- a/doc/manual/example1/gen.sh +++ b/doc/manual/example1/gen.sh @@ -2,16 +2,17 @@ JAVA=java GLUEGEN_JAR=../../../build/gluegen.jar -ANTLR_JAR=../../../../../ANTLR/antlr-2.7.4/antlr.jar +ANTLR_JAR=../../../../../ANTLR/antlr-2.7.5.jar NAME=`uname` -if [ $NAME="Windows*" ] ; then +if [[ $NAME == "Windows*" ]] ; then SEP=\; -elif [ $NAME="CYGWIN*" ] ; then +elif [[ $NAME == "CYGWIN*" ]] ; then SEP=\; else SEP=: fi +echo java -cp $GLUEGEN_JAR$SEP$ANTLR_JAR com.sun.gluegen.GlueGen -I. -Ecom.sun.gluegen.JavaEmitter -Cfunction.cfg function.h java -cp $GLUEGEN_JAR$SEP$ANTLR_JAR com.sun.gluegen.GlueGen -I. -Ecom.sun.gluegen.JavaEmitter -Cfunction.cfg function.h -- cgit v1.2.3