Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Got Swig to generate Python.

  • Loading branch information...
commit e1b0552aca88853bebe4c1f18681e978cc038db0 1 parent 22a0642
@j3k0 j3k0 authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 sim/swigtorcs/compile.sh
View
8 sim/swigtorcs/compile.sh
@@ -0,0 +1,8 @@
+BUILT_SOURCES="swigtorcs.cpp"
+SWIG_SOURCES="swigtorcs.i swigcar.i swiggfparm.i swiggraphic.i swigmath.i swigraceman.i swigrobot.i swigrobottools.i swigsimu.i swigtrack.i"
+
+PYTHON_FLAGS="-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386"
+#python-config --cflags
+
+swig -Wall -python -c++ -I../libsimulator/interfaces -I../libsimulator -I.. -outdir . swigtorcs.i
+g++ $PYTHON_FLAGS -I../libsimulator/interfaces -I../libsimulator -I.. -c swigtorcs_wrap.cxx
Please sign in to comment.
Something went wrong with that request. Please try again.