using the global runtime.swg instead of python/pyrunalias.swg. Now the same solution can be used in other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c573cfe3a8
commit
492c58c659
6 changed files with 91 additions and 17 deletions
|
|
@ -9,10 +9,10 @@ SWIGOPT =
|
|||
all::
|
||||
$(SWIG) -co swigrun.swg
|
||||
$(SWIG) -o pyrun.swg -co python/pyrun.swg
|
||||
$(SWIG) -o pyrunalias.swg -co python/pyrunalias.swg
|
||||
$(SWIG) -o runtime.swg -co runtime.swg
|
||||
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
|
||||
rm -f swigrun.swg pyrun.swg pyrunalias.swg
|
||||
rm -f *.swg
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
|
|
@ -21,7 +21,7 @@ static::
|
|||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile python_clean
|
||||
rm -f $(TARGET).py
|
||||
rm -f swigrun.swg pyrun.swg pyrunalias.swg
|
||||
rm -f *.swg
|
||||
|
||||
check: all
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <Python.h>
|
||||
#include "swigrun.swg"
|
||||
#include "pyrun.swg"
|
||||
#include "pyrunalias.swg"
|
||||
#include "runtime.swg"
|
||||
|
||||
#include "example.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue