makedebugtop: include swig.cmo
Lib: factored out more common code, slightly reorganized class type.
added director define and exceptions.
std_string: length from the original ocaml string (no longer depends on
null termination)
ocamldec.swg/ocaml.swg: added caml_string_len
Examples/Makefile.in: quiet about checking out files.
Ocaml.cxx:
Fixed abstract director test case.
Include/exclude director.swg based on directors being enabled.
Final edits for 1.3.20, barring bugs being discovered.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
21 lines
520 B
Bash
Executable file
21 lines
520 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Usage: makedebugtop test_name.c[pp]test
|
|
#
|
|
# Creates an ocaml toplevel for debugging based on a .cpptest or .ctest
|
|
# file.
|
|
#
|
|
|
|
OCAMLINC=/usr/local/lib/ocaml
|
|
swigtest=$1
|
|
thetest=`echo $1 | sed -e 's/\.c[p]*test//g'`
|
|
cppopt=""
|
|
if echo $swigtest | grep -s cpptest ; then
|
|
cppopt=-xc++
|
|
fi
|
|
|
|
echo "Making the test"
|
|
make $swigtest
|
|
echo "Building ${thetest}_top"
|
|
gcc -c -g $cppopt -I$OCAMLINC ${thetest}_wrap.c
|
|
ocamlmktop -cclib -g -custom swig.cmo ${thetest}_wrap.o ${thetest}.cmo -o ${thetest}_top -cclib -lstdc++
|