diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/generate-gl-glue.sh | 24 | ||||
-rw-r--r-- | src/lua-interface.cpp | 3 |
2 files changed, 24 insertions, 3 deletions
diff --git a/src/generate-gl-glue.sh b/src/generate-gl-glue.sh index b5ba951..f6abf2a 100755 --- a/src/generate-gl-glue.sh +++ b/src/generate-gl-glue.sh @@ -4,7 +4,13 @@ base="/Users/pixel/sources/Mesa-7.2/include/GL" files="gl.h glu.h" -os=`uname` +if [ "$1" != "" ] ; then + os=$1 +fi + +if [ "$os" == "" ] ; then + os=`uname` +fi for f in $files ; do cat $base/$f ; done | grep ^GLAPI.*ENTRY | @@ -33,15 +39,29 @@ done echo ".subsections_via_symbols" -else +elif [ "$os" == "Linux" ] ; then cat tmp-symbol-list.txt | while read symbol ; do echo ".globl m$symbol" echo ".type m$symbol, @function" + echo "m$symbol:" echo "jmp $symbol" echo ".size m$symbol, .-m$symbol" done +elif [ "$os" == "mingw32" ] ; then + +cat tmp-symbol-list.txt | while read symbol do + echo ".globl _m$symbol" + echo ".def _m$symbol; .scl 2; .type 32; .endef;" + echo "_m$symbol:" + echo "jmp _$symbol" +done + +cat tmp-symbol-list.txt | while read symbol do + echo ".def _$symbol; .scl 2; .type 32; .endef;" +done + fi rm tmp-symbol-list.txt diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 0765f4c..3387c00 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -889,7 +889,8 @@ virtual int startup() throw (GeneralException) { if (mserver || hserver || tserver) { TaskMan::Init(); - L->load(&Input(server_fname)); + if (hserver) + L->load(&Input(server_fname)); } if (hserver) { |