use preinst-swig in all the examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
53aca58eb3
commit
6de5dc38fe
21 changed files with 19 additions and 34 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,6 @@ class PyCallback(example.Callback):
|
||||||
example.Callback.__init__(self)
|
example.Callback.__init__(self)
|
||||||
def run(self):
|
def run(self):
|
||||||
print "PyCallback.run()"
|
print "PyCallback.run()"
|
||||||
def __del__(self):
|
|
||||||
print "PyCallback.__del__()"
|
|
||||||
# for shadow class extensions that are not "disowned" and
|
|
||||||
# define a __del__ method, it is very important to call the
|
|
||||||
# base class __del__. otherwise the c++ objects will never
|
|
||||||
# be deleted.
|
|
||||||
example.Callback.__del__(self)
|
|
||||||
|
|
||||||
|
|
||||||
# Create an Caller instance
|
# Create an Caller instance
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS =
|
SRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS =
|
CXXSRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,6 @@ class CEO(example.Manager):
|
||||||
example.Manager.__init__(self, name)
|
example.Manager.__init__(self, name)
|
||||||
def getPosition(self):
|
def getPosition(self):
|
||||||
return "CEO"
|
return "CEO"
|
||||||
def __del__(self):
|
|
||||||
print "CEO.__del__(),", self.getName()
|
|
||||||
# for shadow class extensions that are not "disowned" and
|
|
||||||
# define a __del__ method, it is very important to call the
|
|
||||||
# base class __del__. otherwise the c++ objects will never
|
|
||||||
# be deleted.
|
|
||||||
example.Manager.__del__(self)
|
|
||||||
|
|
||||||
|
|
||||||
# Create an instance of our employee extension class, CEO. The calls to
|
# Create an instance of our employee extension class, CEO. The calls to
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS =
|
CXXSRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS =
|
SRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS =
|
CXXSRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS = example.cxx
|
CXXSRCS = example.cxx
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
CXXSRCS =
|
CXXSRCS =
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
SWIG = $(TOP)/../swig
|
SWIG = $(TOP)/../preinst-swig
|
||||||
SRCS = example.c
|
SRCS = example.c
|
||||||
TARGET = example
|
TARGET = example
|
||||||
INTERFACE = example.i
|
INTERFACE = example.i
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue