summaryrefslogtreecommitdiff
path: root/gr-uhd/swig
diff options
context:
space:
mode:
authorJosh Blum2010-03-30 14:08:11 -0700
committerJosh Blum2010-03-30 14:08:11 -0700
commita87552815119742d98561f9b53ab0da5513514bb (patch)
tree07a55e9132bd6ac57cdcf85f69aa50bce8f325c1 /gr-uhd/swig
parent6851718b6d9a97a8c9397a1548708c7075de98e4 (diff)
downloadgnuradio-a87552815119742d98561f9b53ab0da5513514bb.tar.gz
gnuradio-a87552815119742d98561f9b53ab0da5513514bb.tar.bz2
gnuradio-a87552815119742d98561f9b53ab0da5513514bb.zip
gr-uhd working with io type
Diffstat (limited to 'gr-uhd/swig')
-rw-r--r--gr-uhd/swig/Makefile.am5
-rw-r--r--gr-uhd/swig/uhd_swig.i2
2 files changed, 6 insertions, 1 deletions
diff --git a/gr-uhd/swig/Makefile.am b/gr-uhd/swig/Makefile.am
index 3b1fd20f8..183e6b587 100644
--- a/gr-uhd/swig/Makefile.am
+++ b/gr-uhd/swig/Makefile.am
@@ -25,6 +25,7 @@ AM_CPPFLAGS = \
$(STD_DEFINES_AND_INCLUDES) \
$(PYTHON_CPPFLAGS) \
$(WITH_INCLUDES) \
+ $(UHD_CFLAGS) \
-I$(top_srcdir)/gr-uhd/lib
if PYTHON
@@ -56,7 +57,9 @@ uhd_swig_swiginclude_headers =
include $(top_srcdir)/Makefile.swig
# FIXME better way to set this?
-STD_SWIG_PYTHON_ARGS += -I$(top_srcdir)/gr-uhd/lib
+STD_SWIG_PYTHON_ARGS += \
+ $(UHD_CFLAGS) \
+ -I$(top_srcdir)/gr-uhd/lib
# add some of the variables generated inside the Makefile.swig.gen
BUILT_SOURCES = $(swig_built_sources)
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index 363d9c914..2642f9450 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -27,8 +27,10 @@
#include <uhd_simple_sink.h>
%}
+%include <uhd/config.hpp>
%include <uhd/types/ranges.hpp>
%include <uhd/types/tune_result.hpp>
+%include <uhd/types/io_type.hpp>
GR_SWIG_BLOCK_MAGIC(uhd,simple_source)
%include <uhd_simple_source.h>