summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorTom Rondeau2011-12-04 11:19:37 -0500
committerTom Rondeau2011-12-04 11:19:37 -0500
commit7209280a2b21fb31e5533a17047ed8c6ba5527f1 (patch)
treef3ef58059fa9a55be67230ad1949d57ab2c1a4b8 /gnuradio-core/src
parent5c1576570e156633c9531932baa79fda9ff9a573 (diff)
parentf536b394f20ef88b426bf4bb6e9b69f6efb9847e (diff)
downloadgnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.gz
gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.tar.bz2
gnuradio-7209280a2b21fb31e5533a17047ed8c6ba5527f1.zip
Merge branch 'more_swigness_docs'
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/swig/CMakeLists.txt40
-rw-r--r--gnuradio-core/src/lib/swig/Makefile.am20
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_filter.i2
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_general.i2
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_gengen.i2
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_hier.i2
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_io.i2
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core_runtime.i2
8 files changed, 48 insertions, 24 deletions
diff --git a/gnuradio-core/src/lib/swig/CMakeLists.txt b/gnuradio-core/src/lib/swig/CMakeLists.txt
index aa289a18a..bb7ce9a81 100644
--- a/gnuradio-core/src/lib/swig/CMakeLists.txt
+++ b/gnuradio-core/src/lib/swig/CMakeLists.txt
@@ -45,23 +45,23 @@ set(GR_SWIG_LIBRARIES gnuradio-core)
set(GR_SWIG_TARGET_DEPS gengen_generated filter_generated)
-GR_SWIG_MAKE(gnuradio_core_runtime gnuradio_core_runtime.i)
-GR_SWIG_MAKE(gnuradio_core_general gnuradio_core_general.i)
-GR_SWIG_MAKE(gnuradio_core_gengen gnuradio_core_gengen.i)
-GR_SWIG_MAKE(gnuradio_core_filter gnuradio_core_filter.i)
-GR_SWIG_MAKE(gnuradio_core_io gnuradio_core_io.i)
-GR_SWIG_MAKE(gnuradio_core_hier gnuradio_core_hier.i)
-
-GR_SWIG_INSTALL(TARGETS
- gnuradio_core_runtime
- gnuradio_core_general
- gnuradio_core_gengen
- gnuradio_core_filter
- gnuradio_core_io
- gnuradio_core_hier
- DESTINATION ${GR_PYTHON_DIR}/gnuradio/gr
- COMPONENT "core_python"
-)
+foreach(what runtime general gengen filter io hier)
+ SET(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/${what}_swig_doc.i)
+ SET(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../${what} ${CMAKE_CURRENT_BINARY_DIR}/../${what})
+ GR_SWIG_MAKE(gnuradio_core_${what} gnuradio_core_${what}.i)
+ GR_SWIG_INSTALL(
+ TARGETS gnuradio_core_${what}
+ DESTINATION ${GR_PYTHON_DIR}/gnuradio/gr
+ COMPONENT "core_python"
+ )
+ install(
+ FILES
+ gnuradio_core_${what}.i
+ ${CMAKE_CURRENT_BINARY_DIR}/${what}_swig_doc.i
+ DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
+ COMPONENT "core_swig"
+ )
+endforeach(what)
########################################################################
# Install various files
@@ -70,12 +70,6 @@ install(FILES
gnuradio.i
gr_swig_block_magic.i
gr_shared_ptr.i
- gnuradio_core_runtime.i
- gnuradio_core_general.i
- gnuradio_core_gengen.i
- gnuradio_core_filter.i
- gnuradio_core_io.i
- gnuradio_core_hier.i
DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
COMPONENT "core_swig"
)
diff --git a/gnuradio-core/src/lib/swig/Makefile.am b/gnuradio-core/src/lib/swig/Makefile.am
index d304a2123..9509dba32 100644
--- a/gnuradio-core/src/lib/swig/Makefile.am
+++ b/gnuradio-core/src/lib/swig/Makefile.am
@@ -40,12 +40,30 @@ TOP_SWIG_IFILES = \
gnuradio_core_io.i \
gnuradio_core_hier.i
+TOP_SWIG_DOC_IFILES = \
+ filter_swig_doc.i \
+ general_swig_doc.i \
+ gengen_swig_doc.i \
+ hier_swig_doc.i \
+ io_swig_doc.i \
+ runtime_swig_doc.i
+
+
+BUILT_SOURCES += \
+ $(TOP_SWIG_DOC_IFILES)
+
+EXTRA_DIST += \
+ $(TOP_SWIG_DOC_IFILES)
+
+$(TOP_SWIG_DOC_IFILES):
+ `echo "" > $@`
# SWIG headers get installed in ${prefix}/include/gnuradio/swig
swiginclude_HEADERS = \
gnuradio.i \
gr_swig_block_magic.i \
- gr_shared_ptr.i
+ gr_shared_ptr.i \
+ $(TOP_SWIG_DOC_IFILES)
# SWIG headers that get installed in ${prefix}/include/gnuradio/swig/...
nobase_swiginclude_HEADERS = \
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_filter.i b/gnuradio-core/src/lib/swig/gnuradio_core_filter.i
index e825467db..952bf93b4 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_filter.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_filter.i
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+%include "filter_swig_doc.i"
+
#ifndef SWIGIMPORTED
%module(directors="1") gnuradio_core_filter
#endif
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_general.i b/gnuradio-core/src/lib/swig/gnuradio_core_general.i
index b34d4f936..e39a0197a 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_general.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_general.i
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+%include "general_swig_doc.i"
+
#define GR_CORE_API
#ifndef SWIGIMPORTED
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_gengen.i b/gnuradio-core/src/lib/swig/gnuradio_core_gengen.i
index 496ced077..8753cd36b 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_gengen.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_gengen.i
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+%include "gengen_swig_doc.i"
+
#ifndef SWIGIMPORTED
%module(directors="1") gnuradio_core_gengen
#endif
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_hier.i b/gnuradio-core/src/lib/swig/gnuradio_core_hier.i
index 0b8161c5d..bb9c71f53 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_hier.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_hier.i
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+%include "hier_swig_doc.i"
+
#ifndef SWIGIMPORTED
%module(directors="1") gnuradio_hier_hier
#endif
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_io.i b/gnuradio-core/src/lib/swig/gnuradio_core_io.i
index 0d989ea87..d2fa0aede 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_io.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_io.i
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+%include "io_swig_doc.i"
+
#ifndef SWIGIMPORTED
%module(directors="1") gnuradio_core_io
#endif
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core_runtime.i b/gnuradio-core/src/lib/swig/gnuradio_core_runtime.i
index 579c51ce5..7fcac5069 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core_runtime.i
+++ b/gnuradio-core/src/lib/swig/gnuradio_core_runtime.i
@@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA.
*/
+%include "runtime_swig_doc.i"
+
#ifndef SWIGIMPORTED
%module(directors="1") gnuradio_core_runtime
#endif