summaryrefslogtreecommitdiff
path: root/gr-digital/swig
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/swig')
-rw-r--r--gr-digital/swig/CMakeLists.txt4
-rw-r--r--gr-digital/swig/Makefile.am15
-rw-r--r--gr-digital/swig/digital_swig.i3
3 files changed, 21 insertions, 1 deletions
diff --git a/gr-digital/swig/CMakeLists.txt b/gr-digital/swig/CMakeLists.txt
index 3f97da5e3..dd6097286 100644
--- a/gr-digital/swig/CMakeLists.txt
+++ b/gr-digital/swig/CMakeLists.txt
@@ -23,6 +23,9 @@
include(GrPython)
include(GrSwig)
+set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/digital_swig_doc.i)
+set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include)
+
set(GR_SWIG_INCLUDE_DIRS
${GR_DIGITAL_INCLUDE_DIRS}
${GNURADIO_CORE_SWIG_INCLUDE_DIRS}
@@ -41,6 +44,7 @@ GR_SWIG_INSTALL(
install(
FILES
digital_swig.i
+ ${CMAKE_CURRENT_BINARY_DIR}/digital_swig_doc.i
digital_binary_slicer_fb.i
digital_clock_recovery_mm_cc.i
digital_clock_recovery_mm_ff.i
diff --git a/gr-digital/swig/Makefile.am b/gr-digital/swig/Makefile.am
index 1afa44743..f15202e72 100644
--- a/gr-digital/swig/Makefile.am
+++ b/gr-digital/swig/Makefile.am
@@ -31,6 +31,18 @@ AM_CPPFLAGS = \
$(PYTHON_CPPFLAGS) \
$(WITH_INCLUDES)
+TOP_SWIG_DOC_IFILES = \
+ digital_swig_doc.i
+
+BUILT_SOURCES += \
+ $(TOP_SWIG_DOC_IFILES)
+
+EXTRA_DIST += \
+ $(TOP_SWIG_DOC_IFILES)
+
+$(TOP_SWIG_DOC_IFILES):
+ `echo "" > $@`
+
if GUILE
nobase_guile_DATA = \
gnuradio/digital.scm
@@ -78,7 +90,8 @@ digital_swig_swiginclude_headers = \
digital_ofdm_mapper_bcv.i \
digital_ofdm_sampler.i \
digital_gmskmod_bc.i \
- digital_cpmmod_bc.i
+ digital_cpmmod_bc.i \
+ $(TOP_SWIG_DOC_IFILES)
digital_swig_swig_args = \
$(GR_DIGITAL_INCLUDES)
diff --git a/gr-digital/swig/digital_swig.i b/gr-digital/swig/digital_swig.i
index 3e3a63b61..86b5cab13 100644
--- a/gr-digital/swig/digital_swig.i
+++ b/gr-digital/swig/digital_swig.i
@@ -21,6 +21,9 @@
%include "gnuradio.i"
+//load generated python docstrings
+%include "digital_swig_doc.i"
+
%include <gri_control_loop.i>
%{