summaryrefslogtreecommitdiff
path: root/gr-qtgui
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui')
-rw-r--r--gr-qtgui/swig/CMakeLists.txt4
-rw-r--r--gr-qtgui/swig/Makefile.am15
-rw-r--r--gr-qtgui/swig/qtgui_swig.i3
3 files changed, 21 insertions, 1 deletions
diff --git a/gr-qtgui/swig/CMakeLists.txt b/gr-qtgui/swig/CMakeLists.txt
index 34b40fb7e..7a976f917 100644
--- a/gr-qtgui/swig/CMakeLists.txt
+++ b/gr-qtgui/swig/CMakeLists.txt
@@ -29,6 +29,9 @@ set(GR_SWIG_INCLUDE_DIRS
${QWT_INCLUDE_DIRS}
)
+set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/qtgui_swig_doc.i)
+set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include)
+
set(GR_SWIG_LIBRARIES gnuradio-qtgui)
GR_SWIG_MAKE(qtgui_swig qtgui_swig.i)
@@ -45,6 +48,7 @@ install(FILES
qtgui_sink_f.i
qtgui_time_sink_c.i
qtgui_time_sink_f.i
+ ${CMAKE_CURRENT_BINARY_DIR}/qtgui_swig_doc.i
DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
COMPONENT "qtgui_swig"
)
diff --git a/gr-qtgui/swig/Makefile.am b/gr-qtgui/swig/Makefile.am
index ad6f49e00..64638ea2c 100644
--- a/gr-qtgui/swig/Makefile.am
+++ b/gr-qtgui/swig/Makefile.am
@@ -39,6 +39,18 @@ AM_CPPFLAGS = \
TOP_SWIG_IFILES = \
qtgui_swig.i
+TOP_SWIG_DOC_IFILES = \
+ qtgui_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.qtgui
# This ends up at:
@@ -55,4 +67,5 @@ qtgui_swig_swiginclude_headers = \
qtgui_sink_c.i \
qtgui_sink_f.i \
qtgui_time_sink_c.i \
- qtgui_time_sink_f.i
+ qtgui_time_sink_f.i \
+ $(TOP_SWIG_DOC_IFILES)
diff --git a/gr-qtgui/swig/qtgui_swig.i b/gr-qtgui/swig/qtgui_swig.i
index 7cf8873e7..6e5f6e124 100644
--- a/gr-qtgui/swig/qtgui_swig.i
+++ b/gr-qtgui/swig/qtgui_swig.i
@@ -22,6 +22,9 @@
%include "gnuradio.i"
+//load generated python docstrings
+%include "qtgui_swig_doc.i"
+
%{
#include "qtgui_sink_c.h"
#include "qtgui_sink_f.h"