summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gruel/src/swig/CMakeLists.txt3
-rw-r--r--gruel/src/swig/Makefile.am12
-rw-r--r--gruel/src/swig/pmt_swig.i11
3 files changed, 26 insertions, 0 deletions
diff --git a/gruel/src/swig/CMakeLists.txt b/gruel/src/swig/CMakeLists.txt
index c2769ae27..c9651eb3f 100644
--- a/gruel/src/swig/CMakeLists.txt
+++ b/gruel/src/swig/CMakeLists.txt
@@ -26,6 +26,9 @@ include(GrSwig)
set(GR_SWIG_INCLUDE_DIRS ${GRUEL_INCLUDE_DIRS})
set(GR_SWIG_LIBRARIES gruel)
+set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/pmt_swig_doc.i)
+set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include/gruel ${CMAKE_CURRENT_BINARY_DIR}/../include/gruel)
+
GR_SWIG_MAKE(pmt_swig pmt_swig.i)
GR_SWIG_INSTALL(
diff --git a/gruel/src/swig/Makefile.am b/gruel/src/swig/Makefile.am
index 3261e47c2..bf43e01fa 100644
--- a/gruel/src/swig/Makefile.am
+++ b/gruel/src/swig/Makefile.am
@@ -35,6 +35,18 @@ AM_CPPFLAGS = \
TOP_SWIG_IFILES = \
pmt_swig.i
+TOP_SWIG_DOC_IFILES = \
+ pmt_swig_doc.i
+
+BUILT_SOURCES += \
+ $(TOP_SWIG_DOC_IFILES)
+
+$(TOP_SWIG_DOC_IFILES):
+ `echo "" > $@`
+
+install-data-local:
+ cp -p $(TOP_SWIG_DOC_IFILES) $(swigincludedir)
+
# Install so that they end up available as:
# import gruel.pmt
# This ends up at:
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i
index 276d232a4..afc80433a 100644
--- a/gruel/src/swig/pmt_swig.i
+++ b/gruel/src/swig/pmt_swig.i
@@ -34,6 +34,9 @@
#include <gruel/pmt.h>
%}
+//load generated python docstrings
+%include "pmt_swig_doc.i"
+
////////////////////////////////////////////////////////////////////////
// Language independent exception handler
////////////////////////////////////////////////////////////////////////
@@ -52,6 +55,14 @@
}
+/*!
+ * \brief this is a test function.
+ *
+ * this is only a test.
+ */
+bool test_pmt_is_symbol(void);
+
+
// Template intrusive_ptr for Swig to avoid dereferencing issues
namespace pmt{
class pmt_base;