diff options
Diffstat (limited to 'gr-video-sdl')
-rw-r--r-- | gr-video-sdl/src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | gr-video-sdl/src/Makefile.am | 15 | ||||
-rw-r--r-- | gr-video-sdl/src/video_sdl.i | 3 |
3 files changed, 22 insertions, 0 deletions
diff --git a/gr-video-sdl/src/CMakeLists.txt b/gr-video-sdl/src/CMakeLists.txt index 9d0c2c457..3bfe9bb62 100644 --- a/gr-video-sdl/src/CMakeLists.txt +++ b/gr-video-sdl/src/CMakeLists.txt @@ -71,6 +71,9 @@ set(GR_SWIG_INCLUDE_DIRS ${GNURADIO_CORE_SWIG_INCLUDE_DIRS} ) +set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/video_sdl_swig_doc.i) +set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}) + set(GR_SWIG_LIBRARIES gnuradio-video-sdl) GR_SWIG_MAKE(video_sdl video_sdl.i) @@ -83,6 +86,7 @@ GR_SWIG_INSTALL( install( FILES video_sdl.i + ${CMAKE_CURRENT_BINARY_DIR}/video_sdl_swig_doc.i DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig COMPONENT "video_sdl_swig" ) diff --git a/gr-video-sdl/src/Makefile.am b/gr-video-sdl/src/Makefile.am index 496671bea..e52e23632 100644 --- a/gr-video-sdl/src/Makefile.am +++ b/gr-video-sdl/src/Makefile.am @@ -56,6 +56,18 @@ libgnuradio_video_sdl_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS) TOP_SWIG_IFILES = \ video_sdl.i +TOP_SWIG_DOC_IFILES = \ + video_sdl_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.video_sdl # This ends up at: @@ -67,6 +79,9 @@ video_sdl_pythondir_category = \ video_sdl_la_swig_libadd = \ libgnuradio-video-sdl.la +video_sdl_swiginclude_headers = \ + $(TOP_SWIG_DOC_IFILES) + if PYTHON TESTS += run_tests endif diff --git a/gr-video-sdl/src/video_sdl.i b/gr-video-sdl/src/video_sdl.i index 17b1b799c..010851d10 100644 --- a/gr-video-sdl/src/video_sdl.i +++ b/gr-video-sdl/src/video_sdl.i @@ -22,6 +22,9 @@ %include "gnuradio.i" // the common stuff +//load generated python docstrings +%include "video_sdl_swig_doc.i" + %{ #include "video_sdl_sink_uc.h" #include "video_sdl_sink_s.h" |