summaryrefslogtreecommitdiff
path: root/gr-pager/swig
diff options
context:
space:
mode:
authorTom Rondeau2011-12-04 11:19:37 -0500
committerTom Rondeau2011-12-04 11:19:37 -0500
commit7209280a2b21fb31e5533a17047ed8c6ba5527f1 (patch)
treef3ef58059fa9a55be67230ad1949d57ab2c1a4b8 /gr-pager/swig
parent5c1576570e156633c9531932baa79fda9ff9a573 (diff)
parentf536b394f20ef88b426bf4bb6e9b69f6efb9847e (diff)
downloadgnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.gz
gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.bz2
gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.zip
Merge branch 'more_swigness_docs'
Diffstat (limited to 'gr-pager/swig')
-rw-r--r--gr-pager/swig/CMakeLists.txt4
-rw-r--r--gr-pager/swig/Makefile.am23
-rw-r--r--gr-pager/swig/pager_swig.i3
3 files changed, 25 insertions, 5 deletions
diff --git a/gr-pager/swig/CMakeLists.txt b/gr-pager/swig/CMakeLists.txt
index bfb34c929..9a8d9d0d8 100644
--- a/gr-pager/swig/CMakeLists.txt
+++ b/gr-pager/swig/CMakeLists.txt
@@ -28,6 +28,9 @@ set(GR_SWIG_INCLUDE_DIRS
${GNURADIO_CORE_SWIG_INCLUDE_DIRS}
)
+set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/pager_swig_doc.i)
+set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../lib)
+
set(GR_SWIG_LIBRARIES gnuradio-pager)
GR_SWIG_MAKE(pager_swig pager_swig.i)
@@ -46,6 +49,7 @@ install(
pager_flex_parse.i
pager_flex_sync.i
pager_slicer_fb.i
+ ${CMAKE_CURRENT_BINARY_DIR}/pager_swig_doc.i
DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
COMPONENT "pager_swig"
)
diff --git a/gr-pager/swig/Makefile.am b/gr-pager/swig/Makefile.am
index 3d62c80f0..bf0b095ba 100644
--- a/gr-pager/swig/Makefile.am
+++ b/gr-pager/swig/Makefile.am
@@ -44,6 +44,18 @@ noinst_GUILE = pager.test
TOP_SWIG_IFILES = \
pager_swig.i
+TOP_SWIG_DOC_IFILES = \
+ pager_swig_doc.i
+
+BUILT_SOURCES += \
+ $(TOP_SWIG_DOC_IFILES)
+
+EXTRA_DIST += \
+ $(TOP_SWIG_DOC_IFILES)
+
+$(TOP_SWIG_DOC_IFILES):
+ `echo "" > $@`
+
# Install so that they end up available as:
# import gnuradio.pager
# This ends up at:
@@ -57,11 +69,12 @@ pager_swig_la_swig_libadd = \
# additional SWIG files to be installed
pager_swig_swiginclude_headers = \
- pager_flex_deinterleave.i \
- pager_flex_frame.i \
- pager_flex_parse.i \
- pager_flex_sync.i \
- pager_slicer_fb.i
+ pager_flex_deinterleave.i \
+ pager_flex_frame.i \
+ pager_flex_parse.i \
+ pager_flex_sync.i \
+ pager_slicer_fb.i \
+ $(TOP_SWIG_DOC_IFILES)
if GUILE
TESTS += run_guile_tests
diff --git a/gr-pager/swig/pager_swig.i b/gr-pager/swig/pager_swig.i
index 2896fa368..2cf54c2a7 100644
--- a/gr-pager/swig/pager_swig.i
+++ b/gr-pager/swig/pager_swig.i
@@ -21,6 +21,9 @@
%include "gnuradio.i"
+//load generated python docstrings
+%include "pager_swig_doc.i"
+
%{
#include "pager_flex_frame.h"
#include "pager_slicer_fb.h"