summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/swig/howto_swig.i
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-08-17 12:30:09 -0700
committerJosh Blum <josh@joshknows.com>2011-08-17 12:30:09 -0700
commitfb2f45cdddc41d5aba177204aa419cea3a0aea49 (patch)
treee2d3195b9782e047518fe1ea9f848346b480cfd4 /gr-howto-write-a-block-cmake/swig/howto_swig.i
parente6ed4fa7bb0d253adbf0cf2ae4da7c301b3c971f (diff)
parent626018eb037808cdc32b5eb1907ae9d5f80d3e55 (diff)
Merge branch 'next' into digital
Diffstat (limited to 'gr-howto-write-a-block-cmake/swig/howto_swig.i')
-rw-r--r--gr-howto-write-a-block-cmake/swig/howto_swig.i21
1 files changed, 21 insertions, 0 deletions
diff --git a/gr-howto-write-a-block-cmake/swig/howto_swig.i b/gr-howto-write-a-block-cmake/swig/howto_swig.i
new file mode 100644
index 0000000000..d0bbcdc115
--- /dev/null
+++ b/gr-howto-write-a-block-cmake/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-global "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module")
+%}
+
+%goops %{
+(use-modules (gnuradio gnuradio_core_runtime))
+%}
+#endif