diff options
author | Kenneth Russel <[email protected]> | 2009-05-15 21:07:37 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-05-15 21:07:37 +0000 |
commit | 9e979e542165358b5c3684078e193f9c706f1eab (patch) | |
tree | f025d9eedf6f7193fec9741533b0feb6b53e084f /doc/manual/example2 | |
parent | 46b03a7c00a014e15417e504cf264ed5dca0a030 (diff) |
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
Diffstat (limited to 'doc/manual/example2')
-rw-r--r-- | doc/manual/example2/function.cfg | 3 | ||||
-rw-r--r-- | doc/manual/example2/gen.sh | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/doc/manual/example2/function.cfg b/doc/manual/example2/function.cfg index 91d379b..d0777a0 100644 --- a/doc/manual/example2/function.cfg +++ b/doc/manual/example2/function.cfg @@ -7,3 +7,6 @@ NativeOutputDir gensrc/native # The semantics of set_global_data imply that # only direct Buffers are legal NioDirectOnly set_global_data + +# Include the function.h header in the generated glue code +CustomCCode #include "function.h" diff --git a/doc/manual/example2/gen.sh b/doc/manual/example2/gen.sh index 3310b06..99adddd 100644 --- a/doc/manual/example2/gen.sh +++ b/doc/manual/example2/gen.sh @@ -2,13 +2,13 @@ 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=: |