From ea8a60ad9c2e0f9bdc57f77f5506c5906f8d1d6f Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Fri, 3 Dec 2010 23:58:48 -0800 Subject: Make gr-howto-write-a-block work again... Copied Makefile.swig, Mkefile.swig.gen.t from .. Renamed howto.i to howto_swig.i Regenerated Makefile.swig.gen --- gr-howto-write-a-block/swig/howto_swig.i | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gr-howto-write-a-block/swig/howto_swig.i (limited to 'gr-howto-write-a-block/swig/howto_swig.i') diff --git a/gr-howto-write-a-block/swig/howto_swig.i b/gr-howto-write-a-block/swig/howto_swig.i new file mode 100644 index 000000000..868df5739 --- /dev/null +++ b/gr-howto-write-a-block/swig/howto_swig.i @@ -0,0 +1,21 @@ +/* -*- c++ -*- */ + +%include "gnuradio.i" // the common stuff + +%{ +#include "howto_square_ff.h" +#include "howto_square2_ff.h" +%} + +%include "howto_square_ff.i" +%include "howto_square2_ff.i" + +#if SWIGGUILE +%scheme %{ +(load-extension "libguile-gnuradio-howto" "scm_init_gnuradio_howto_module") +%} + +%goops %{ +(use-modules (gnuradio gnuradio_core_runtime)) +%} +#endif -- cgit From 910165a9eccf02bf4cb0fb30fb4e620426c1a000 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Sat, 4 Dec 2010 01:18:36 -0800 Subject: Fix load-extension strings --- gr-howto-write-a-block/swig/howto_swig.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-howto-write-a-block/swig/howto_swig.i') diff --git a/gr-howto-write-a-block/swig/howto_swig.i b/gr-howto-write-a-block/swig/howto_swig.i index 868df5739..c62ddf3eb 100644 --- a/gr-howto-write-a-block/swig/howto_swig.i +++ b/gr-howto-write-a-block/swig/howto_swig.i @@ -12,7 +12,7 @@ #if SWIGGUILE %scheme %{ -(load-extension "libguile-gnuradio-howto" "scm_init_gnuradio_howto_module") +(load-extension "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module") %} %goops %{ -- cgit From 08907ee94fb6c34531d57b988324c67c26c8b747 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Fri, 10 Dec 2010 16:15:40 -0800 Subject: Use load-extension-global instead of load-extension --- gr-howto-write-a-block/swig/howto_swig.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-howto-write-a-block/swig/howto_swig.i') diff --git a/gr-howto-write-a-block/swig/howto_swig.i b/gr-howto-write-a-block/swig/howto_swig.i index c62ddf3eb..d0bbcdc11 100644 --- a/gr-howto-write-a-block/swig/howto_swig.i +++ b/gr-howto-write-a-block/swig/howto_swig.i @@ -12,7 +12,7 @@ #if SWIGGUILE %scheme %{ -(load-extension "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module") +(load-extension-global "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module") %} %goops %{ -- cgit