summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/swig/Makefile.am
diff options
context:
space:
mode:
authorEric Blossom <eb@comsec.com>2010-11-15 23:49:35 -0800
committerEric Blossom <eb@comsec.com>2010-11-15 23:49:35 -0800
commitc80fdf2897624d10123a35b1a19d150f3a5645c8 (patch)
tree4503432c71143f385cf8264611c6528682a7b84c /gnuradio-core/src/lib/swig/Makefile.am
parentf0ed1de2d15b24eae7be7ab8a4762a6fd74ff681 (diff)
Modify GR_SWIG_BLOCK_MAGIC to not strip package prefix when using
GUILE outside of gnuradio-core. This avoids the problem with the guile bindings where multiple blocks end up with the name gr:sink (e.g., audio_alsa_sink). With this change, it ends us as gr:audio-alsa-sink. Blocks in gnuradio-core continue to have the leading gr_ removed from their class names.
Diffstat (limited to 'gnuradio-core/src/lib/swig/Makefile.am')
-rw-r--r--gnuradio-core/src/lib/swig/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/swig/Makefile.am b/gnuradio-core/src/lib/swig/Makefile.am
index 5e003bdf2f..8e356bea88 100644
--- a/gnuradio-core/src/lib/swig/Makefile.am
+++ b/gnuradio-core/src/lib/swig/Makefile.am
@@ -104,6 +104,7 @@ swig_built_sources += $(PYTHON_GEN)
endif # end of if python
if GUILE
+SWIG_GUILE_FLAGS += -DIN_GNURADIO_CORE
#GUILE_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,%.scm,$(HFILE)))
GUILE_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,gnuradio/%.scm,$(HFILE)))
# GUILE_GEN_STAMPS = $(filter %.scm,$(TOP_SWIG_IFILES))