From d33f398c630e1f996b077ae676e1019e5239cc7c Mon Sep 17 00:00:00 2001 From: John Lenz Date: Sun, 17 Oct 2004 19:56:35 +0000 Subject: [PATCH] Update Examples to not build runtime library git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6415 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/perl5/import/Makefile | 8 +++----- Examples/perl5/import/README | 9 +-------- Examples/perl5/import/runtime.i | 3 --- Examples/python/import/Makefile | 10 ++++------ Examples/python/import/README | 9 +-------- Examples/python/import/runtime.i | 3 --- Examples/python/import_template/Makefile | 8 +++----- Examples/python/import_template/README | 9 +-------- Examples/python/import_template/runtime.i | 3 --- Examples/ruby/import/Makefile | 8 +++----- Examples/ruby/import/README | 9 +-------- Examples/ruby/import/runtime.i | 3 --- Examples/ruby/import_template/Makefile | 8 +++----- Examples/ruby/import_template/README | 9 +-------- Examples/ruby/import_template/runtime.i | 3 --- Examples/tcl/import/Makefile | 8 +++----- Examples/tcl/import/README | 9 +-------- Examples/tcl/import/runtime.i | 3 --- 18 files changed, 25 insertions(+), 97 deletions(-) delete mode 100644 Examples/perl5/import/runtime.i delete mode 100644 Examples/python/import/runtime.i delete mode 100644 Examples/python/import_template/runtime.i delete mode 100644 Examples/ruby/import/runtime.i delete mode 100644 Examples/ruby/import_template/runtime.i delete mode 100644 Examples/tcl/import/runtime.i diff --git a/Examples/perl5/import/Makefile b/Examples/perl5/import/Makefile index f2f8019c5..60dfdfcee 100644 --- a/Examples/perl5/import/Makefile +++ b/Examples/perl5/import/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -lruntime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' perl5_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='baseclass' INTERFACE='base.i' perl5_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ diff --git a/Examples/perl5/import/README b/Examples/perl5/import/README index 08b4c5b1b..2aa43993a 100644 --- a/Examples/perl5/import/README +++ b/Examples/perl5/import/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,8 +23,6 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - libruntime.so can be loaded. - Run the test as described above Windows: diff --git a/Examples/perl5/import/runtime.i b/Examples/perl5/import/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/perl5/import/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime - diff --git a/Examples/python/import/Makefile b/Examples/python/import/Makefile index 7b2b72103..fa49f3145 100644 --- a/Examples/python/import/Makefile +++ b/Examples/python/import/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -l_runtime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' python_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' python_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ @@ -18,6 +16,6 @@ all:: clean:: $(MAKE) -f $(TOP)/Makefile python_clean - @rm -f foo.py bar.py spam.py base.py runtime.py + @rm -f foo.py bar.py spam.py base.py check: all diff --git a/Examples/python/import/README b/Examples/python/import/README index 9d4a8305b..9996c315e 100644 --- a/Examples/python/import/README +++ b/Examples/python/import/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,8 +23,6 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - lib_runtime.so can be loaded. - Run the test as described above Windows: diff --git a/Examples/python/import/runtime.i b/Examples/python/import/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/python/import/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime - diff --git a/Examples/python/import_template/Makefile b/Examples/python/import_template/Makefile index 7b2b72103..1debca77b 100644 --- a/Examples/python/import_template/Makefile +++ b/Examples/python/import_template/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -l_runtime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' python_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' python_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ diff --git a/Examples/python/import_template/README b/Examples/python/import_template/README index e84fc75f1..ee9ca4640 100644 --- a/Examples/python/import_template/README +++ b/Examples/python/import_template/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,7 +23,5 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - lib_runtime.so can be loaded. - Run the test as described above diff --git a/Examples/python/import_template/runtime.i b/Examples/python/import_template/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/python/import_template/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime - diff --git a/Examples/ruby/import/Makefile b/Examples/ruby/import/Makefile index 5c45effb8..acae6e6bf 100644 --- a/Examples/ruby/import/Makefile +++ b/Examples/ruby/import/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -lruntime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' ruby_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' ruby_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ diff --git a/Examples/ruby/import/README b/Examples/ruby/import/README index ffd835c7e..8020e0b1f 100644 --- a/Examples/ruby/import/README +++ b/Examples/ruby/import/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,8 +23,6 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - libruntime.so can be loaded. - Run the test as described above Windows: diff --git a/Examples/ruby/import/runtime.i b/Examples/ruby/import/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/ruby/import/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime - diff --git a/Examples/ruby/import_template/Makefile b/Examples/ruby/import_template/Makefile index 5c45effb8..acae6e6bf 100644 --- a/Examples/ruby/import_template/Makefile +++ b/Examples/ruby/import_template/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -lruntime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' ruby_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' ruby_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ diff --git a/Examples/ruby/import_template/README b/Examples/ruby/import_template/README index a52fe61cc..d455fd9f5 100644 --- a/Examples/ruby/import_template/README +++ b/Examples/ruby/import_template/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,7 +23,5 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - libruntime.so can be loaded. - Run the test as described above diff --git a/Examples/ruby/import_template/runtime.i b/Examples/ruby/import_template/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/ruby/import_template/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime - diff --git a/Examples/tcl/import/Makefile b/Examples/tcl/import/Makefile index 855238137..6b257aa7c 100644 --- a/Examples/tcl/import/Makefile +++ b/Examples/tcl/import/Makefile @@ -1,11 +1,9 @@ TOP = ../.. -SWIG = $(TOP)/../swig -SWIGOPT = -noruntime -LIBS = -L. -lruntime +SWIG = $(TOP)/../preinst-swig +SWIGOPT = +LIBS = all:: - $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='-runtime' \ - LIBPREFIX='lib' TARGET='runtime' INTERFACE='runtime.i' tcl_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' tcl_cpp $(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \ diff --git a/Examples/tcl/import/README b/Examples/tcl/import/README index 719a61bfd..558d546a3 100644 --- a/Examples/tcl/import/README +++ b/Examples/tcl/import/README @@ -15,12 +15,7 @@ a separate C++ class. Each module used %import to refer to another module. For example, the 'foo.i' module uses '%import base.i' to get -definitions for its base class. These modules do not generate -any runtime code (-noruntime commandline option). - -The runtime.i file is an empty SWIG module which will generate -the runtime library code for sharing amongst the other modules -(uses -runtime commandline option). +definitions for its base class. If everything is okay, all of the modules will load correctly and type checking will work correctly. @@ -28,8 +23,6 @@ type checking will work correctly. Unix: ----- - Run make -- Make sure your LD_LIBRARY_PATH includes the current directory so that - libruntime.so can be loaded. - Run the test as described above Windows: diff --git a/Examples/tcl/import/runtime.i b/Examples/tcl/import/runtime.i deleted file mode 100644 index b773cd72d..000000000 --- a/Examples/tcl/import/runtime.i +++ /dev/null @@ -1,3 +0,0 @@ -// Empty module for building the runtime library -%module runtime -