Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gnuradio: update to 3.8.0.0.
@ 2020-02-02 16:42 voidlinux-github
  2020-02-09 18:08 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2020-02-02 16:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

There is a new pull request by bra1nwave against master on the void-packages repository

https://github.com/bra1nwave/void-packages gnuradio
https://github.com/void-linux/void-packages/pull/18741

gnuradio: update to 3.8.0.0.
fixes https://github.com/void-linux/void-packages/issues/18697

The patches for `gnuradio-osmosdr` are from [Debian](https://sources.debian.org/patches/gr-osmosdr/0.1.5-1/)

Build logs: [i686](http://sprunge.us/MecsiM) | [x86_64](http://sprunge.us/RzdWAq) | [x86_64-musl](http://sprunge.us/lWfNNc)

A patch file from https://github.com/void-linux/void-packages/pull/18741.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnuradio-18741.patch --]
[-- Type: text/x-diff, Size: 1009818 bytes --]

From 5ca30989de6419541bf63827101530e30934cbbc Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sat, 1 Feb 2020 20:51:04 +0100
Subject: [PATCH 01/10] gnuradio: update to 3.8.0.0.

[skip ci]
---
 common/shlibs                                 | 37 ++++++++-----------
 ...73bf00b73ba1dd72813fbc4c4c5d0f66d339.patch | 36 ------------------
 srcpkgs/gnuradio/template                     | 21 +++++------
 3 files changed, 26 insertions(+), 68 deletions(-)
 delete mode 100644 srcpkgs/gnuradio/patches/c01473bf00b73ba1dd72813fbc4c4c5d0f66d339.patch

diff --git a/common/shlibs b/common/shlibs
index 35c51bac5dc..a03454d8bd9 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3165,27 +3165,22 @@ libarcan_tui.so.0.11 arcan-0.5.4.3_1
 liblwipv6.so.2 lwipv6-1.5a_1
 libpipewire-0.2.so.1 libpipewire-0.2.2_1
 libvolk.so.1.4 volk-1.4_1
-libgnuradio-runtime-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-pmt-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-blocks-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-audio-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-noaa-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-fec-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-fft-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-filter-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-analog-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-digital-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-dtv-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-atsc-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-channels-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-pager-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-trellis-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-video-sdl-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-vocoder-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-fcd-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-wavelet-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-wxgui-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
-libgnuradio-uhd-3.7.13.5.so.0.0.0 gnuradio-3.7.13.5_1
+libgnuradio-runtime.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-pmt.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-blocks.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-audio.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-fec.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-fft.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-filter.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-analog.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-digital.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-dtv.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-channels.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-trellis.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-video-sdl.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-vocoder.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-wavelet.so.3.8.0 gnuradio-3.8.0.0_1
+libgnuradio-uhd.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-osmosdr-0.1.4.so.0.0.0 gnuradio-osmosdr-0.1.4_1
 libflann_cpp.so.1.9 flann-1.9.1_1
 libflann.so.1.9 flann-1.9.1_1
diff --git a/srcpkgs/gnuradio/patches/c01473bf00b73ba1dd72813fbc4c4c5d0f66d339.patch b/srcpkgs/gnuradio/patches/c01473bf00b73ba1dd72813fbc4c4c5d0f66d339.patch
deleted file mode 100644
index 091440658f7..00000000000
--- a/srcpkgs/gnuradio/patches/c01473bf00b73ba1dd72813fbc4c4c5d0f66d339.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From c01473bf00b73ba1dd72813fbc4c4c5d0f66d339 Mon Sep 17 00:00:00 2001
-From: Michael Dickens <michael.dickens@ettus.com>
-Date: Thu, 23 May 2019 10:26:00 -0400
-Subject: [PATCH] blocks: simple fix for Boost 1.70.0 in socket_pdu
-
-NOTE: There have been multiple fixes proposed, such as
-https://github.com/gnuradio/gnuradio/pull/2451 .
-This one is the simplest and most compatible.
----
- gr-blocks/lib/socket_pdu_impl.cc | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git gr-blocks/lib/socket_pdu_impl.cc gr-blocks/lib/socket_pdu_impl.cc
-index e20f1478f0..168d74ebb2 100644
---- gr-blocks/lib/socket_pdu_impl.cc
-+++ gr-blocks/lib/socket_pdu_impl.cc
-@@ -1,6 +1,6 @@
- /* -*- c++ -*- */
- /*
-- * Copyright 2013 Free Software Foundation, Inc.
-+ * Copyright 2013,2019 Free Software Foundation, Inc.
-  *
-  * This file is part of GNU Radio
-  *
-@@ -165,7 +165,11 @@ namespace gr {
-     void
-     socket_pdu_impl::start_tcp_accept()
-     {
-+#if (BOOST_VERSION >= 107000)
-+      tcp_connection::sptr new_connection = tcp_connection::make(d_io_service, d_rxbuf.size(), d_tcp_no_delay);
-+#else
-       tcp_connection::sptr new_connection = tcp_connection::make(d_acceptor_tcp->get_io_service(), d_rxbuf.size(), d_tcp_no_delay);
-+#endif
- 
-       d_acceptor_tcp->async_accept(new_connection->socket(),
-         boost::bind(&socket_pdu_impl::handle_tcp_accept, this,
diff --git a/srcpkgs/gnuradio/template b/srcpkgs/gnuradio/template
index fbf456ea0ec..be6d3e20312 100644
--- a/srcpkgs/gnuradio/template
+++ b/srcpkgs/gnuradio/template
@@ -1,23 +1,23 @@
 # Template file for 'gnuradio'
 pkgname=gnuradio
-version=3.7.13.5
-revision=3
+version=3.8.0.0
+revision=1
 build_style=cmake
-nocross="relies on volk, which is not complete for arm"
 conf_files="/etc/gnuradio/conf.d/*"
-configure_args="-DENABLE_INTERNAL_VOLK=OFF"
-pycompile_module="gnuradio grc_gnuradio pmt"
-hostmakedepends="pkg-config doxygen swig python-cheetah python-lxml
- python-numpy python-Sphinx"
+configure_args="-DENABLE_INTERNAL_VOLK=OFF -DGR_PYTHON_DIR=${py3_sitelib}"
+hostmakedepends="pkg-config doxygen swig python3-Mako python3-Sphinx
+ python3-cairo python3-numpy python3-yaml"
 makedepends="SDL-devel boost-devel fftw-devel gsl-devel jack-devel libgsm-devel
- libusb-devel pygtk-devel volk-devel wxPython-devel uhd-devel python-devel"
-depends="pygtk python-cheetah python-lxml python-numpy"
+ libusb-devel volk-devel uhd-devel gtk+3-devel python3-devel python3-gobject-devel
+ log4cpp-devel gmpxx-devel mpir-devel"
+depends="python3-cheetah3 python3-numpy python3-Mako python3-gobject python3-yaml"
 short_desc="Framework for software defined radio"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="GPL-3.0-or-later"
 homepage="https://www.gnuradio.org"
 distfiles="https://github.com/gnuradio/gnuradio/archive/v${version}.tar.gz"
-checksum=9afcd0e4499160bce17c8c5c100f461791ad26b4bcb967d956fb9567e74dd57f
+checksum=03fd01f0b27033befb91709b3d56f95e0869b5fb8bc71bec2662266a3f0dedf5
+nocross="relies on volk, which is not complete for arm"
 
 if [ "$CROSS_BUILD" ]; then
 	nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/7596/steps/shell_3/logs/stdio"
@@ -25,7 +25,6 @@ fi
 
 post_install() {
 	rm ${DESTDIR}/usr/share/gnuradio/examples/audio/dial_tone \
-		${DESTDIR}/usr/share/gnuradio/examples/fcd/fcd_nfm_rx \
 		${DESTDIR}/usr/share/gnuradio/examples/uhd/tags_demo
 	vinstall grc/scripts/freedesktop/gnuradio-grc.desktop 644 \
 		usr/share/applications

From 6f03335c18578dcb6de5d3143fd3442baf9a5762 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sat, 1 Feb 2020 20:53:57 +0100
Subject: [PATCH 02/10] volk: update to 2.1.0.

[skip ci]
---
 common/shlibs         |  2 +-
 srcpkgs/volk/template | 15 ++++++++-------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index a03454d8bd9..6d38d67491e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3164,7 +3164,7 @@ libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1
 libarcan_tui.so.0.11 arcan-0.5.4.3_1
 liblwipv6.so.2 lwipv6-1.5a_1
 libpipewire-0.2.so.1 libpipewire-0.2.2_1
-libvolk.so.1.4 volk-1.4_1
+libvolk.so.2.1 volk-2.1_1
 libgnuradio-runtime.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-pmt.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-blocks.so.3.8.0 gnuradio-3.8.0.0_1
diff --git a/srcpkgs/volk/template b/srcpkgs/volk/template
index fb00ecf1240..a95eb127f14 100644
--- a/srcpkgs/volk/template
+++ b/srcpkgs/volk/template
@@ -1,18 +1,19 @@
 # Template file for 'volk'
 pkgname=volk
-version=1.4
-revision=5
+version=2.1.0
+revision=1
 build_style=cmake
-hostmakedepends="pkg-config python-cheetah git python-Mako
- python-six"
-makedepends="boost-devel python-cheetah python-devel
- python-Mako python-six"
+hostmakedepends="pkg-config python3-cheetah3 git python3-Mako
+ python3-six"
+makedepends="boost-devel python3-cheetah3 python3-devel
+ python3-Mako python3-six"
 short_desc="Vector-Optimized Library of Kernels"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="GPL-3.0-or-later"
 homepage="http://libvolk.org/"
 distfiles="https://github.com/gnuradio/volk/archive/v${version}.tar.gz"
-checksum=32131ba17846850c07270bc5897dd2de7130ec02ca029875a36966335120e7bf
+checksum=fe422f10b880d10cb72bdd1a3362a0f65d2d6d655dd1296459773c89fae51781
+nocross="not complete for arm"
 
 case "$XBPS_TARGET_MACHINE" in
 	armv6l*)

From 3c9dc522cdc207360d11ee7f10d6b78aa89824f1 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sat, 1 Feb 2020 20:59:03 +0100
Subject: [PATCH 03/10] uhd: update to 3.15.0.0.

---
 common/shlibs        | 2 +-
 srcpkgs/uhd/template | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index 6d38d67491e..103585962f9 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3503,7 +3503,7 @@ libcaf_core.so.0.16.2 bro-2.6.1_1
 libcaf_openssl.so.0.16.2 bro-2.6.1_1
 libllhttp.so.1 llhttp-1.0.1_1
 libpinyin.so.13 libpinyin-2.2.1_1
-libuhd.so.3.14.1 uhd-3.14.1.0_1
+libuhd.so.3.15.0 uhd-3.15.0.0_1
 libeditline.so.1 editline-1.16.0_1
 libgnuradio-rds-3.7.0git.so.0.0.0 gnuradio-rds-1.1.0_1
 libgnuradio-nrsc5-1.0.0git.so.0.0.0 gnuradio-nrsc5-1.0.0_1
diff --git a/srcpkgs/uhd/template b/srcpkgs/uhd/template
index 7d9d37c6ec2..8bda2879564 100644
--- a/srcpkgs/uhd/template
+++ b/srcpkgs/uhd/template
@@ -1,11 +1,11 @@
 # Template file for 'uhd'
 pkgname=uhd
-version=3.14.1.1
-revision=2
+version=3.15.0.0
+revision=1
 wrksrc="${pkgname}-${version}"
 build_wrksrc=host
 build_style=cmake
-hostmakedepends="doxygen pkg-config python-Mako python-numpy python-requests"
+hostmakedepends="doxygen pkg-config python3-Mako python3-numpy python3-requests"
 makedepends="libusb-devel boost-devel"
 short_desc="Ettus USRP Hardware driver library"
 maintainer="Remi Pommarel <repk@triplefau.lt>"
@@ -13,7 +13,7 @@ license="GPL-3.0-or-later"
 homepage="https://files.ettus.com/"
 changelog="https://raw.githubusercontent.com/EttusResearch/uhd/master/CHANGELOG"
 distfiles="https://github.com/EttusResearch/uhd/archive/v${version}.tar.gz"
-checksum=8cbcb22d12374ceb2859689b1d68d9a5fa6bd5bd82407f66952863d5547d27d0
+checksum=eed4a77d75faafff56be78985950039f8d9d1eb9fcbd58b8862e481dd49825cd
 
 case "${XBPS_TARGET_MACHINE}" in
 	arm*) configure_args="-DNEON_SIMD_ENABLE=OFF"

From 20bf8c5819ac7ff5c230b3b1becbaae532a70c39 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sat, 1 Feb 2020 21:05:37 +0100
Subject: [PATCH 04/10] New package: mpir-3.0.0

---
 common/shlibs         |  2 ++
 srcpkgs/mpir-devel    |  1 +
 srcpkgs/mpir/template | 24 ++++++++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 120000 srcpkgs/mpir-devel
 create mode 100644 srcpkgs/mpir/template

diff --git a/common/shlibs b/common/shlibs
index 103585962f9..77c9c1c1d75 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3790,3 +3790,5 @@ librdkafka++.so.1 librdkafka-1.3.0_1
 libco.so.0 libco-20_1
 libraft.so.0 raft-0.9.16_1
 libmdnsd.so.0 libmdnsd-0.8_1
+libmpir.so.23 mpir-3.0.0_1
+libmpirxx.so.8 mpir-3.0.0_1
diff --git a/srcpkgs/mpir-devel b/srcpkgs/mpir-devel
new file mode 120000
index 00000000000..a316ff20552
--- /dev/null
+++ b/srcpkgs/mpir-devel
@@ -0,0 +1 @@
+mpir
\ No newline at end of file
diff --git a/srcpkgs/mpir/template b/srcpkgs/mpir/template
new file mode 100644
index 00000000000..a910214fc3a
--- /dev/null
+++ b/srcpkgs/mpir/template
@@ -0,0 +1,24 @@
+# Template file for 'mpir'
+pkgname=mpir
+version=3.0.0
+revision=1
+build_style=gnu-configure
+configure_args="--enable-cxx"
+hostmakedepends="m4 which yasm"
+short_desc="Multiple Precision Integers and Rationals"
+maintainer="Andrew Benson <abenson+void@gmail.com>"
+license="LGPL-3.0-or-later"
+homepage="http://mpir.org"
+distfiles="${homepage}/mpir-${version}.tar.bz2"
+checksum=52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb
+
+mpir-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/share
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}

From d78c0af3958439f7af36ec0b0417ed34834abca4 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sat, 1 Feb 2020 22:12:38 +0100
Subject: [PATCH 05/10] gnuradio-osmosdr: update to 0.1.5.

[skip ci]
---
 common/shlibs                                 |     2 +-
 .../patches/0001-gnuradio3.8-support.patch    | 15283 ++++++++++++++++
 .../patches/0002-find-gr38-blocks.patch       |    65 +
 srcpkgs/gnuradio-osmosdr/template             |    14 +-
 4 files changed, 15356 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/gnuradio-osmosdr/patches/0001-gnuradio3.8-support.patch
 create mode 100644 srcpkgs/gnuradio-osmosdr/patches/0002-find-gr38-blocks.patch

diff --git a/common/shlibs b/common/shlibs
index 77c9c1c1d75..e4adca95388 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3181,7 +3181,7 @@ libgnuradio-video-sdl.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-vocoder.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-wavelet.so.3.8.0 gnuradio-3.8.0.0_1
 libgnuradio-uhd.so.3.8.0 gnuradio-3.8.0.0_1
-libgnuradio-osmosdr-0.1.4.so.0.0.0 gnuradio-osmosdr-0.1.4_1
+libgnuradio-osmosdr-0.1.5.so.0.0.0 gnuradio-osmosdr-0.1.5_1
 libflann_cpp.so.1.9 flann-1.9.1_1
 libflann.so.1.9 flann-1.9.1_1
 libvtkChartsCore-8.2.so.1 vtk-8.2.0_1
diff --git a/srcpkgs/gnuradio-osmosdr/patches/0001-gnuradio3.8-support.patch b/srcpkgs/gnuradio-osmosdr/patches/0001-gnuradio3.8-support.patch
new file mode 100644
index 00000000000..226fe2c3e0b
--- /dev/null
+++ b/srcpkgs/gnuradio-osmosdr/patches/0001-gnuradio3.8-support.patch
@@ -0,0 +1,15283 @@
+From 05a099ce24767be53c030743db82ccbda93b9424 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Mon, 1 Apr 2019 22:51:53 +0200
+Subject: [PATCH 1/7] Port for upcoming GNU Radio v3.8. YML files still
+ missing.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ .gitignore                                    |    6 +
+ CMakeLists.txt                                |  237 ++-
+ apps/CMakeLists.txt                           |    5 +-
+ cmake/Modules/CMakeParseArgumentsCopy.cmake   |    2 +-
+ cmake/Modules/FindGnuradioFCD.cmake           |   34 -
+ cmake/Modules/FindGnuradioFCDPP.cmake         |   34 -
+ cmake/Modules/FindGnuradioIQBalance.cmake     |   29 -
+ cmake/Modules/FindGnuradioUHD.cmake           |   34 -
+ cmake/Modules/FindUHD.cmake                   |   28 -
+ cmake/Modules/GrComponent.cmake               |  115 --
+ cmake/Modules/GrMiscUtils.cmake               |  519 ------
+ cmake/Modules/GrPlatform.cmake                |   54 -
+ cmake/Modules/GrPython.cmake                  |  242 ---
+ cmake/Modules/GrSwig.cmake                    |  248 ---
+ cmake/Modules/GrTest.cmake                    |  143 --
+ cmake/Modules/GrVersion.cmake                 |   82 -
+ cmake/Modules/OsmoSDRMiscUtils.cmake          |  132 ++
+ cmake/Modules/osmosdrConfig.cmake             |   31 +
+ cmake/Modules/targetConfig.cmake.in           |   26 +
+ docs/CMakeLists.txt                           |    8 +-
+ docs/doxygen/CMakeLists.txt                   |    3 +-
+ docs/doxygen/Doxyfile.in                      |  752 ++++++--
+ docs/doxygen/Doxyfile.swig_doc.in             |  684 ++++++--
+ docs/doxygen/doxyxml/__init__.py              |    6 +-
+ docs/doxygen/doxyxml/base.py                  |   21 +-
+ docs/doxygen/doxyxml/doxyindex.py             |   97 +-
+ docs/doxygen/doxyxml/example/Doxyfile         | 1551 -----------------
+ docs/doxygen/doxyxml/example/aadvark.cc       |   50 -
+ docs/doxygen/doxyxml/example/aadvark.h        |   44 -
+ .../doxyxml/example/xml/aadvark_8cc.xml       |   88 -
+ .../doxyxml/example/xml/aadvark_8h.xml        |   72 -
+ .../doxyxml/example/xml/classAadvark.xml      |   86 -
+ docs/doxygen/doxyxml/example/xml/combine.xslt |   15 -
+ docs/doxygen/doxyxml/example/xml/compound.xsd |  814 ---------
+ docs/doxygen/doxyxml/example/xml/index.xml    |   17 -
+ docs/doxygen/doxyxml/example/xml/index.xsd    |   66 -
+ docs/doxygen/doxyxml/generated/__init__.py    |    1 +
+ docs/doxygen/doxyxml/generated/compound.py    |    8 +-
+ .../doxyxml/generated/compoundsuper.py        |   40 +-
+ docs/doxygen/doxyxml/generated/index.py       |    6 +-
+ docs/doxygen/doxyxml/generated/indexsuper.py  |   21 +-
+ docs/doxygen/doxyxml/text.py                  |    8 +-
+ docs/doxygen/other/group_defs.dox             |    5 +-
+ docs/doxygen/other/main_page.dox              |    7 +-
+ docs/doxygen/swig_doc.py                      |  157 +-
+ grc/CMakeLists.txt                            |   23 +-
+ grc/gen_osmosdr_blocks.py                     |    8 +-
+ include/osmosdr/CMakeLists.txt                |   12 +-
+ include/osmosdr/api.h                         |    3 +-
+ include/osmosdr/sink.h                        |  689 ++++----
+ include/osmosdr/source.h                      |  755 ++++----
+ lib/CMakeLists.txt                            |   30 +-
+ python/CMakeLists.txt                         |    3 +-
+ python/__init__.py                            |   10 +-
+ swig/CMakeLists.txt                           |   19 +-
+ swig/osmosdr_swig.i                           |   70 +-
+ 56 files changed, 2513 insertions(+), 5737 deletions(-)
+ create mode 100644 .gitignore
+ delete mode 100644 cmake/Modules/FindGnuradioFCD.cmake
+ delete mode 100644 cmake/Modules/FindGnuradioFCDPP.cmake
+ delete mode 100644 cmake/Modules/FindGnuradioIQBalance.cmake
+ delete mode 100644 cmake/Modules/FindGnuradioUHD.cmake
+ delete mode 100644 cmake/Modules/FindUHD.cmake
+ delete mode 100644 cmake/Modules/GrComponent.cmake
+ delete mode 100644 cmake/Modules/GrMiscUtils.cmake
+ delete mode 100644 cmake/Modules/GrPlatform.cmake
+ delete mode 100644 cmake/Modules/GrPython.cmake
+ delete mode 100644 cmake/Modules/GrSwig.cmake
+ delete mode 100644 cmake/Modules/GrTest.cmake
+ delete mode 100644 cmake/Modules/GrVersion.cmake
+ create mode 100644 cmake/Modules/OsmoSDRMiscUtils.cmake
+ create mode 100644 cmake/Modules/osmosdrConfig.cmake
+ create mode 100644 cmake/Modules/targetConfig.cmake.in
+ delete mode 100644 docs/doxygen/doxyxml/example/Doxyfile
+ delete mode 100644 docs/doxygen/doxyxml/example/aadvark.cc
+ delete mode 100644 docs/doxygen/doxyxml/example/aadvark.h
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/aadvark_8cc.xml
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/aadvark_8h.xml
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/classAadvark.xml
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/combine.xslt
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/compound.xsd
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/index.xml
+ delete mode 100644 docs/doxygen/doxyxml/example/xml/index.xsd
+
+diff --git a/.gitignore b/.gitignore
+new file mode 100644
+index 0000000..4505df8
+--- /dev/null
++++ .gitignore
+@@ -0,0 +1,6 @@
++*~
++*.pyc
++*.pyo
++build*/
++cmake-*
++libosmo-dsp/*
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index af21291..e932d70 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -1,6 +1,7 @@
+-# Copyright 2012 Free Software Foundation, Inc.
++# Copyright 2011,2012,2014,2016,2018 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -20,11 +21,21 @@
+ ########################################################################
+ # Project setup
+ ########################################################################
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.8)
+ project(gr-osmosdr CXX C)
+ enable_testing()
+ 
+-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
++#install to PyBOMBS target prefix if defined
++if(DEFINED ENV{PYBOMBS_PREFIX})
++    set(CMAKE_INSTALL_PREFIX $ENV{PYBOMBS_PREFIX})
++    message(STATUS "PyBOMBS installed GNU Radio. Setting CMAKE_INSTALL_PREFIX to $ENV{PYBOMBS_PREFIX}")
++endif()
++
++# Get GNU Radio Installation Prefix
++if(DEFINED CMAKE_INSTALL_PREFIX)
++    set(GR_PREFIX ${CMAKE_INSTALL_PREFIX})
++    message(STATUS "Installation is located at: ${GR_PREFIX}")
++endif()
+ 
+ #select the release build type by default to get optimization flags
+ if(NOT CMAKE_BUILD_TYPE)
+@@ -33,30 +44,32 @@ if(NOT CMAKE_BUILD_TYPE)
+ endif(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
+ 
+-set(ENABLE_NONFREE FALSE CACHE BOOL "Enable or disable nonfree components.")
++#make sure our local CMake Modules path comes first
++list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
+ 
+ # Set the version information here
+ set(VERSION_INFO_MAJOR_VERSION 0)
+ set(VERSION_INFO_API_COMPAT    1)
+ set(VERSION_INFO_MINOR_VERSION 5)
+ set(VERSION_INFO_MAINT_VERSION 0)
+-include(GrVersion) #setup version info
++
++cmake_policy(SET CMP0011 NEW)
++
+ 
+ ########################################################################
+ # Compiler specific setup
+ ########################################################################
+-
+ IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|x86")
+- SET(USE_SIMD "SSE2" CACHE STRING "Use SIMD instructions")
++    SET(USE_SIMD "SSE2" CACHE STRING "Use SIMD instructions")
+ ELSE()
+- SET(USE_SIMD "no" CACHE STRING "Use SIMD instructions")
++    SET(USE_SIMD "no" CACHE STRING "Use SIMD instructions")
++ENDIF()
++SET(USE_SIMD_VALUES "no" "SSE2" "AVX")
++SET_PROPERTY(CACHE USE_SIMD PROPERTY STRINGS ${USE_SIMD_VALUES})
++LIST(FIND USE_SIMD_VALUES ${USE_SIMD} USE_SIMD_INDEX)
++IF(${USE_SIMD_INDEX} EQUAL -1)
++    message(FATAL_ERROR "Option ${USE_SIMD} not supported, valid entries are ${USE_SIMD_VALUES}")
+ ENDIF()
+- SET(USE_SIMD_VALUES "no" "SSE2" "AVX")
+- SET_PROPERTY(CACHE USE_SIMD PROPERTY STRINGS ${USE_SIMD_VALUES})
+- LIST(FIND USE_SIMD_VALUES ${USE_SIMD} USE_SIMD_INDEX)
+- IF(${USE_SIMD_INDEX} EQUAL -1)
+-   message(FATAL_ERROR "Option ${USE_SIMD} not supported, valid entries are ${USE_SIMD_VALUES}")
+- ENDIF()
+ 
+ IF(CMAKE_CXX_COMPILER MATCHES ".*clang")
+     SET(CMAKE_COMPILER_IS_CLANGXX 1)
+@@ -94,104 +107,144 @@ ELSEIF(MSVC)
+     ENDIF()
+ ENDIF()
+ 
++#if((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
++#    CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++#    AND NOT WIN32)
++#    #http://gcc.gnu.org/wiki/Visibility
++#    add_definitions(-fvisibility=hidden)
++#endif()
++
+ ########################################################################
+-# Setup boost
++# Install directories
+ ########################################################################
+-MESSAGE(STATUS "Configuring Boost C++ Libraries...")
+-
+-# Although not required on my system, some users have linking issues without
+-SET(BOOST_REQUIRED_COMPONENTS
+-    thread
+-    system
+-)
+-
+-if(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
+-    list(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix
+-endif(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
+-
+-set(Boost_ADDITIONAL_VERSIONS
+-    "1.35.0" "1.35" "1.36.0" "1.36" "1.37.0" "1.37" "1.38.0" "1.38" "1.39.0" "1.39"
+-    "1.40.0" "1.40" "1.41.0" "1.41" "1.42.0" "1.42" "1.43.0" "1.43" "1.44.0" "1.44"
+-    "1.45.0" "1.45" "1.46.0" "1.46" "1.47.0" "1.47" "1.48.0" "1.48" "1.49.0" "1.49"
+-    "1.50.0" "1.50" "1.51.0" "1.51" "1.52.0" "1.52" "1.53.0" "1.53" "1.54.0" "1.54"
+-    "1.55.0" "1.55" "1.56.0" "1.56" "1.57.0" "1.57" "1.58.0" "1.58" "1.59.0" "1.59"
+-    "1.60.0" "1.60" "1.61.0" "1.61" "1.62.0" "1.62" "1.63.0" "1.63" "1.64.0" "1.64"
+-    "1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" "1.69"
+-)
+-
+-find_package(Boost COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
+-
+-if(NOT Boost_FOUND)
+-    message(FATAL_ERROR "Boost required to build " ${CMAKE_PROJECT_NAME})
++find_package(Gnuradio "3.8" REQUIRED) # Side effect of MODULE_PATH getting prepended with system components
++set(MIN_GR_VERSION "3.8")
++if("${Gnuradio_VERSION}" VERSION_LESS MIN_GR_VERSION)
++    MESSAGE(FATAL_ERROR "GnuRadio version required: >=\"" ${MIN_GR_VERSION} "\" found: \"" ${Gnuradio_VERSION} "\"")
+ endif()
+ 
+-ADD_DEFINITIONS(-DBOOST_ALL_DYN_LINK)
++include(GrVersion)
+ 
+-########################################################################
+-# Install directories
+-########################################################################
+ include(GrPlatform) #define LIB_SUFFIX
+-set(GR_RUNTIME_DIR      bin)
++if(NOT CMAKE_MODULES_DIR)
++    set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
++endif(NOT CMAKE_MODULES_DIR)
++
++#set(GR_RUNTIME_DIR      bin)
+ set(GR_LIBRARY_DIR      lib${LIB_SUFFIX})
+-set(GR_INCLUDE_DIR      include)
+-set(GR_DATA_DIR         share)
++#set(GR_INCLUDE_DIR      include)
++#set(GR_DATA_DIR         share)
+ set(GR_PKG_DATA_DIR     ${GR_DATA_DIR}/${CMAKE_PROJECT_NAME})
+-set(GR_DOC_DIR          ${GR_DATA_DIR}/doc)
++#set(GR_DOC_DIR          ${GR_DATA_DIR}/doc)
+ if (NOT GR_PKG_DOC_DIR)
+     set(GR_PKG_DOC_DIR      ${GR_DOC_DIR}/${CMAKE_PROJECT_NAME})
+ endif()
+-set(GR_CONF_DIR         etc)
++#set(GR_CONF_DIR         etc)
+ set(GR_PKG_CONF_DIR     ${GR_CONF_DIR}/${CMAKE_PROJECT_NAME}/conf.d)
+-set(GR_LIBEXEC_DIR      libexec)
++#set(GR_LIBEXEC_DIR      libexec)
+ set(GR_PKG_LIBEXEC_DIR  ${GR_LIBEXEC_DIR}/${CMAKE_PROJECT_NAME})
+ set(GRC_BLOCKS_DIR      ${GR_PKG_DATA_DIR}/grc/blocks)
+ 
+ ########################################################################
+-# Find build dependencies
++# On Apple only, set install name and use rpath correctly, if not already set
++########################################################################
++if(APPLE)
++    if(NOT CMAKE_INSTALL_NAME_DIR)
++        set(CMAKE_INSTALL_NAME_DIR
++            ${CMAKE_INSTALL_PREFIX}/${GR_LIBRARY_DIR} CACHE
++            PATH "Library Install Name Destination Directory" FORCE)
++    endif(NOT CMAKE_INSTALL_NAME_DIR)
++    if(NOT CMAKE_INSTALL_RPATH)
++        set(CMAKE_INSTALL_RPATH
++            ${CMAKE_INSTALL_PREFIX}/${GR_LIBRARY_DIR} CACHE
++            PATH "Library Install RPath" FORCE)
++    endif(NOT CMAKE_INSTALL_RPATH)
++    if(NOT CMAKE_BUILD_WITH_INSTALL_RPATH)
++        set(CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE
++            BOOL "Do Build Using Library Install RPath" FORCE)
++    endif(NOT CMAKE_BUILD_WITH_INSTALL_RPATH)
++endif(APPLE)
++
++########################################################################
++# Find gnuradio build dependencies
+ ########################################################################
+ set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS)
+-set(MIN_GR_VERSION "3.7.10")
+-find_package(Gnuradio REQUIRED)
+-if("${Gnuradio_VERSION}" VERSION_LESS MIN_GR_VERSION)
+-    MESSAGE(FATAL_ERROR "GnuRadio version required: >=\"" ${MIN_GR_VERSION} "\" found: \"" ${Gnuradio_VERSION} "\"")
+-endif()
+ 
+-find_package(GnuradioIQBalance)
+-find_package(UHD)
+-find_package(GnuradioUHD)
+-find_package(GnuradioFCD)
+-find_package(GnuradioFCDPP)
++find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++message(STATUS "Found Block Block: ${gnuradio-blocks_FOUND}")
++
++find_package(gnuradio-pmt PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++message(STATUS "Found PMT Block: ${gnuradio-pmt_FOUND}")
++
++find_package(gnuradio-runtime PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++message(STATUS "Found Runtime Block: ${gnuradio-runtime_FOUND}")
++
++# Software Components part of GNU Radio - These should all be present for a default install
++message(STATUS " Searching for IQ Balance...")
++#find_package(Gnuradio COMPONENTS iqbalance REQUIRED)
++find_package(gnuradio-iqbalance PATHS ${GR_PREFIX}/lib/cmake/iqbalance)
++message (STATUS "Found IQ Balance: ${gnuradio-iqbalance_FOUND}")
++
++message(STATUS " Searching for UHD Drivers...")
++#find_package(Gnuradio COMPONENTS uhd REQUIRED)
++find_package(UHD REQUIRED ${GR_PREFIX}/lib/cmake/uhd)
++message (STATUS "Found UHD Driver: ${UHD_FOUND}")
++
++message(STATUS " Searching for UHD Block...")
++#find_package(Gnuradio COMPONENTS gnuradio-uhd REQUIRED)
++find_package(gnuradio-uhd PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++message (STATUS "Found UHD Block: ${gnuradio-uhd_FOUND}")
++
++message(STATUS " Searching for Volk...")
++#find_package(Gnuradio COMPONENTS Volk REQUIRED)
++find_package(volk PATHS ${GR_PREFIX}/lib/cmake/volk)
++message (STATUS "Found Volk: ${volk_FOUND}")
++
++# Hardware Drivers from here on out -- These may fail as the user hasn't installed them
+ find_package(LibOsmoSDR)
+ find_package(LibRTLSDR)
+ find_package(LibMiriSDR)
+ if(ENABLE_NONFREE)
+-find_package(LibSDRplay)
++    find_package(LibSDRplay)
+ endif(ENABLE_NONFREE)
+ find_package(LibHackRF)
+ find_package(LibAIRSPY)
+-find_package(Volk)
+ find_package(LibbladeRF)
+ find_package(SoapySDR NO_MODULE)
+ find_package(LibFreeSRP)
++
++# Documentation System
+ find_package(Doxygen)
+ 
+-if(NOT GNURADIO_RUNTIME_FOUND)
+-    message(FATAL_ERROR "GnuRadio Runtime required to build " ${CMAKE_PROJECT_NAME})
+-endif()
++#get_cmake_property(_variableNames VARIABLES)
++#list (SORT _variableNames)
++#foreach (_variableName ${_variableNames})
++#    message(STATUS "${_variableName}=${${_variableName}}")
++#endforeach()
++
++
++########################################################################
++# Setup doxygen option
++########################################################################
++if(DOXYGEN_FOUND)
++    option(ENABLE_DOXYGEN "Build docs using Doxygen" ON)
++else(DOXYGEN_FOUND)
++    option(ENABLE_DOXYGEN "Build docs using Doxygen" OFF)
++endif(DOXYGEN_FOUND)
+ 
+ ########################################################################
+ # Setup the include and linker paths
+ ########################################################################
+ include_directories(
+-    ${CMAKE_SOURCE_DIR}/include
+-    ${CMAKE_SOURCE_DIR}/lib
+-    ${Boost_INCLUDE_DIRS}
+-    ${GNURADIO_ALL_INCLUDE_DIRS}
++        ${CMAKE_SOURCE_DIR}/include
++        ${CMAKE_SOURCE_DIR}/lib
++        ${Boost_INCLUDE_DIRS}
++        ${GNURADIO_ALL_INCLUDE_DIRS}
+ )
+ 
+ link_directories(
+-    ${Boost_LIBRARY_DIRS}
+-    ${GNURADIO_ALL_LIBRARY_DIRS}
++        ${Boost_LIBRARY_DIRS}
++        ${GNURADIO_ALL_LIBRARY_DIRS}
+ )
+ 
+ # Set component parameters
+@@ -208,7 +261,8 @@ configure_file(
+ 
+ add_custom_target(uninstall
+     ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
+-)
++    )
++
+ 
+ ########################################################################
+ # Enable python component
+@@ -226,10 +280,11 @@ endif(SWIG_FOUND)
+ 
+ include(GrComponent)
+ GR_REGISTER_COMPONENT("Python support" ENABLE_PYTHON
+-    PYTHONLIBS_FOUND
+-    SWIG_FOUND
+-    SWIG_VERSION_CHECK
+-)
++        PYTHONLIBS_FOUND
++        SWIG_FOUND
++        SWIG_VERSION_CHECK
++        )
++
+ 
+ ########################################################################
+ # Add subdirectories
+@@ -244,6 +299,14 @@ if(ENABLE_PYTHON)
+ endif(ENABLE_PYTHON)
+ add_subdirectory(docs)
+ 
++########################################################################
++# Install cmake search helper for this library
++########################################################################
++
++install(FILES cmake/Modules/osmosdrConfig.cmake
++    DESTINATION ${CMAKE_MODULES_DIR}/osmosdr
++)
++
+ ########################################################################
+ # Create Pkg Config File
+ ########################################################################
+@@ -272,13 +335,13 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GNU Radio block for various radio hardwar
+ set(CPACK_PACKAGE_VERSION ${VERSION})
+ 
+ CONFIGURE_FILE(
+-    ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-osmosdr.pc.in
+-    ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.pc
+-@ONLY)
++        ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-osmosdr.pc.in
++        ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.pc
++        @ONLY)
+ 
+ INSTALL(
+-    FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.pc
+-    DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
++        FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.pc
++        DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
+ )
+ 
+ ########################################################################
+@@ -286,11 +349,11 @@ INSTALL(
+ ########################################################################
+ GR_PRINT_COMPONENT_SUMMARY()
+ if(ENABLE_NONFREE)
+-MESSAGE(STATUS
+-  "NONFREE components have been enabled. The resulting
++    MESSAGE(STATUS
++            "NONFREE components have been enabled. The resulting
+    binaries cannot be distributed under GPL terms.
+   "
+-)
++            )
+ endif(ENABLE_NONFREE)
+ 
+ MESSAGE(STATUS "Building for version: ${VERSION} / ${LIBVER}")
+diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
+index 9c30a4b..ee966bb 100644
+--- apps/CMakeLists.txt
++++ apps/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -20,7 +21,7 @@
+ include(GrPython)
+ 
+ GR_PYTHON_INSTALL(
+-    FILES
++    PROGRAMS
+     osmocom_siggen_base.py
+     DESTINATION ${GR_PYTHON_DIR}/osmosdr
+ )
+diff --git a/cmake/Modules/CMakeParseArgumentsCopy.cmake b/cmake/Modules/CMakeParseArgumentsCopy.cmake
+index 7ce4c49..66016cb 100644
+--- cmake/Modules/CMakeParseArgumentsCopy.cmake
++++ cmake/Modules/CMakeParseArgumentsCopy.cmake
+@@ -58,7 +58,7 @@
+ # the new option.
+ # E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in
+ # MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would
+-# be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.
++# be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefore.
+ 
+ #=============================================================================
+ # Copyright 2010 Alexander Neundorf <neundorf@kde.org>
+diff --git a/cmake/Modules/FindGnuradioFCD.cmake b/cmake/Modules/FindGnuradioFCD.cmake
+deleted file mode 100644
+index e7d7670..0000000
+--- cmake/Modules/FindGnuradioFCD.cmake
++++ /dev/null
+@@ -1,34 +0,0 @@
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_GNURADIO_FCD gnuradio-fcd)
+-
+-FIND_PATH(
+-    GNURADIO_FCD_INCLUDE_DIRS
+-    NAMES gnuradio/fcd/api.h
+-    HINTS $ENV{GNURADIO_FCD_DIR}/include
+-        ${PC_GNURADIO_FCD_INCLUDEDIR}
+-    PATHS /usr/local/include
+-          /usr/include
+-)
+-
+-FIND_LIBRARY(
+-    GNURADIO_FCD_LIBRARIES
+-    NAMES gnuradio-fcd
+-    HINTS $ENV{GNURADIO_FCD_DIR}/lib
+-        ${PC_GNURADIO_FCD_LIBDIR}
+-    PATHS /usr/local/lib
+-          /usr/local/lib64
+-          /usr/lib
+-          /usr/lib64
+-)
+-
+-if(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
+-  set(GNURADIO_FCD_FOUND TRUE CACHE INTERNAL "gnuradio-fcd found")
+-  message(STATUS "Found gnuradio-fcd: ${GNURADIO_FCD_INCLUDE_DIRS}, ${GNURADIO_FCD_LIBRARIES}")
+-else(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
+-  set(GNURADIO_FCD_FOUND FALSE CACHE INTERNAL "gnuradio-fcd found")
+-  message(STATUS "gnuradio-fcd not found.")
+-endif(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_FCD DEFAULT_MSG GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioFCDPP.cmake b/cmake/Modules/FindGnuradioFCDPP.cmake
+deleted file mode 100644
+index c6f03f1..0000000
+--- cmake/Modules/FindGnuradioFCDPP.cmake
++++ /dev/null
+@@ -1,34 +0,0 @@
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_GNURADIO_FCDPP gnuradio-fcdproplus)
+-
+-FIND_PATH(
+-    GNURADIO_FCDPP_INCLUDE_DIRS
+-    NAMES fcdproplus/api.h
+-    HINTS $ENV{GNURADIO_FCDPP_DIR}/include
+-        ${PC_GNURADIO_FCDPP_INCLUDEDIR}
+-    PATHS /usr/local/include
+-          /usr/include
+-)
+-
+-FIND_LIBRARY(
+-    GNURADIO_FCDPP_LIBRARIES
+-    NAMES gnuradio-fcdproplus
+-    HINTS $ENV{GNURADIO_FCDPP_DIR}/lib
+-        ${PC_GNURADIO_FCDPP_LIBDIR}
+-    PATHS /usr/local/lib
+-          /usr/local/lib64
+-          /usr/lib
+-          /usr/lib64
+-)
+-
+-if(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
+-  set(GNURADIO_FCDPP_FOUND TRUE CACHE INTERNAL "gnuradio-fcdproplus found")
+-  message(STATUS "Found gnuradio-fcdproplus: ${GNURADIO_FCDPP_INCLUDE_DIRS}, ${GNURADIO_FCDPP_LIBRARIES}")
+-else(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
+-  set(GNURADIO_FCDPP_FOUND FALSE CACHE INTERNAL "gnuradio-fcdproplus found")
+-  message(STATUS "gnuradio-fcdproplus not found.")
+-endif(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_FCDPP DEFAULT_MSG GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioIQBalance.cmake b/cmake/Modules/FindGnuradioIQBalance.cmake
+deleted file mode 100644
+index c381d1c..0000000
+--- cmake/Modules/FindGnuradioIQBalance.cmake
++++ /dev/null
+@@ -1,29 +0,0 @@
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_GNURADIO_IQBALANCE gnuradio-iqbalance)
+-
+-FIND_PATH(
+-    GNURADIO_IQBALANCE_INCLUDE_DIRS
+-    NAMES gnuradio/iqbalance/api.h
+-    HINTS $ENV{GNURADIO_IQBALANCE_DIR}/include
+-        ${PC_GNURADIO_IQBALANCE_INCLUDEDIR}
+-        ${CMAKE_INSTALL_PREFIX}/include
+-    PATHS /usr/local/include
+-          /usr/include
+-)
+-
+-FIND_LIBRARY(
+-    GNURADIO_IQBALANCE_LIBRARIES
+-    NAMES gnuradio-iqbalance
+-    HINTS $ENV{GNURADIO_IQBALANCE_DIR}/lib
+-        ${PC_GNURADIO_IQBALANCE_LIBDIR}
+-        ${CMAKE_INSTALL_PREFIX}/lib64
+-        ${CMAKE_INSTALL_PREFIX}/lib
+-    PATHS /usr/local/lib
+-          /usr/local/lib64
+-          /usr/lib
+-          /usr/lib64
+-)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_IQBALANCE DEFAULT_MSG GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioUHD.cmake b/cmake/Modules/FindGnuradioUHD.cmake
+deleted file mode 100644
+index f99daf0..0000000
+--- cmake/Modules/FindGnuradioUHD.cmake
++++ /dev/null
+@@ -1,34 +0,0 @@
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_GNURADIO_UHD gnuradio-uhd)
+-
+-FIND_PATH(
+-    GNURADIO_UHD_INCLUDE_DIRS
+-    NAMES gnuradio/uhd/api.h
+-    HINTS $ENV{GNURADIO_UHD_DIR}/include
+-        ${PC_GNURADIO_UHD_INCLUDEDIR}
+-    PATHS /usr/local/include
+-          /usr/include
+-)
+-
+-FIND_LIBRARY(
+-    GNURADIO_UHD_LIBRARIES
+-    NAMES gnuradio-uhd
+-    HINTS $ENV{GNURADIO_UHD_DIR}/lib
+-        ${PC_GNURADIO_UHD_LIBDIR}
+-    PATHS /usr/local/lib
+-          /usr/local/lib64
+-          /usr/lib
+-          /usr/lib64
+-)
+-
+-if(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
+-  set(GNURADIO_UHD_FOUND TRUE CACHE INTERNAL "gnuradio-uhd found")
+-  message(STATUS "Found gnuradio-uhd: ${GNURADIO_UHD_INCLUDE_DIRS}, ${GNURADIO_UHD_LIBRARIES}")
+-else(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
+-  set(GNURADIO_UHD_FOUND FALSE CACHE INTERNAL "gnuradio-uhd found")
+-  message(STATUS "gnuradio-uhd not found.")
+-endif(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_UHD DEFAULT_MSG GNURADIO_UHD_LIBRARIES GNURADIO_UHD_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(GNURADIO_UHD_LIBRARIES GNURADIO_UHD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindUHD.cmake b/cmake/Modules/FindUHD.cmake
+deleted file mode 100644
+index b4d12b6..0000000
+--- cmake/Modules/FindUHD.cmake
++++ /dev/null
+@@ -1,28 +0,0 @@
+-########################################################################
+-# Find the library for the USRP Hardware Driver
+-########################################################################
+-
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_UHD uhd)
+-
+-FIND_PATH(
+-    UHD_INCLUDE_DIRS
+-    NAMES uhd/config.hpp
+-    HINTS $ENV{UHD_DIR}/include
+-        ${PC_UHD_INCLUDEDIR}
+-    PATHS /usr/local/include
+-          /usr/include
+-)
+-
+-FIND_LIBRARY(
+-    UHD_LIBRARIES
+-    NAMES uhd
+-    HINTS $ENV{UHD_DIR}/lib
+-        ${PC_UHD_LIBDIR}
+-    PATHS /usr/local/lib
+-          /usr/lib
+-)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(UHD DEFAULT_MSG UHD_LIBRARIES UHD_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(UHD_LIBRARIES UHD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
+deleted file mode 100644
+index 22b0ea4..0000000
+--- cmake/Modules/GrComponent.cmake
++++ /dev/null
+@@ -1,115 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_COMPONENT_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_COMPONENT_CMAKE TRUE)
+-
+-set(_gr_enabled_components "" CACHE INTERNAL "" FORCE)
+-set(_gr_disabled_components "" CACHE INTERNAL "" FORCE)
+-
+-if(NOT DEFINED ENABLE_DEFAULT)
+-    set(ENABLE_DEFAULT ON)
+-    message(STATUS "")
+-    message(STATUS "The build system will automatically enable all components.")
+-    message(STATUS "Use -DENABLE_DEFAULT=OFF to disable components by default.")
+-endif()
+-
+-########################################################################
+-# Register a component into the system
+-# - name: canonical component name
+-# - var: variable for enabled status
+-# - argn: list of dependencies
+-########################################################################
+-function(GR_REGISTER_COMPONENT name var)
+-    include(CMakeDependentOption)
+-    message(STATUS "")
+-    message(STATUS "Configuring ${name} support...")
+-    foreach(dep ${ARGN})
+-        message(STATUS "  Dependency ${dep} = ${${dep}}")
+-    endforeach(dep)
+-
+-    #if the user set the var to force, we note this
+-    if("${${var}}" STREQUAL "FORCE")
+-        set(${var} ON)
+-        set(var_force TRUE)
+-    else()
+-        set(var_force FALSE)
+-    endif()
+-
+-    #rewrite the dependency list so that deps that are also components use the cached version
+-    unset(comp_deps)
+-    foreach(dep ${ARGN})
+-        list(FIND _gr_enabled_components ${dep} dep_enb_index)
+-        list(FIND _gr_disabled_components ${dep} dep_dis_index)
+-        if (${dep_enb_index} EQUAL -1 AND ${dep_dis_index} EQUAL -1)
+-            list(APPEND comp_deps ${dep})
+-        else()
+-            list(APPEND comp_deps ${dep}_cached) #is a component, use cached version
+-        endif()
+-    endforeach(dep)
+-
+-    #setup the dependent option for this component
+-    CMAKE_DEPENDENT_OPTION(${var} "enable ${name} support" ${ENABLE_DEFAULT} "${comp_deps}" OFF)
+-    set(${var} "${${var}}" PARENT_SCOPE)
+-    set(${var}_cached "${${var}}" CACHE INTERNAL "" FORCE)
+-
+-    #force was specified, but the dependencies were not met
+-    if(NOT ${var} AND var_force)
+-        message(FATAL_ERROR "user force-enabled ${name} but configuration checked failed")
+-    endif()
+-
+-    #append the component into one of the lists
+-    if(${var})
+-        message(STATUS "  Enabling ${name} support.")
+-        list(APPEND _gr_enabled_components ${name})
+-    else(${var})
+-        message(STATUS "  Disabling ${name} support.")
+-        list(APPEND _gr_disabled_components ${name})
+-    endif(${var})
+-    message(STATUS "  Override with -D${var}=ON/OFF")
+-
+-    #make components lists into global variables
+-    set(_gr_enabled_components ${_gr_enabled_components} CACHE INTERNAL "" FORCE)
+-    set(_gr_disabled_components ${_gr_disabled_components} CACHE INTERNAL "" FORCE)
+-endfunction(GR_REGISTER_COMPONENT)
+-
+-########################################################################
+-# Print the registered component summary
+-########################################################################
+-function(GR_PRINT_COMPONENT_SUMMARY)
+-    message(STATUS "")
+-    message(STATUS "######################################################")
+-    message(STATUS "# gr-osmosdr enabled components                         ")
+-    message(STATUS "######################################################")
+-    foreach(comp ${_gr_enabled_components})
+-        message(STATUS "  * ${comp}")
+-    endforeach(comp)
+-
+-    message(STATUS "")
+-    message(STATUS "######################################################")
+-    message(STATUS "# gr-osmosdr disabled components                        ")
+-    message(STATUS "######################################################")
+-    foreach(comp ${_gr_disabled_components})
+-        message(STATUS "  * ${comp}")
+-    endforeach(comp)
+-
+-    message(STATUS "")
+-endfunction(GR_PRINT_COMPONENT_SUMMARY)
+diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake
+deleted file mode 100644
+index 747eb1a..0000000
+--- cmake/Modules/GrMiscUtils.cmake
++++ /dev/null
+@@ -1,519 +0,0 @@
+-# Copyright 2010-2011,2014 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_MISC_UTILS_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_MISC_UTILS_CMAKE TRUE)
+-
+-########################################################################
+-# Set global variable macro.
+-# Used for subdirectories to export settings.
+-# Example: include and library paths.
+-########################################################################
+-function(GR_SET_GLOBAL var)
+-    set(${var} ${ARGN} CACHE INTERNAL "" FORCE)
+-endfunction(GR_SET_GLOBAL)
+-
+-########################################################################
+-# Set the pre-processor definition if the condition is true.
+-#  - def the pre-processor definition to set and condition name
+-########################################################################
+-function(GR_ADD_COND_DEF def)
+-    if(${def})
+-        add_definitions(-D${def})
+-    endif(${def})
+-endfunction(GR_ADD_COND_DEF)
+-
+-########################################################################
+-# Check for a header and conditionally set a compile define.
+-#  - hdr the relative path to the header file
+-#  - def the pre-processor definition to set
+-########################################################################
+-function(GR_CHECK_HDR_N_DEF hdr def)
+-    include(CheckIncludeFileCXX)
+-    CHECK_INCLUDE_FILE_CXX(${hdr} ${def})
+-    GR_ADD_COND_DEF(${def})
+-endfunction(GR_CHECK_HDR_N_DEF)
+-
+-########################################################################
+-# Include subdirectory macro.
+-# Sets the CMake directory variables,
+-# includes the subdirectory CMakeLists.txt,
+-# resets the CMake directory variables.
+-#
+-# This macro includes subdirectories rather than adding them
+-# so that the subdirectory can affect variables in the level above.
+-# This provides a work-around for the lack of convenience libraries.
+-# This way a subdirectory can append to the list of library sources.
+-########################################################################
+-macro(GR_INCLUDE_SUBDIRECTORY subdir)
+-    #insert the current directories on the front of the list
+-    list(INSERT _cmake_source_dirs 0 ${CMAKE_CURRENT_SOURCE_DIR})
+-    list(INSERT _cmake_binary_dirs 0 ${CMAKE_CURRENT_BINARY_DIR})
+-
+-    #set the current directories to the names of the subdirs
+-    set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${subdir})
+-    set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${subdir})
+-
+-    #include the subdirectory CMakeLists to run it
+-    file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+-    include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
+-
+-    #reset the value of the current directories
+-    list(GET _cmake_source_dirs 0 CMAKE_CURRENT_SOURCE_DIR)
+-    list(GET _cmake_binary_dirs 0 CMAKE_CURRENT_BINARY_DIR)
+-
+-    #pop the subdir names of the front of the list
+-    list(REMOVE_AT _cmake_source_dirs 0)
+-    list(REMOVE_AT _cmake_binary_dirs 0)
+-endmacro(GR_INCLUDE_SUBDIRECTORY)
+-
+-########################################################################
+-# Check if a compiler flag works and conditionally set a compile define.
+-#  - flag the compiler flag to check for
+-#  - have the variable to set with result
+-########################################################################
+-macro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE flag have)
+-    include(CheckCXXCompilerFlag)
+-    CHECK_CXX_COMPILER_FLAG(${flag} ${have})
+-    if(${have})
+-        add_definitions(${flag})
+-    endif(${have})
+-endmacro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE)
+-
+-########################################################################
+-# Generates the .la libtool file
+-# This appears to generate libtool files that cannot be used by auto*.
+-# Usage GR_LIBTOOL(TARGET [target] DESTINATION [dest])
+-# Notice: there is not COMPONENT option, these will not get distributed.
+-########################################################################
+-function(GR_LIBTOOL)
+-    if(NOT DEFINED GENERATE_LIBTOOL)
+-        set(GENERATE_LIBTOOL OFF) #disabled by default
+-    endif()
+-
+-    if(GENERATE_LIBTOOL)
+-        include(CMakeParseArgumentsCopy)
+-        CMAKE_PARSE_ARGUMENTS(GR_LIBTOOL "" "TARGET;DESTINATION" "" ${ARGN})
+-
+-        find_program(LIBTOOL libtool)
+-        if(LIBTOOL)
+-            include(CMakeMacroLibtoolFile)
+-            CREATE_LIBTOOL_FILE(${GR_LIBTOOL_TARGET} /${GR_LIBTOOL_DESTINATION})
+-        endif(LIBTOOL)
+-    endif(GENERATE_LIBTOOL)
+-
+-endfunction(GR_LIBTOOL)
+-
+-########################################################################
+-# Do standard things to the library target
+-# - set target properties
+-# - make install rules
+-# Also handle gnuradio custom naming conventions w/ extras mode.
+-########################################################################
+-function(GR_LIBRARY_FOO target)
+-    #parse the arguments for component names
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_LIBRARY "" "RUNTIME_COMPONENT;DEVEL_COMPONENT" "" ${ARGN})
+-
+-    #set additional target properties
+-    set_target_properties(${target} PROPERTIES SOVERSION ${LIBVER})
+-
+-    #install the generated files like so...
+-    install(TARGETS ${target}
+-        LIBRARY DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .so/.dylib file
+-        ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_DEVEL_COMPONENT}   # .lib file
+-        RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .dll file
+-    )
+-
+-    #extras mode enabled automatically on linux
+-    if(NOT DEFINED LIBRARY_EXTRAS)
+-        set(LIBRARY_EXTRAS ${LINUX})
+-    endif()
+-
+-    #special extras mode to enable alternative naming conventions
+-    if(LIBRARY_EXTRAS)
+-
+-        #create .la file before changing props
+-        GR_LIBTOOL(TARGET ${target} DESTINATION ${GR_LIBRARY_DIR})
+-
+-        #give the library a special name with ultra-zero soversion
+-        set_target_properties(${target} PROPERTIES OUTPUT_NAME ${target}-${LIBVER} SOVERSION "0.0.0")
+-        set(target_name lib${target}-${LIBVER}.so.0.0.0)
+-
+-        #custom command to generate symlinks
+-        add_custom_command(
+-            TARGET ${target}
+-            POST_BUILD
+-            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
+-            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
+-            COMMAND ${CMAKE_COMMAND} -E touch ${target_name} #so the symlinks point to something valid so cmake 2.6 will install
+-        )
+-
+-        #and install the extra symlinks
+-        install(
+-            FILES
+-            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
+-            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
+-            DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT}
+-        )
+-
+-    endif(LIBRARY_EXTRAS)
+-endfunction(GR_LIBRARY_FOO)
+-
+-########################################################################
+-# Create a dummy custom command that depends on other targets.
+-# Usage:
+-#   GR_GEN_TARGET_DEPS(unique_name target_deps <target1> <target2> ...)
+-#   ADD_CUSTOM_COMMAND(<the usual args> ${target_deps})
+-#
+-# Custom command cant depend on targets, but can depend on executables,
+-# and executables can depend on targets. So this is the process:
+-########################################################################
+-function(GR_GEN_TARGET_DEPS name var)
+-    file(
+-        WRITE ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
+-        "int main(void){return 0;}\n"
+-    )
+-    execute_process(
+-        COMMAND ${CMAKE_COMMAND} -E copy_if_different
+-        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
+-        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp
+-    )
+-    add_executable(${name} ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp)
+-    if(ARGN)
+-        add_dependencies(${name} ${ARGN})
+-    endif(ARGN)
+-
+-    if(CMAKE_CROSSCOMPILING)
+-        set(${var} "DEPENDS;${name}" PARENT_SCOPE) #cant call command when cross
+-    else()
+-        set(${var} "DEPENDS;${name};COMMAND;${name}" PARENT_SCOPE)
+-    endif()
+-endfunction(GR_GEN_TARGET_DEPS)
+-
+-########################################################################
+-# Control use of gr_logger
+-# Usage:
+-#   GR_LOGGING()
+-#
+-# Will set ENABLE_GR_LOG to 1 by default.
+-# Can manually set with -DENABLE_GR_LOG=0|1
+-########################################################################
+-function(GR_LOGGING)
+-  find_package(Log4cpp)
+-
+-  OPTION(ENABLE_GR_LOG "Use gr_logger" ON)
+-  if(ENABLE_GR_LOG)
+-    # If gr_logger is enabled, make it usable
+-    add_definitions( -DENABLE_GR_LOG )
+-
+-    # also test LOG4CPP; if we have it, use this version of the logger
+-    # otherwise, default to the stdout/stderr model.
+-    if(LOG4CPP_FOUND)
+-      SET(HAVE_LOG4CPP True CACHE INTERNAL "" FORCE)
+-      add_definitions( -DHAVE_LOG4CPP )
+-    else(not LOG4CPP_FOUND)
+-      SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
+-    endif(LOG4CPP_FOUND)
+-
+-    SET(ENABLE_GR_LOG ${ENABLE_GR_LOG} CACHE INTERNAL "" FORCE)
+-
+-  else(ENABLE_GR_LOG)
+-    SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
+-  endif(ENABLE_GR_LOG)
+-
+-  message(STATUS "ENABLE_GR_LOG set to ${ENABLE_GR_LOG}.")
+-  message(STATUS "HAVE_LOG4CPP set to ${HAVE_LOG4CPP}.")
+-  message(STATUS "LOG4CPP_LIBRARIES set to ${LOG4CPP_LIBRARIES}.")
+-
+-endfunction(GR_LOGGING)
+-
+-########################################################################
+-# Run GRCC to compile .grc files into .py files.
+-#
+-# Usage: GRCC(filename, directory)
+-#    - filenames: List of file name of .grc file
+-#    - directory: directory of built .py file - usually in
+-#                 ${CMAKE_CURRENT_BINARY_DIR}
+-#    - Sets PYFILES: output converted GRC file names to Python files.
+-########################################################################
+-function(GRCC)
+-  # Extract directory from list of args, remove it for the list of filenames.
+-  list(GET ARGV -1 directory)
+-  list(REMOVE_AT ARGV -1)
+-  set(filenames ${ARGV})
+-  file(MAKE_DIRECTORY ${directory})
+-
+-  SET(GRCC_COMMAND ${CMAKE_SOURCE_DIR}/gr-utils/python/grcc)
+-
+-  # GRCC uses some stuff in grc and gnuradio-runtime, so we force
+-  # the known paths here
+-  list(APPEND PYTHONPATHS
+-    ${CMAKE_SOURCE_DIR}
+-    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/python
+-    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/lib/swig
+-    ${CMAKE_BINARY_DIR}/gnuradio-runtime/lib/swig
+-    )
+-
+-  if(WIN32)
+-    #SWIG generates the python library files into a subdirectory.
+-    #Therefore, we must append this subdirectory into PYTHONPATH.
+-    #Only do this for the python directories matching the following:
+-    foreach(pydir ${PYTHONPATHS})
+-      get_filename_component(name ${pydir} NAME)
+-      if(name MATCHES "^(swig|lib|src)$")
+-        list(APPEND PYTHONPATHS ${pydir}/${CMAKE_BUILD_TYPE})
+-      endif()
+-    endforeach(pydir)
+-  endif(WIN32)
+-
+-  file(TO_NATIVE_PATH "${PYTHONPATHS}" pypath)
+-
+-  if(UNIX)
+-    list(APPEND pypath "$PYTHONPATH")
+-    string(REPLACE ";" ":" pypath "${pypath}")
+-    set(ENV{PYTHONPATH} ${pypath})
+-  endif(UNIX)
+-
+-  if(WIN32)
+-    list(APPEND pypath "%PYTHONPATH%")
+-    string(REPLACE ";" "\\;" pypath "${pypath}")
+-    #list(APPEND environs "PYTHONPATH=${pypath}")
+-    set(ENV{PYTHONPATH} ${pypath})
+-  endif(WIN32)
+-
+-  foreach(f ${filenames})
+-    execute_process(
+-      COMMAND ${GRCC_COMMAND} -d ${directory} ${f}
+-      )
+-    string(REPLACE ".grc" ".py" pyfile "${f}")
+-    string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" pyfile "${pyfile}")
+-    list(APPEND pyfiles ${pyfile})
+-  endforeach(f)
+-
+-  set(PYFILES ${pyfiles} PARENT_SCOPE)
+-endfunction(GRCC)
+-
+-########################################################################
+-# Check if HAVE_PTHREAD_SETSCHEDPARAM and HAVE_SCHED_SETSCHEDULER
+-#  should be defined
+-########################################################################
+-macro(GR_CHECK_LINUX_SCHED_AVAIL)
+-set(CMAKE_REQUIRED_LIBRARIES -lpthread)
+-    CHECK_CXX_SOURCE_COMPILES("
+-        #include <pthread.h>
+-        int main(){
+-            pthread_t pthread;
+-            pthread_setschedparam(pthread,  0, 0);
+-            return 0;
+-        } " HAVE_PTHREAD_SETSCHEDPARAM
+-    )
+-    GR_ADD_COND_DEF(HAVE_PTHREAD_SETSCHEDPARAM)
+-
+-    CHECK_CXX_SOURCE_COMPILES("
+-        #include <sched.h>
+-        int main(){
+-            pid_t pid;
+-            sched_setscheduler(pid, 0, 0);
+-            return 0;
+-        } " HAVE_SCHED_SETSCHEDULER
+-    )
+-    GR_ADD_COND_DEF(HAVE_SCHED_SETSCHEDULER)
+-endmacro(GR_CHECK_LINUX_SCHED_AVAIL)
+-
+-########################################################################
+-# Macros to generate source and header files from template
+-########################################################################
+-macro(GR_EXPAND_X_H component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_dict2(name, sig, '${component}')
+-        build_utils.expand_template(d, inp)
+-")
+-
+-  #make a list of all the generated headers
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the headers
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.h.t ${ARGN}
+-  )
+-
+-  #install rules for the generated headers
+-  list(APPEND generated_includes ${expanded_files_h})
+-
+-endmacro(GR_EXPAND_X_H)
+-
+-macro(GR_EXPAND_X_CC_H component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_impl_dict2(name, sig, '${component}')
+-        build_utils.expand_template(d, inp)
+-")
+-
+-  #make a list of all the generated files
+-  unset(expanded_files_cc)
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
+-    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the source files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_cc}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.cc.t ${ARGN}
+-  )
+-
+-  #create a command to generate the header files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.h.t ${ARGN}
+-  )
+-
+-  #make source files depends on headers to force generation
+-  set_source_files_properties(${expanded_files_cc}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
+-  )
+-
+-  #install rules for the generated files
+-  list(APPEND generated_sources ${expanded_files_cc})
+-  list(APPEND generated_headers ${expanded_files_h})
+-
+-endmacro(GR_EXPAND_X_CC_H)
+-
+-macro(GR_EXPAND_X_CC_H_IMPL component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_dict(name, sig, '${component}')
+-        build_utils.expand_template(d, inp, '_impl')
+-")
+-
+-  #make a list of all the generated files
+-  unset(expanded_files_cc_impl)
+-  unset(expanded_files_h_impl)
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_cc_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.cc)
+-    list(APPEND expanded_files_h_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.h)
+-    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/../include/gnuradio/${component}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the _impl.cc files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_cc_impl}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.cc.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}_impl.cc.t ${ARGN}
+-  )
+-
+-  #create a command to generate the _impl.h files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h_impl}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}_impl.h.t ${ARGN}
+-  )
+-
+-  #make _impl.cc source files depend on _impl.h to force generation
+-  set_source_files_properties(${expanded_files_cc_impl}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h_impl}"
+-  )
+-
+-  #make _impl.h source files depend on headers to force generation
+-  set_source_files_properties(${expanded_files_h_impl}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
+-  )
+-
+-  #install rules for the generated files
+-  list(APPEND generated_sources ${expanded_files_cc_impl})
+-  list(APPEND generated_headers ${expanded_files_h_impl})
+-
+-endmacro(GR_EXPAND_X_CC_H_IMPL)
+diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake
+deleted file mode 100644
+index fbbea5f..0000000
+--- cmake/Modules/GrPlatform.cmake
++++ /dev/null
+@@ -1,54 +0,0 @@
+-# Copyright 2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_PLATFORM_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_PLATFORM_CMAKE TRUE)
+-
+-########################################################################
+-# Setup additional defines for OS types
+-########################################################################
+-if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+-    set(LINUX TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version")
+-    set(DEBIAN TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release")
+-    set(REDHAT TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/slackware-version")
+-    set(SLACKWARE TRUE)
+-endif()
+-
+-########################################################################
+-# when the library suffix should be 64 (applies to redhat linux family)
+-########################################################################
+-if (REDHAT OR SLACKWARE)
+-    set(LIB64_CONVENTION TRUE)
+-endif()
+-
+-if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$")
+-    set(LIB_SUFFIX 64)
+-endif()
+-set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix")
+diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
+deleted file mode 100644
+index 395faff..0000000
+--- cmake/Modules/GrPython.cmake
++++ /dev/null
+@@ -1,242 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_PYTHON_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_PYTHON_CMAKE TRUE)
+-
+-########################################################################
+-# Setup the python interpreter:
+-# This allows the user to specify a specific interpreter,
+-# or finds the interpreter via the built-in cmake module.
+-########################################################################
+-#this allows the user to override PYTHON_EXECUTABLE
+-if(PYTHON_EXECUTABLE)
+-
+-    set(PYTHONINTERP_FOUND TRUE)
+-
+-#otherwise if not set, try to automatically find it
+-else(PYTHON_EXECUTABLE)
+-
+-    #use the built-in find script
+-    find_package(PythonInterp 2)
+-
+-    #and if that fails use the find program routine
+-    if(NOT PYTHONINTERP_FOUND)
+-        find_program(PYTHON_EXECUTABLE NAMES python python2 python2.7 python2.6 python2.5)
+-        if(PYTHON_EXECUTABLE)
+-            set(PYTHONINTERP_FOUND TRUE)
+-        endif(PYTHON_EXECUTABLE)
+-    endif(NOT PYTHONINTERP_FOUND)
+-
+-endif(PYTHON_EXECUTABLE)
+-
+-if (CMAKE_CROSSCOMPILING)
+-    set(QA_PYTHON_EXECUTABLE "/usr/bin/python")
+-else (CMAKE_CROSSCOMPILING)
+-    set(QA_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
+-endif(CMAKE_CROSSCOMPILING)
+-
+-#make the path to the executable appear in the cmake gui
+-set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter")
+-set(QA_PYTHON_EXECUTABLE ${QA_PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter for QA tests")
+-
+-#make sure we can use -B with python (introduced in 2.6)
+-if(PYTHON_EXECUTABLE)
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE} -B -c ""
+-        OUTPUT_QUIET ERROR_QUIET
+-        RESULT_VARIABLE PYTHON_HAS_DASH_B_RESULT
+-    )
+-    if(PYTHON_HAS_DASH_B_RESULT EQUAL 0)
+-        set(PYTHON_DASH_B "-B")
+-    endif()
+-endif(PYTHON_EXECUTABLE)
+-
+-########################################################################
+-# Check for the existence of a python module:
+-# - desc a string description of the check
+-# - mod the name of the module to import
+-# - cmd an additional command to run
+-# - have the result variable to set
+-########################################################################
+-macro(GR_PYTHON_CHECK_MODULE desc mod cmd have)
+-    message(STATUS "")
+-    message(STATUS "Python checking for ${desc}")
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE} -c "
+-#########################################
+-try:
+-    import ${mod}
+-    assert ${cmd}
+-except ImportError, AssertionError: exit(-1)
+-except: pass
+-#########################################"
+-        RESULT_VARIABLE ${have}
+-    )
+-    if(${have} EQUAL 0)
+-        message(STATUS "Python checking for ${desc} - found")
+-        set(${have} TRUE)
+-    else(${have} EQUAL 0)
+-        message(STATUS "Python checking for ${desc} - not found")
+-        set(${have} FALSE)
+-    endif(${have} EQUAL 0)
+-endmacro(GR_PYTHON_CHECK_MODULE)
+-
+-########################################################################
+-# Sets the python installation directory GR_PYTHON_DIR
+-########################################################################
+-if(NOT DEFINED GR_PYTHON_DIR)
+-execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "
+-from distutils import sysconfig
+-print sysconfig.get_python_lib(plat_specific=True, prefix='')
+-" OUTPUT_VARIABLE GR_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
+-)
+-endif()
+-file(TO_CMAKE_PATH ${GR_PYTHON_DIR} GR_PYTHON_DIR)
+-
+-########################################################################
+-# Create an always-built target with a unique name
+-# Usage: GR_UNIQUE_TARGET(<description> <dependencies list>)
+-########################################################################
+-function(GR_UNIQUE_TARGET desc)
+-    file(RELATIVE_PATH reldir ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
+-    execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import re, hashlib
+-unique = hashlib.md5('${reldir}${ARGN}').hexdigest()[:5]
+-print(re.sub('\\W', '_', '${desc} ${reldir} ' + unique))"
+-    OUTPUT_VARIABLE _target OUTPUT_STRIP_TRAILING_WHITESPACE)
+-    add_custom_target(${_target} ALL DEPENDS ${ARGN})
+-endfunction(GR_UNIQUE_TARGET)
+-
+-########################################################################
+-# Install python sources (also builds and installs byte-compiled python)
+-########################################################################
+-function(GR_PYTHON_INSTALL)
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_PYTHON_INSTALL "" "DESTINATION;COMPONENT" "FILES;PROGRAMS" ${ARGN})
+-
+-    ####################################################################
+-    if(GR_PYTHON_INSTALL_FILES)
+-    ####################################################################
+-        install(${ARGN}) #installs regular python files
+-
+-        #create a list of all generated files
+-        unset(pysrcfiles)
+-        unset(pycfiles)
+-        unset(pyofiles)
+-        foreach(pyfile ${GR_PYTHON_INSTALL_FILES})
+-            get_filename_component(pyfile ${pyfile} ABSOLUTE)
+-            list(APPEND pysrcfiles ${pyfile})
+-
+-            #determine if this file is in the source or binary directory
+-            file(RELATIVE_PATH source_rel_path ${CMAKE_CURRENT_SOURCE_DIR} ${pyfile})
+-            string(LENGTH "${source_rel_path}" source_rel_path_len)
+-            file(RELATIVE_PATH binary_rel_path ${CMAKE_CURRENT_BINARY_DIR} ${pyfile})
+-            string(LENGTH "${binary_rel_path}" binary_rel_path_len)
+-
+-            #and set the generated path appropriately
+-            if(${source_rel_path_len} GREATER ${binary_rel_path_len})
+-                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${binary_rel_path})
+-            else()
+-                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${source_rel_path})
+-            endif()
+-            list(APPEND pycfiles ${pygenfile}c)
+-            list(APPEND pyofiles ${pygenfile}o)
+-
+-            #ensure generation path exists
+-            get_filename_component(pygen_path ${pygenfile} PATH)
+-            file(MAKE_DIRECTORY ${pygen_path})
+-
+-        endforeach(pyfile)
+-
+-        #the command to generate the pyc files
+-        add_custom_command(
+-            DEPENDS ${pysrcfiles} OUTPUT ${pycfiles}
+-            COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pycfiles}
+-        )
+-
+-        #the command to generate the pyo files
+-        add_custom_command(
+-            DEPENDS ${pysrcfiles} OUTPUT ${pyofiles}
+-            COMMAND ${PYTHON_EXECUTABLE} -O ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pyofiles}
+-        )
+-
+-        #create install rule and add generated files to target list
+-        set(python_install_gen_targets ${pycfiles} ${pyofiles})
+-        install(FILES ${python_install_gen_targets}
+-            DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
+-            COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
+-        )
+-
+-
+-    ####################################################################
+-    elseif(GR_PYTHON_INSTALL_PROGRAMS)
+-    ####################################################################
+-        file(TO_NATIVE_PATH ${PYTHON_EXECUTABLE} pyexe_native)
+-
+-        if (CMAKE_CROSSCOMPILING)
+-           set(pyexe_native "/usr/bin/env python")
+-        endif()
+-
+-        foreach(pyfile ${GR_PYTHON_INSTALL_PROGRAMS})
+-            get_filename_component(pyfile_name ${pyfile} NAME)
+-            get_filename_component(pyfile ${pyfile} ABSOLUTE)
+-            string(REPLACE "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" pyexefile "${pyfile}.exe")
+-            list(APPEND python_install_gen_targets ${pyexefile})
+-
+-            get_filename_component(pyexefile_path ${pyexefile} PATH)
+-            file(MAKE_DIRECTORY ${pyexefile_path})
+-
+-            add_custom_command(
+-                OUTPUT ${pyexefile} DEPENDS ${pyfile}
+-                COMMAND ${PYTHON_EXECUTABLE} -c
+-                "open('${pyexefile}','w').write('\#!${pyexe_native}\\n'+open('${pyfile}').read())"
+-                COMMENT "Shebangin ${pyfile_name}"
+-                VERBATIM
+-            )
+-
+-            #on windows, python files need an extension to execute
+-            get_filename_component(pyfile_ext ${pyfile} EXT)
+-            if(WIN32 AND NOT pyfile_ext)
+-                set(pyfile_name "${pyfile_name}.py")
+-            endif()
+-
+-            install(PROGRAMS ${pyexefile} RENAME ${pyfile_name}
+-                DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
+-                COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
+-            )
+-        endforeach(pyfile)
+-
+-    endif()
+-
+-    GR_UNIQUE_TARGET("pygen" ${python_install_gen_targets})
+-
+-endfunction(GR_PYTHON_INSTALL)
+-
+-########################################################################
+-# Write the python helper script that generates byte code files
+-########################################################################
+-file(WRITE ${CMAKE_BINARY_DIR}/python_compile_helper.py "
+-import sys, py_compile
+-files = sys.argv[1:]
+-srcs, gens = files[:len(files)/2], files[len(files)/2:]
+-for src, gen in zip(srcs, gens):
+-    py_compile.compile(file=src, cfile=gen, doraise=True)
+-")
+diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
+deleted file mode 100644
+index f907a51..0000000
+--- cmake/Modules/GrSwig.cmake
++++ /dev/null
+@@ -1,248 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_SWIG_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_SWIG_CMAKE TRUE)
+-
+-include(GrPython)
+-
+-########################################################################
+-# Builds a swig documentation file to be generated into python docstrings
+-# Usage: GR_SWIG_MAKE_DOCS(output_file input_path input_path....)
+-#
+-# Set the following variable to specify extra dependent targets:
+-#   - GR_SWIG_DOCS_SOURCE_DEPS
+-#   - GR_SWIG_DOCS_TARGET_DEPS
+-########################################################################
+-function(GR_SWIG_MAKE_DOCS output_file)
+-    if(ENABLE_DOXYGEN)
+-
+-        #setup the input files variable list, quote formated
+-        set(input_files)
+-        unset(INPUT_PATHS)
+-        foreach(input_path ${ARGN})
+-            if (IS_DIRECTORY ${input_path}) #when input path is a directory
+-                file(GLOB input_path_h_files ${input_path}/*.h)
+-            else() #otherwise its just a file, no glob
+-                set(input_path_h_files ${input_path})
+-            endif()
+-            list(APPEND input_files ${input_path_h_files})
+-            set(INPUT_PATHS "${INPUT_PATHS} \"${input_path}\"")
+-        endforeach(input_path)
+-
+-        #determine the output directory
+-        get_filename_component(name ${output_file} NAME_WE)
+-        get_filename_component(OUTPUT_DIRECTORY ${output_file} PATH)
+-        set(OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/${name}_swig_docs)
+-        make_directory(${OUTPUT_DIRECTORY})
+-
+-        #generate the Doxyfile used by doxygen
+-        configure_file(
+-            ${CMAKE_SOURCE_DIR}/docs/doxygen/Doxyfile.swig_doc.in
+-            ${OUTPUT_DIRECTORY}/Doxyfile
+-        @ONLY)
+-
+-        #Create a dummy custom command that depends on other targets
+-        include(GrMiscUtils)
+-        GR_GEN_TARGET_DEPS(_${name}_tag tag_deps ${GR_SWIG_DOCS_TARGET_DEPS})
+-
+-        #call doxygen on the Doxyfile + input headers
+-        add_custom_command(
+-            OUTPUT ${OUTPUT_DIRECTORY}/xml/index.xml
+-            DEPENDS ${input_files} ${GR_SWIG_DOCS_SOURCE_DEPS} ${tag_deps}
+-            COMMAND ${DOXYGEN_EXECUTABLE} ${OUTPUT_DIRECTORY}/Doxyfile
+-            COMMENT "Generating doxygen xml for ${name} docs"
+-        )
+-
+-        #call the swig_doc script on the xml files
+-        add_custom_command(
+-            OUTPUT ${output_file}
+-            DEPENDS ${input_files} ${stamp-file} ${OUTPUT_DIRECTORY}/xml/index.xml
+-            COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-                ${CMAKE_SOURCE_DIR}/docs/doxygen/swig_doc.py
+-                ${OUTPUT_DIRECTORY}/xml
+-                ${output_file}
+-            COMMENT "Generating python docstrings for ${name}"
+-            WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/doxygen
+-        )
+-
+-    else(ENABLE_DOXYGEN)
+-        file(WRITE ${output_file} "\n") #no doxygen -> empty file
+-    endif(ENABLE_DOXYGEN)
+-endfunction(GR_SWIG_MAKE_DOCS)
+-
+-########################################################################
+-# Build a swig target for the common gnuradio use case. Usage:
+-# GR_SWIG_MAKE(target ifile ifile ifile...)
+-#
+-# Set the following variables before calling:
+-#   - GR_SWIG_FLAGS
+-#   - GR_SWIG_INCLUDE_DIRS
+-#   - GR_SWIG_LIBRARIES
+-#   - GR_SWIG_SOURCE_DEPS
+-#   - GR_SWIG_TARGET_DEPS
+-#   - GR_SWIG_DOC_FILE
+-#   - GR_SWIG_DOC_DIRS
+-########################################################################
+-macro(GR_SWIG_MAKE name)
+-    set(ifiles ${ARGN})
+-
+-    # Shimming this in here to take care of a SWIG bug with handling
+-    # vector<size_t> and vector<unsigned int> (on 32-bit machines) and
+-    # vector<long unsigned int> (on 64-bit machines). Use this to test
+-    # the size of size_t, then set SIZE_T_32 if it's a 32-bit machine
+-    # or not if it's 64-bit. The logic in gr_type.i handles the rest.
+-    INCLUDE (CheckTypeSize)
+-    CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T)
+-    CHECK_TYPE_SIZE("unsigned int" SIZEOF_UINT)
+-    if(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
+-      list(APPEND GR_SWIG_FLAGS -DSIZE_T_32)
+-    endif(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
+-
+-    #do swig doc generation if specified
+-    if (GR_SWIG_DOC_FILE)
+-        set(GR_SWIG_DOCS_SOURCE_DEPS ${GR_SWIG_SOURCE_DEPS})
+-        list(APPEND GR_SWIG_DOCS_TARGET_DEPS ${GR_SWIG_TARGET_DEPS})
+-        GR_SWIG_MAKE_DOCS(${GR_SWIG_DOC_FILE} ${GR_SWIG_DOC_DIRS})
+-        add_custom_target(${name}_swig_doc DEPENDS ${GR_SWIG_DOC_FILE})
+-        list(APPEND GR_SWIG_TARGET_DEPS ${name}_swig_doc ${GR_RUNTIME_SWIG_DOC_FILE})
+-    endif()
+-
+-    #append additional include directories
+-    find_package(PythonLibs 2)
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_PATH}) #deprecated name (now dirs)
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
+-
+-    #prepend local swig directories
+-    list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_SOURCE_DIR})
+-    list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_BINARY_DIR})
+-
+-    #determine include dependencies for swig file
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE}
+-            ${CMAKE_BINARY_DIR}/get_swig_deps.py
+-            "${ifiles}" "${GR_SWIG_INCLUDE_DIRS}"
+-        OUTPUT_STRIP_TRAILING_WHITESPACE
+-        OUTPUT_VARIABLE SWIG_MODULE_${name}_EXTRA_DEPS
+-        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+-    )
+-
+-    #Create a dummy custom command that depends on other targets
+-    include(GrMiscUtils)
+-    GR_GEN_TARGET_DEPS(_${name}_swig_tag tag_deps ${GR_SWIG_TARGET_DEPS})
+-    set(tag_file ${CMAKE_CURRENT_BINARY_DIR}/${name}.tag)
+-    add_custom_command(
+-        OUTPUT ${tag_file}
+-        DEPENDS ${GR_SWIG_SOURCE_DEPS} ${tag_deps}
+-        COMMAND ${CMAKE_COMMAND} -E touch ${tag_file}
+-    )
+-
+-    #append the specified include directories
+-    include_directories(${GR_SWIG_INCLUDE_DIRS})
+-    list(APPEND SWIG_MODULE_${name}_EXTRA_DEPS ${tag_file})
+-
+-    #setup the swig flags with flags and include directories
+-    set(CMAKE_SWIG_FLAGS -fvirtual -modern -keyword -w511 -module ${name} ${GR_SWIG_FLAGS})
+-    foreach(dir ${GR_SWIG_INCLUDE_DIRS})
+-        list(APPEND CMAKE_SWIG_FLAGS "-I${dir}")
+-    endforeach(dir)
+-
+-    #set the C++ property on the swig .i file so it builds
+-    set_source_files_properties(${ifiles} PROPERTIES CPLUSPLUS ON)
+-
+-    #setup the actual swig library target to be built
+-    include(UseSWIG)
+-    SWIG_ADD_MODULE(${name} python ${ifiles})
+-    SWIG_LINK_LIBRARIES(${name} ${PYTHON_LIBRARIES} ${GR_SWIG_LIBRARIES})
+-
+-endmacro(GR_SWIG_MAKE)
+-
+-########################################################################
+-# Install swig targets generated by GR_SWIG_MAKE. Usage:
+-# GR_SWIG_INSTALL(
+-#   TARGETS target target target...
+-#   [DESTINATION destination]
+-#   [COMPONENT component]
+-# )
+-########################################################################
+-macro(GR_SWIG_INSTALL)
+-
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_SWIG_INSTALL "" "DESTINATION;COMPONENT" "TARGETS" ${ARGN})
+-
+-    foreach(name ${GR_SWIG_INSTALL_TARGETS})
+-        install(TARGETS ${SWIG_MODULE_${name}_REAL_NAME}
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-            COMPONENT ${GR_SWIG_INSTALL_COMPONENT}
+-        )
+-
+-        include(GrPython)
+-        GR_PYTHON_INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name}.py
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-            COMPONENT ${GR_SWIG_INSTALL_COMPONENT}
+-        )
+-
+-        GR_LIBTOOL(
+-            TARGET ${SWIG_MODULE_${name}_REAL_NAME}
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-        )
+-
+-    endforeach(name)
+-
+-endmacro(GR_SWIG_INSTALL)
+-
+-########################################################################
+-# Generate a python file that can determine swig dependencies.
+-# Used by the make macro above to determine extra dependencies.
+-# When you build C++, CMake figures out the header dependencies.
+-# This code essentially performs that logic for swig includes.
+-########################################################################
+-file(WRITE ${CMAKE_BINARY_DIR}/get_swig_deps.py "
+-
+-import os, sys, re
+-
+-i_include_matcher = re.compile('%(include|import)\\s*[<|\"](.*)[>|\"]')
+-h_include_matcher = re.compile('#(include)\\s*[<|\"](.*)[>|\"]')
+-include_dirs = sys.argv[2].split(';')
+-
+-def get_swig_incs(file_path):
+-    if file_path.endswith('.i'): matcher = i_include_matcher
+-    else: matcher = h_include_matcher
+-    file_contents = open(file_path, 'r').read()
+-    return matcher.findall(file_contents, re.MULTILINE)
+-
+-def get_swig_deps(file_path, level):
+-    deps = [file_path]
+-    if level == 0: return deps
+-    for keyword, inc_file in get_swig_incs(file_path):
+-        for inc_dir in include_dirs:
+-            inc_path = os.path.join(inc_dir, inc_file)
+-            if not os.path.exists(inc_path): continue
+-            deps.extend(get_swig_deps(inc_path, level-1))
+-            break #found, we dont search in lower prio inc dirs
+-    return deps
+-
+-if __name__ == '__main__':
+-    ifiles = sys.argv[1].split(';')
+-    deps = sum([get_swig_deps(ifile, 3) for ifile in ifiles], [])
+-    #sys.stderr.write(';'.join(set(deps)) + '\\n\\n')
+-    print(';'.join(set(deps)))
+-")
+diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
+deleted file mode 100644
+index 62caab4..0000000
+--- cmake/Modules/GrTest.cmake
++++ /dev/null
+@@ -1,143 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_TEST_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_TEST_CMAKE TRUE)
+-
+-########################################################################
+-# Add a unit test and setup the environment for a unit test.
+-# Takes the same arguments as the ADD_TEST function.
+-#
+-# Before calling set the following variables:
+-# GR_TEST_TARGET_DEPS  - built targets for the library path
+-# GR_TEST_LIBRARY_DIRS - directories for the library path
+-# GR_TEST_PYTHON_DIRS  - directories for the python path
+-# GR_TEST_ENVIRONS  - other environment key/value pairs
+-########################################################################
+-function(GR_ADD_TEST test_name)
+-
+-        #Ensure that the build exe also appears in the PATH.
+-        list(APPEND GR_TEST_TARGET_DEPS ${ARGN})
+-
+-        #In the land of windows, all libraries must be in the PATH.
+-        #Since the dependent libraries are not yet installed,
+-        #we must manually set them in the PATH to run tests.
+-        #The following appends the path of a target dependency.
+-        foreach(target ${GR_TEST_TARGET_DEPS})
+-            get_target_property(location ${target} LOCATION)
+-            if(location)
+-                get_filename_component(path ${location} PATH)
+-                string(REGEX REPLACE "\\$\\(.*\\)" ${CMAKE_BUILD_TYPE} path ${path})
+-                list(APPEND GR_TEST_LIBRARY_DIRS ${path})
+-            endif(location)
+-        endforeach(target)
+-
+-    if(WIN32)
+-        #SWIG generates the python library files into a subdirectory.
+-        #Therefore, we must append this subdirectory into PYTHONPATH.
+-        #Only do this for the python directories matching the following:
+-        foreach(pydir ${GR_TEST_PYTHON_DIRS})
+-            get_filename_component(name ${pydir} NAME)
+-            if(name MATCHES "^(swig|lib|src)$")
+-                list(APPEND GR_TEST_PYTHON_DIRS ${pydir}/${CMAKE_BUILD_TYPE})
+-            endif()
+-        endforeach(pydir)
+-    endif(WIN32)
+-
+-    file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} srcdir)
+-    file(TO_NATIVE_PATH "${GR_TEST_LIBRARY_DIRS}" libpath) #ok to use on dir list?
+-    file(TO_NATIVE_PATH "${GR_TEST_PYTHON_DIRS}" pypath) #ok to use on dir list?
+-
+-    set(environs "VOLK_GENERIC=1" "GR_DONT_LOAD_PREFS=1" "srcdir=${srcdir}")
+-    list(APPEND environs ${GR_TEST_ENVIRONS})
+-
+-    #http://www.cmake.org/pipermail/cmake/2009-May/029464.html
+-    #Replaced this add test + set environs code with the shell script generation.
+-    #Its nicer to be able to manually run the shell script to diagnose problems.
+-    #ADD_TEST(${ARGV})
+-    #SET_TESTS_PROPERTIES(${test_name} PROPERTIES ENVIRONMENT "${environs}")
+-
+-    if(UNIX)
+-        set(LD_PATH_VAR "LD_LIBRARY_PATH")
+-        if(APPLE)
+-            set(LD_PATH_VAR "DYLD_LIBRARY_PATH")
+-        endif()
+-
+-        set(binpath "${CMAKE_CURRENT_BINARY_DIR}:$PATH")
+-        list(APPEND libpath "$${LD_PATH_VAR}")
+-        list(APPEND pypath "$PYTHONPATH")
+-
+-        #replace list separator with the path separator
+-        string(REPLACE ";" ":" libpath "${libpath}")
+-        string(REPLACE ";" ":" pypath "${pypath}")
+-        list(APPEND environs "PATH=${binpath}" "${LD_PATH_VAR}=${libpath}" "PYTHONPATH=${pypath}")
+-
+-        #generate a bat file that sets the environment and runs the test
+-	if (CMAKE_CROSSCOMPILING)
+-                set(SHELL "/bin/sh")
+-        else(CMAKE_CROSSCOMPILING)
+-                find_program(SHELL sh)
+-        endif(CMAKE_CROSSCOMPILING)
+-        set(sh_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.sh)
+-        file(WRITE ${sh_file} "#!${SHELL}\n")
+-        #each line sets an environment variable
+-        foreach(environ ${environs})
+-            file(APPEND ${sh_file} "export ${environ}\n")
+-        endforeach(environ)
+-        #load the command to run with its arguments
+-        foreach(arg ${ARGN})
+-            file(APPEND ${sh_file} "${arg} ")
+-        endforeach(arg)
+-        file(APPEND ${sh_file} "\n")
+-
+-        #make the shell file executable
+-        execute_process(COMMAND chmod +x ${sh_file})
+-
+-        add_test(${test_name} ${SHELL} ${sh_file})
+-
+-    endif(UNIX)
+-
+-    if(WIN32)
+-        list(APPEND libpath ${DLL_PATHS} "%PATH%")
+-        list(APPEND pypath "%PYTHONPATH%")
+-
+-        #replace list separator with the path separator (escaped)
+-        string(REPLACE ";" "\\;" libpath "${libpath}")
+-        string(REPLACE ";" "\\;" pypath "${pypath}")
+-        list(APPEND environs "PATH=${libpath}" "PYTHONPATH=${pypath}")
+-
+-        #generate a bat file that sets the environment and runs the test
+-        set(bat_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.bat)
+-        file(WRITE ${bat_file} "@echo off\n")
+-        #each line sets an environment variable
+-        foreach(environ ${environs})
+-            file(APPEND ${bat_file} "SET ${environ}\n")
+-        endforeach(environ)
+-        #load the command to run with its arguments
+-        foreach(arg ${ARGN})
+-            file(APPEND ${bat_file} "${arg} ")
+-        endforeach(arg)
+-        file(APPEND ${bat_file} "\n")
+-
+-        add_test(${test_name} ${bat_file})
+-    endif(WIN32)
+-
+-endfunction(GR_ADD_TEST)
+diff --git a/cmake/Modules/GrVersion.cmake b/cmake/Modules/GrVersion.cmake
+deleted file mode 100644
+index bafd0a7..0000000
+--- cmake/Modules/GrVersion.cmake
++++ /dev/null
+@@ -1,82 +0,0 @@
+-# Copyright 2011,2013 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_VERSION_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_VERSION_CMAKE TRUE)
+-
+-#eventually, replace version.sh and fill in the variables below
+-set(MAJOR_VERSION ${VERSION_INFO_MAJOR_VERSION})
+-set(API_COMPAT    ${VERSION_INFO_API_COMPAT})
+-set(MINOR_VERSION ${VERSION_INFO_MINOR_VERSION})
+-set(MAINT_VERSION ${VERSION_INFO_MAINT_VERSION})
+-
+-########################################################################
+-# Extract the version string from git describe.
+-########################################################################
+-find_package(Git)
+-
+-if(GIT_FOUND AND EXISTS ${CMAKE_SOURCE_DIR}/.git)
+-    message(STATUS "Extracting version information from git describe...")
+-    execute_process(
+-        COMMAND ${GIT_EXECUTABLE} describe --always --abbrev=8 --long
+-        OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE
+-        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+-    )
+-else()
+-    set(GIT_DESCRIBE "v${MAJOR_VERSION}.${API_COMPAT}.x-xxx-xunknown")
+-endif()
+-
+-########################################################################
+-# Use the logic below to set the version constants
+-########################################################################
+-if("${MINOR_VERSION}" STREQUAL "git")
+-    # VERSION: 3.3git-xxx-gxxxxxxxx
+-    # DOCVER:  3.3git
+-    # LIBVER:  3.3git
+-    set(VERSION "${GIT_DESCRIBE}")
+-    set(DOCVER  "${MAJOR_VERSION}.${API_COMPAT}${MINOR_VERSION}")
+-    set(LIBVER  "${MAJOR_VERSION}.${API_COMPAT}${MINOR_VERSION}")
+-    set(RC_MINOR_VERSION "0")
+-    set(RC_MAINT_VERSION "0")
+-elseif("${MAINT_VERSION}" STREQUAL "git")
+-    # VERSION: 3.3.1git-xxx-gxxxxxxxx
+-    # DOCVER:  3.3.1git
+-    # LIBVER:  3.3.1git
+-    set(VERSION "${GIT_DESCRIBE}")
+-    set(DOCVER  "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}${MAINT_VERSION}")
+-    set(LIBVER  "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}${MAINT_VERSION}")
+-    math(EXPR RC_MINOR_VERSION "${MINOR_VERSION} - 1")
+-    set(RC_MAINT_VERSION "0")
+-else()
+-    # This is a numbered release.
+-    # VERSION: 3.3.1{.x}
+-    # DOCVER:  3.3.1{.x}
+-    # LIBVER:  3.3.1{.x}
+-    if("${MAINT_VERSION}" STREQUAL "0")
+-        set(VERSION "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}")
+-    else()
+-        set(VERSION "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}.${MAINT_VERSION}")
+-    endif()
+-    set(DOCVER "${VERSION}")
+-    set(LIBVER "${VERSION}")
+-    set(RC_MINOR_VERSION ${MINOR_VERSION})
+-    set(RC_MAINT_VERSION ${MAINT_VERSION})
+-endif()
+diff --git a/cmake/Modules/OsmoSDRMiscUtils.cmake b/cmake/Modules/OsmoSDRMiscUtils.cmake
+new file mode 100644
+index 0000000..21c6351
+--- /dev/null
++++ cmake/Modules/OsmoSDRMiscUtils.cmake
+@@ -0,0 +1,132 @@
++# Copyright 2010-2011,2014 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_OSMOSDR_MISC_UTILS_CMAKE)
++    return()
++endif()
++set(__INCLUDED_OSMOSDR_MISC_UTILS_CMAKE TRUE)
++
++########################################################################
++# This macro includes subdirectories rather than adding them
++# so that the subdirectory can affect variables in the level above.
++# This provides a work-around for the lack of convenience libraries.
++# This way a subdirectory can append to the list of library sources.
++########################################################################
++macro(GR_INCLUDE_SUBDIRECTORY subdir)
++    #insert the current directories on the front of the list
++    list(INSERT _cmake_source_dirs 0 ${CMAKE_CURRENT_SOURCE_DIR})
++    list(INSERT _cmake_binary_dirs 0 ${CMAKE_CURRENT_BINARY_DIR})
++
++    #set the current directories to the names of the subdirs
++    set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${subdir})
++    set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${subdir})
++
++    #include the subdirectory CMakeLists to run it
++    file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
++    include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
++
++    #reset the value of the current directories
++    list(GET _cmake_source_dirs 0 CMAKE_CURRENT_SOURCE_DIR)
++    list(GET _cmake_binary_dirs 0 CMAKE_CURRENT_BINARY_DIR)
++
++    #pop the subdir names of the front of the list
++    list(REMOVE_AT _cmake_source_dirs 0)
++    list(REMOVE_AT _cmake_binary_dirs 0)
++endmacro(GR_INCLUDE_SUBDIRECTORY)
++
++
++########################################################################
++# Generates the .la libtool file
++# This appears to generate libtool files that cannot be used by auto*.
++# Usage GR_LIBTOOL(TARGET [target] DESTINATION [dest])
++# Notice: there is not COMPONENT option, these will not get distributed.
++########################################################################
++function(GR_LIBTOOL)
++    if(NOT DEFINED GENERATE_LIBTOOL)
++        set(GENERATE_LIBTOOL OFF) #disabled by default
++    endif()
++
++    if(GENERATE_LIBTOOL)
++        include(CMakeParseArgumentsCopy)
++        CMAKE_PARSE_ARGUMENTS(GR_LIBTOOL "" "TARGET;DESTINATION" "" ${ARGN})
++
++        find_program(LIBTOOL libtool)
++        if(LIBTOOL)
++            include(CMakeMacroLibtoolFile)
++            CREATE_LIBTOOL_FILE(${GR_LIBTOOL_TARGET} /${GR_LIBTOOL_DESTINATION})
++        endif(LIBTOOL)
++    endif(GENERATE_LIBTOOL)
++
++endfunction(GR_LIBTOOL)
++
++########################################################################
++# Do standard things to the library target
++# - set target properties
++# - make install rules
++# Also handle gnuradio custom naming conventions w/ extras mode.
++########################################################################
++function(GR_LIBRARY_FOO_V2 target)
++    #parse the arguments for component names
++    include(CMakeParseArgumentsCopy)
++    CMAKE_PARSE_ARGUMENTS(GR_LIBRARY "" "RUNTIME_COMPONENT;DEVEL_COMPONENT" "" ${ARGN})
++
++    #set additional target properties
++    set_target_properties(${target} PROPERTIES SOVERSION ${LIBVER})
++
++    #install the generated files like so...
++    install(TARGETS ${target}
++            LIBRARY DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .so/.dylib file
++            ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_DEVEL_COMPONENT}   # .lib file
++            RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .dll file
++            )
++
++    #extras mode enabled automatically on linux
++    if(NOT DEFINED LIBRARY_EXTRAS)
++        set(LIBRARY_EXTRAS ${LINUX})
++    endif()
++
++    #special extras mode to enable alternative naming conventions
++    if(LIBRARY_EXTRAS)
++
++        #create .la file before changing props
++        GR_LIBTOOL(TARGET ${target} DESTINATION ${GR_LIBRARY_DIR})
++
++        #give the library a special name with ultra-zero soversion
++        set_target_properties(${target} PROPERTIES OUTPUT_NAME ${target}-${LIBVER} SOVERSION "0.0.0")
++        set(target_name lib${target}-${LIBVER}.so.0.0.0)
++
++        #custom command to generate symlinks
++        add_custom_command(
++                TARGET ${target}
++                POST_BUILD
++                COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
++                COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
++                COMMAND ${CMAKE_COMMAND} -E touch ${target_name} #so the symlinks point to something valid so cmake 2.6 will install
++        )
++
++        #and install the extra symlinks
++        install(
++                FILES
++                ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
++                ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
++                DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT}
++        )
++
++    endif(LIBRARY_EXTRAS)
++endfunction(GR_LIBRARY_FOO_V2)
+diff --git a/cmake/Modules/osmosdrConfig.cmake b/cmake/Modules/osmosdrConfig.cmake
+new file mode 100644
+index 0000000..a3b341a
+--- /dev/null
++++ cmake/Modules/osmosdrConfig.cmake
+@@ -0,0 +1,31 @@
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_OSMOSDR osmosdr)
++
++FIND_PATH(
++    OSMOSDR_INCLUDE_DIRS
++    NAMES osmosdr/api.h
++    HINTS $ENV{OSMOSDR_DIR}/include
++        ${PC_OSMOSDR_INCLUDEDIR}
++    PATHS ${CMAKE_INSTALL_PREFIX}/include
++          /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    OSMOSDR_LIBRARIES
++    NAMES gnuradio-osmosdr
++    HINTS $ENV{OSMOSDR_DIR}/lib
++        ${PC_OSMOSDR_LIBDIR}
++    PATHS ${CMAKE_INSTALL_PREFIX}/lib
++          ${CMAKE_INSTALL_PREFIX}/lib64
++          /usr/local/lib
++          /usr/local/lib64
++          /usr/lib
++          /usr/lib64
++          )
++
++include("${CMAKE_CURRENT_LIST_DIR}/osmosdrTarget.cmake")
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(OSMOSDR DEFAULT_MSG OSMOSDR_LIBRARIES OSMOSDR_INCLUDE_DIRS)
++MARK_AS_ADVANCED(OSMOSDR_LIBRARIES OSMOSDR_INCLUDE_DIRS)
+diff --git a/cmake/Modules/targetConfig.cmake.in b/cmake/Modules/targetConfig.cmake.in
+new file mode 100644
+index 0000000..79e4a28
+--- /dev/null
++++ cmake/Modules/targetConfig.cmake.in
+@@ -0,0 +1,26 @@
++# Copyright 2018 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++include(CMakeFindDependencyMacro)
++
++set(target_deps "@TARGET_DEPENDENCIES@")
++foreach(dep IN LISTS target_deps)
++    find_dependency(${dep})
++endforeach()
++include("${CMAKE_CURRENT_LIST_DIR}/@TARGET@Targets.cmake")
+diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
+index 446b86a..a50dbf8 100644
+--- docs/CMakeLists.txt
++++ docs/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -17,6 +18,11 @@
+ # the Free Software Foundation, Inc., 51 Franklin Street,
+ # Boston, MA 02110-1301, USA.
+ 
++########################################################################
++# Setup dependencies
++########################################################################
++find_package(Doxygen)
++
+ ########################################################################
+ # Begin conditional configuration
+ ########################################################################
+diff --git a/docs/doxygen/CMakeLists.txt b/docs/doxygen/CMakeLists.txt
+index 1b44799..179104b 100644
+--- docs/doxygen/CMakeLists.txt
++++ docs/doxygen/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/docs/doxygen/Doxyfile.in b/docs/doxygen/Doxyfile.in
+index 8dde978..ab27c33 100644
+--- docs/doxygen/Doxyfile.in
++++ docs/doxygen/Doxyfile.in
+@@ -1,14 +1,16 @@
+-# Doxyfile 1.5.7.1
++# Doxyfile 1.8.4
+ 
+ # This file describes the settings to be used by the documentation system
+-# doxygen (www.doxygen.org) for a project
++# doxygen (www.doxygen.org) for a project.
+ #
+-# All text after a hash (#) is considered a comment and will be ignored
++# All text after a double hash (##) is considered a comment and is placed
++# in front of the TAG it is preceding .
++# All text after a hash (#) is considered a comment and will be ignored.
+ # The format is:
+ #       TAG = value [value, ...]
+ # For lists items can also be appended using:
+ #       TAG += value [value, ...]
+-# Values that contain spaces should be placed between quotes (" ")
++# Values that contain spaces should be placed between quotes (" ").
+ 
+ #---------------------------------------------------------------------------
+ # Project related configuration options
+@@ -22,10 +24,11 @@
+ 
+ DOXYFILE_ENCODING      = UTF-8
+ 
+-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+-# by quotes) that should identify the project.
++# The PROJECT_NAME tag is a single word (or sequence of words) that should
++# identify the project. Note that if you do not use Doxywizard you need
++# to put quotes around the project name if it contains spaces.
+ 
+-PROJECT_NAME           = "GNU Radio's OsmoSDR Package"
++PROJECT_NAME           = "GNU Radio's OSMOSDR Package"
+ 
+ # The PROJECT_NUMBER tag can be used to enter a project or revision number.
+ # This could be handy for archiving the generated documentation or
+@@ -33,6 +36,19 @@ PROJECT_NAME           = "GNU Radio's OsmoSDR Package"
+ 
+ PROJECT_NUMBER         =
+ 
++# Using the PROJECT_BRIEF tag one can provide an optional one line description
++# for a project that appears at the top of each page and should give viewer
++# a quick idea about the purpose of the project. Keep the description short.
++
++PROJECT_BRIEF          =
++
++# With the PROJECT_LOGO tag one can specify an logo or icon that is
++# included in the documentation. The maximum height of the logo should not
++# exceed 55 pixels and the maximum width should not exceed 200 pixels.
++# Doxygen will copy the logo to the output directory.
++
++PROJECT_LOGO           =
++
+ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+ # base path where the generated documentation will be put.
+ # If a relative path is entered, it will be relative to the location
+@@ -54,11 +70,11 @@ CREATE_SUBDIRS         = NO
+ # information to generate all constant output in the proper language.
+ # The default language is English, other supported languages are:
+ # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+-# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
+-# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
+-# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
+-# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
+-# Spanish, Swedish, and Ukrainian.
++# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
++# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
++# messages), Korean, Korean-en, Latvian, Lithuanian, Norwegian, Macedonian,
++# Persian, Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic,
++# Slovak, Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+ 
+ OUTPUT_LANGUAGE        = English
+ 
+@@ -112,7 +128,9 @@ FULL_PATH_NAMES        = NO
+ # only done if one of the specified strings matches the left-hand part of
+ # the path. The tag can be used to show relative paths in the file list.
+ # If left blank the directory from which doxygen is run is used as the
+-# path to strip.
++# path to strip. Note that you specify absolute paths here, but also
++# relative paths, which will be relative from the directory where doxygen is
++# started.
+ 
+ STRIP_FROM_PATH        =
+ 
+@@ -126,7 +144,7 @@ STRIP_FROM_PATH        =
+ STRIP_FROM_INC_PATH    =
+ 
+ # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+-# (but less readable) file names. This can be useful is your file systems
++# (but less readable) file names. This can be useful if your file system
+ # doesn't support long names like on DOS, Mac, or CD-ROM.
+ 
+ SHORT_NAMES            = NO
+@@ -181,6 +199,13 @@ TAB_SIZE               = 8
+ 
+ ALIASES                =
+ 
++# This tag can be used to specify a number of word-keyword mappings (TCL only).
++# A mapping has the form "name=value". For example adding
++# "class=itcl::class" will allow you to use the command class in the
++# itcl::class meaning.
++
++TCL_SUBST              =
++
+ # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+ # sources only. Doxygen will then generate output that is more tailored for C.
+ # For instance, some of the names that are used will be different. The list
+@@ -207,11 +232,40 @@ OPTIMIZE_FOR_FORTRAN   = NO
+ 
+ OPTIMIZE_OUTPUT_VHDL   = NO
+ 
++# Doxygen selects the parser to use depending on the extension of the files it
++# parses. With this tag you can assign which parser to use for a given
++# extension. Doxygen has a built-in mapping, but you can override or extend it
++# using this tag. The format is ext=language, where ext is a file extension,
++# and language is one of the parsers supported by doxygen: IDL, Java,
++# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
++# C++. For instance to make doxygen treat .inc files as Fortran files (default
++# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
++# that for custom extensions you also need to set FILE_PATTERNS otherwise the
++# files are not read by doxygen.
++
++EXTENSION_MAPPING      =
++
++# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all
++# comments according to the Markdown format, which allows for more readable
++# documentation. See http://daringfireball.net/projects/markdown/ for details.
++# The output of markdown processing is further processed by doxygen, so you
++# can mix doxygen, HTML, and XML commands with Markdown formatting.
++# Disable only in case of backward compatibilities issues.
++
++MARKDOWN_SUPPORT       = YES
++
++# When enabled doxygen tries to link words that correspond to documented
++# classes, or namespaces to their corresponding documentation. Such a link can
++# be prevented in individual cases by by putting a % sign in front of the word
++# or globally by setting AUTOLINK_SUPPORT to NO.
++
++AUTOLINK_SUPPORT       = YES
++
+ # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+ # to include (a tag file for) the STL sources as input, then you should
+ # set this tag to YES in order to let doxygen match functions declarations and
+ # definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+-# func(std::string) {}). This also make the inheritance and collaboration
++# func(std::string) {}). This also makes the inheritance and collaboration
+ # diagrams that involve STL classes more complete and accurate.
+ 
+ BUILTIN_STL_SUPPORT    = YES
+@@ -227,10 +281,10 @@ CPP_CLI_SUPPORT        = NO
+ 
+ SIP_SUPPORT            = NO
+ 
+-# For Microsoft's IDL there are propget and propput attributes to indicate getter
+-# and setter methods for a property. Setting this option to YES (the default)
+-# will make doxygen to replace the get and set methods by a property in the
+-# documentation. This will only work if the methods are indeed getting or
++# For Microsoft's IDL there are propget and propput attributes to indicate
++# getter and setter methods for a property. Setting this option to YES (the
++# default) will make doxygen replace the get and set methods by a property in
++# the documentation. This will only work if the methods are indeed getting or
+ # setting a simple type. If this is not the case, or you want to show the
+ # methods anyway, you should set this option to NO.
+ 
+@@ -251,6 +305,22 @@ DISTRIBUTE_GROUP_DOC   = NO
+ 
+ SUBGROUPING            = YES
+ 
++# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
++# unions are shown inside the group in which they are included (e.g. using
++# @ingroup) instead of on a separate page (for HTML and Man pages) or
++# section (for LaTeX and RTF).
++
++INLINE_GROUPED_CLASSES = NO
++
++# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and
++# unions with only public data fields or simple typedef fields will be shown
++# inline in the documentation of the scope in which they are defined (i.e. file,
++# namespace, or group documentation), provided this scope is documented. If set
++# to NO (the default), structs, classes, and unions are shown on a separate
++# page (for HTML and Man pages) or section (for LaTeX and RTF).
++
++INLINE_SIMPLE_STRUCTS  = NO
++
+ # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+ # is documented as struct, union, or enum with the name of the typedef. So
+ # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+@@ -261,21 +331,16 @@ SUBGROUPING            = YES
+ 
+ TYPEDEF_HIDES_STRUCT   = NO
+ 
+-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+-# determine which symbols to keep in memory and which to flush to disk.
+-# When the cache is full, less often used symbols will be written to disk.
+-# For small to medium size projects (<1000 input files) the default value is
+-# probably good enough. For larger projects a too small cache size can cause
+-# doxygen to be busy swapping symbols to and from disk most of the time
+-# causing a significant performance penality.
+-# If the system has enough physical memory increasing the cache will improve the
+-# performance by keeping more symbols in memory. Note that the value works on
+-# a logarithmic scale so increasing the size by one will rougly double the
+-# memory usage. The cache size is given by this formula:
+-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+-# corresponding to a cache size of 2^16 = 65536 symbols
+-
+-SYMBOL_CACHE_SIZE      = 4
++# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
++# cache is used to resolve symbols given their name and scope. Since this can
++# be an expensive process and often the same symbol appear multiple times in
++# the code, doxygen keeps a cache of pre-resolved symbols. If the cache is too
++# small doxygen will become slower. If the cache is too large, memory is wasted.
++# The cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid
++# range is 0..9, the default is 0, corresponding to a cache size of 2^16 = 65536
++# symbols.
++
++LOOKUP_CACHE_SIZE      = 0
+ 
+ #---------------------------------------------------------------------------
+ # Build related configuration options
+@@ -284,7 +349,7 @@ SYMBOL_CACHE_SIZE      = 4
+ # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+ # documentation are documented, even if no documentation was available.
+ # Private class members and static file members will be hidden unless
+-# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
++# the EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES
+ 
+ EXTRACT_ALL            = YES
+ 
+@@ -293,6 +358,11 @@ EXTRACT_ALL            = YES
+ 
+ EXTRACT_PRIVATE        = NO
+ 
++# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
++# scope will be included in the documentation.
++
++EXTRACT_PACKAGE        = NO
++
+ # If the EXTRACT_STATIC tag is set to YES all static members of a file
+ # will be included in the documentation.
+ 
+@@ -315,7 +385,7 @@ EXTRACT_LOCAL_METHODS  = NO
+ # extracted and appear in the documentation as a namespace called
+ # 'anonymous_namespace{file}', where file will be replaced with the base
+ # name of the file that contains the anonymous namespace. By default
+-# anonymous namespace are hidden.
++# anonymous namespaces are hidden.
+ 
+ EXTRACT_ANON_NSPACES   = NO
+ 
+@@ -375,6 +445,12 @@ HIDE_SCOPE_NAMES       = NO
+ 
+ SHOW_INCLUDE_FILES     = YES
+ 
++# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
++# will list include files with double quotes in the documentation
++# rather than with sharp brackets.
++
++FORCE_LOCAL_INCLUDES   = NO
++
+ # If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+ # is inserted in the documentation for inline members.
+ 
+@@ -394,6 +470,16 @@ SORT_MEMBER_DOCS       = YES
+ 
+ SORT_BRIEF_DOCS        = NO
+ 
++# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
++# will sort the (brief and detailed) documentation of class members so that
++# constructors and destructors are listed first. If set to NO (the default)
++# the constructors will appear in the respective orders defined by
++# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
++# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
++# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
++
++SORT_MEMBERS_CTORS_1ST = NO
++
+ # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+ # hierarchy of group names into alphabetical order. If set to NO (the default)
+ # the group names will appear in their defined order.
+@@ -410,6 +496,15 @@ SORT_GROUP_NAMES       = NO
+ 
+ SORT_BY_SCOPE_NAME     = NO
+ 
++# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
++# do proper type resolution of all parameters of a function it will reject a
++# match between the prototype and the implementation of a member function even
++# if there is only one candidate or it is obvious which candidate to choose
++# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
++# will still accept a match between prototype and implementation in such cases.
++
++STRICT_PROTO_MATCHING  = NO
++
+ # The GENERATE_TODOLIST tag can be used to enable (YES) or
+ # disable (NO) the todo list. This list is created by putting \todo
+ # commands in the documentation.
+@@ -435,15 +530,16 @@ GENERATE_BUGLIST       = NO
+ GENERATE_DEPRECATEDLIST= NO
+ 
+ # The ENABLED_SECTIONS tag can be used to enable conditional
+-# documentation sections, marked by \if sectionname ... \endif.
++# documentation sections, marked by \if section-label ... \endif
++# and \cond section-label ... \endcond blocks.
+ 
+ ENABLED_SECTIONS       =
+ 
+ # The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+-# the initial value of a variable or define consists of for it to appear in
++# the initial value of a variable or macro consists of for it to appear in
+ # the documentation. If the initializer consists of more lines than specified
+ # here it will be hidden. Use a value of 0 to hide initializers completely.
+-# The appearance of the initializer of individual variables and defines in the
++# The appearance of the initializer of individual variables and macros in the
+ # documentation can be controlled using \showinitializer or \hideinitializer
+ # command in the documentation regardless of this setting.
+ 
+@@ -455,12 +551,6 @@ MAX_INITIALIZER_LINES  = 30
+ 
+ SHOW_USED_FILES        = YES
+ 
+-# If the sources in your project are distributed over multiple directories
+-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+-# in the documentation. The default is NO.
+-
+-SHOW_DIRECTORIES       = NO
+-
+ # Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+ # This will remove the Files entry from the Quick Index and from the
+ # Folder Tree View (if specified). The default is YES.
+@@ -468,7 +558,8 @@ SHOW_DIRECTORIES       = NO
+ SHOW_FILES             = YES
+ 
+ # Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+-# Namespaces page.  This will remove the Namespaces entry from the Quick Index
++# Namespaces page.
++# This will remove the Namespaces entry from the Quick Index
+ # and from the Folder Tree View (if specified). The default is YES.
+ 
+ SHOW_NAMESPACES        = NO
+@@ -483,15 +574,26 @@ SHOW_NAMESPACES        = NO
+ 
+ FILE_VERSION_FILTER    =
+ 
+-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+-# doxygen. The layout file controls the global structure of the generated output files
+-# in an output format independent way. The create the layout file that represents
+-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+-# of the layout file.
++# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
++# by doxygen. The layout file controls the global structure of the generated
++# output files in an output format independent way. To create the layout file
++# that represents doxygen's defaults, run doxygen with the -l option.
++# You can optionally specify a file name after the option, if omitted
++# DoxygenLayout.xml will be used as the name of the layout file.
+ 
+ LAYOUT_FILE            =
+ 
++# The CITE_BIB_FILES tag can be used to specify one or more bib files
++# containing the references data. This must be a list of .bib files. The
++# .bib extension is automatically appended if omitted. Using this command
++# requires the bibtex tool to be installed. See also
++# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style
++# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this
++# feature you need bibtex and perl available in the search path. Do not use
++# file names with spaces, bibtex cannot handle them.
++
++CITE_BIB_FILES         =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to warning and progress messages
+ #---------------------------------------------------------------------------
+@@ -520,7 +622,7 @@ WARN_IF_UNDOCUMENTED   = YES
+ 
+ WARN_IF_DOC_ERROR      = YES
+ 
+-# This WARN_NO_PARAMDOC option can be abled to get warnings for
++# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+ # functions that are documented, but have no documentation for their parameters
+ # or return value. If set to NO (the default) doxygen will only warn about
+ # wrong or incomplete parameter documentation, but not about the absence of
+@@ -552,7 +654,8 @@ WARN_LOGFILE           =
+ # directories like "/usr/src/myproject". Separate the files or directories
+ # with spaces.
+ 
+-INPUT                  = @top_srcdir@ @top_builddir@
++INPUT                  = @top_srcdir@ \
++                         @top_builddir@
+ 
+ # This tag can be used to specify the character encoding of the source files
+ # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+@@ -566,8 +669,9 @@ INPUT_ENCODING         = UTF-8
+ # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+ # and *.h) to filter out the source-files in the directories. If left
+ # blank the following patterns are tested:
+-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+-# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
++# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
++# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
++# *.f90 *.f *.for *.vhd *.vhdl
+ 
+ FILE_PATTERNS          = *.h \
+                          *.dox
+@@ -578,18 +682,20 @@ FILE_PATTERNS          = *.h \
+ 
+ RECURSIVE              = YES
+ 
+-# The EXCLUDE tag can be used to specify files and/or directories that should
++# The EXCLUDE tag can be used to specify files and/or directories that should be
+ # excluded from the INPUT source files. This way you can easily exclude a
+ # subdirectory from a directory tree whose root is specified with the INPUT tag.
++# Note that relative paths are relative to the directory from which doxygen is
++# run.
+ 
+ EXCLUDE                = @abs_top_builddir@/docs/doxygen/html \
+-		         @abs_top_builddir@/docs/doxygen/xml \
++                         @abs_top_builddir@/docs/doxygen/xml \
+                          @abs_top_builddir@/docs/doxygen/other/doxypy.py \
+-			 @abs_top_builddir@/_CPack_Packages \
++                         @abs_top_builddir@/_CPack_Packages \
+                          @abs_top_srcdir@/cmake
+ 
+-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+-# directories that are symbolic links (a Unix filesystem feature) are excluded
++# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
++# directories that are symbolic links (a Unix file system feature) are excluded
+ # from the input.
+ 
+ EXCLUDE_SYMLINKS       = NO
+@@ -667,19 +773,24 @@ IMAGE_PATH             =
+ # by executing (via popen()) the command <filter> <input-file>, where <filter>
+ # is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+ # input file. Doxygen will then use the output that the filter program writes
+-# to standard output.  If FILTER_PATTERNS is specified, this tag will be
+-# ignored.
++# to standard output.
++# If FILTER_PATTERNS is specified, this tag will be ignored.
++# Note that the filter must not add or remove lines; it is applied before the
++# code is scanned, but not when the output code is generated. If lines are added
++# or removed, the anchors will not be placed correctly.
+ 
+ INPUT_FILTER           =
+ 
+ # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+-# basis.  Doxygen will compare the file name with each pattern and apply the
+-# filter if there is a match.  The filters are a list of the form:
++# basis.
++# Doxygen will compare the file name with each pattern and apply the
++# filter if there is a match.
++# The filters are a list of the form:
+ # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+-# is applied to all files.
++# info on how filters are used. If FILTER_PATTERNS is empty or if
++# non of the patterns match the file name, INPUT_FILTER is applied.
+ 
+-FILTER_PATTERNS        = *.py=@top_srcdir@/gnuradio-runtime/doc/other/doxypy.py
++FILTER_PATTERNS        = *.py=@top_srcdir@/doc/doxygen/other/doxypy.py
+ 
+ # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+ # INPUT_FILTER) will be used to filter the input files when producing source
+@@ -687,6 +798,21 @@ FILTER_PATTERNS        = *.py=@top_srcdir@/gnuradio-runtime/doc/other/doxypy.py
+ 
+ FILTER_SOURCE_FILES    = NO
+ 
++# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
++# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
++# and it is also possible to disable source filtering for a specific pattern
++# using *.ext= (so without naming a filter). This option only has effect when
++# FILTER_SOURCE_FILES is enabled.
++
++FILTER_SOURCE_PATTERNS =
++
++# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that
++# is part of the input, its contents will be placed on the main page
++# (index.html). This can be useful if you have a project on for instance GitHub
++# and want reuse the introduction page also for the doxygen output.
++
++USE_MDFILE_AS_MAINPAGE =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to source browsing
+ #---------------------------------------------------------------------------
+@@ -705,7 +831,7 @@ INLINE_SOURCES         = NO
+ 
+ # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+ # doxygen to hide any special comment blocks from generated source code
+-# fragments. Normal C and C++ comments will always remain visible.
++# fragments. Normal C, C++ and Fortran comments will always remain visible.
+ 
+ STRIP_CODE_COMMENTS    = NO
+ 
+@@ -724,7 +850,8 @@ REFERENCES_RELATION    = YES
+ # If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+ # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+ # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+-# link to the source code.  Otherwise they will link to the documentstion.
++# link to the source code.
++# Otherwise they will link to the documentation.
+ 
+ REFERENCES_LINK_SOURCE = YES
+ 
+@@ -788,7 +915,14 @@ HTML_FILE_EXTENSION    = .html
+ 
+ # The HTML_HEADER tag can be used to specify a personal HTML header for
+ # each generated HTML page. If it is left blank doxygen will generate a
+-# standard header.
++# standard header. Note that when using a custom header you are responsible
++#  for the proper inclusion of any scripts and style sheets that doxygen
++# needs, which is dependent on the configuration options used.
++# It is advised to generate a default header using "doxygen -w html
++# header.html footer.html stylesheet.css YourConfigFile" and then modify
++# that header. Note that the header is subject to change so you typically
++# have to redo this when upgrading to a newer version of doxygen or when
++# changing the value of configuration settings such as GENERATE_TREEVIEW!
+ 
+ HTML_HEADER            =
+ 
+@@ -800,27 +934,80 @@ HTML_FOOTER            =
+ 
+ # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+ # style sheet that is used by each HTML page. It can be used to
+-# fine-tune the look of the HTML output. If the tag is left blank doxygen
+-# will generate a default style sheet. Note that doxygen will try to copy
+-# the style sheet file to the HTML output directory, so don't put your own
+-# stylesheet in the HTML output directory as well, or it will be erased!
++# fine-tune the look of the HTML output. If left blank doxygen will
++# generate a default style sheet. Note that it is recommended to use
++# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this
++# tag will in the future become obsolete.
+ 
+ HTML_STYLESHEET        =
+ 
+-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+-# files or namespaces will be aligned in HTML using tables. If set to
+-# NO a bullet list will be used.
++# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
++# user-defined cascading style sheet that is included after the standard
++# style sheets created by doxygen. Using this option one can overrule
++# certain style aspects. This is preferred over using HTML_STYLESHEET
++# since it does not replace the standard style sheet and is therefore more
++# robust against future updates. Doxygen will copy the style sheet file to
++# the output directory.
+ 
+-HTML_ALIGN_MEMBERS     = YES
++HTML_EXTRA_STYLESHEET  =
++
++# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
++# other source files which should be copied to the HTML output directory. Note
++# that these files will be copied to the base HTML output directory. Use the
++# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
++# files. In the HTML_STYLESHEET file, use the file name only. Also note that
++# the files will be copied as-is; there are no commands or markers available.
++
++HTML_EXTRA_FILES       =
++
++# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
++# Doxygen will adjust the colors in the style sheet and background images
++# according to this color. Hue is specified as an angle on a colorwheel,
++# see http://en.wikipedia.org/wiki/Hue for more information.
++# For instance the value 0 represents red, 60 is yellow, 120 is green,
++# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
++# The allowed range is 0 to 359.
++
++HTML_COLORSTYLE_HUE    = 220
++
++# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
++# the colors in the HTML output. For a value of 0 the output will use
++# grayscales only. A value of 255 will produce the most vivid colors.
++
++HTML_COLORSTYLE_SAT    = 100
++
++# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
++# the luminance component of the colors in the HTML output. Values below
++# 100 gradually make the output lighter, whereas values above 100 make
++# the output darker. The value divided by 100 is the actual gamma applied,
++# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
++# and 100 does not change the gamma.
++
++HTML_COLORSTYLE_GAMMA  = 80
++
++# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
++# page will contain the date and time when the page was generated. Setting
++# this to NO can help when comparing the output of multiple runs.
++
++HTML_TIMESTAMP         = NO
+ 
+ # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+ # documentation will contain sections that can be hidden and shown after the
+-# page has loaded. For this to work a browser that supports
+-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+-# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
++# page has loaded.
+ 
+ HTML_DYNAMIC_SECTIONS  = NO
+ 
++# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of
++# entries shown in the various tree structured indices initially; the user
++# can expand and collapse entries dynamically later on. Doxygen will expand
++# the tree to such a level that at most the specified number of entries are
++# visible (unless a fully collapsed tree already exceeds this amount).
++# So setting the number of entries 1 will produce a full collapsed tree by
++# default. 0 is a special value representing an infinite number of entries
++# and will result in a full expanded tree by default.
++
++HTML_INDEX_NUM_ENTRIES = 100
++
+ # If the GENERATE_DOCSET tag is set to YES, additional index files
+ # will be generated that can be used as input for Apple's Xcode 3
+ # integrated development environment, introduced with OSX 10.5 (Leopard).
+@@ -829,7 +1016,8 @@ HTML_DYNAMIC_SECTIONS  = NO
+ # directory and running "make install" will install the docset in
+ # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+ # it at startup.
+-# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
++# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
++# for more information.
+ 
+ GENERATE_DOCSET        = NO
+ 
+@@ -847,6 +1035,16 @@ DOCSET_FEEDNAME        = "Doxygen generated docs"
+ 
+ DOCSET_BUNDLE_ID       = org.doxygen.Project
+ 
++# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely
++# identify the documentation publisher. This should be a reverse domain-name
++# style string, e.g. com.mycompany.MyDocSet.documentation.
++
++DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
++
++# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
++
++DOCSET_PUBLISHER_NAME  = Publisher
++
+ # If the GENERATE_HTMLHELP tag is set to YES, additional index files
+ # will be generated that can be used as input for tools like the
+ # Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+@@ -891,10 +1089,10 @@ BINARY_TOC             = NO
+ 
+ TOC_EXPAND             = YES
+ 
+-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+-# are set, an additional index file will be generated that can be used as input for
+-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+-# HTML documentation.
++# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
++# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
++# that can be used as input for Qt's qhelpgenerator to generate a
++# Qt Compressed Help (.qch) of the generated HTML documentation.
+ 
+ GENERATE_QHP           = NO
+ 
+@@ -906,57 +1104,99 @@ QCH_FILE               =
+ 
+ # The QHP_NAMESPACE tag specifies the namespace to use when generating
+ # Qt Help Project output. For more information please see
+-# <a href="http://doc.trolltech.com/qthelpproject.html#namespace">Qt Help Project / Namespace</a>.
++# http://doc.trolltech.com/qthelpproject.html#namespace
+ 
+ QHP_NAMESPACE          = org.doxygen.Project
+ 
+ # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+ # Qt Help Project output. For more information please see
+-# <a href="http://doc.trolltech.com/qthelpproject.html#virtual-folders">Qt Help Project / Virtual Folders</a>.
++# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+ 
+ QHP_VIRTUAL_FOLDER     = doc
+ 
++# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
++# add. For more information please see
++# http://doc.trolltech.com/qthelpproject.html#custom-filters
++
++QHP_CUST_FILTER_NAME   =
++
++# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
++# custom filter to add. For more information please see
++# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
++# Qt Help Project / Custom Filters</a>.
++
++QHP_CUST_FILTER_ATTRS  =
++
++# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
++# project's
++# filter section matches.
++# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
++# Qt Help Project / Filter Attributes</a>.
++
++QHP_SECT_FILTER_ATTRS  =
++
+ # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+ # be used to specify the location of Qt's qhelpgenerator.
+ # If non-empty doxygen will try to run qhelpgenerator on the generated
+-# .qhp file .
++# .qhp file.
+ 
+ QHG_LOCATION           =
+ 
+-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+-# top of each HTML page. The value NO (the default) enables the index and
+-# the value YES disables it.
++# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
++#  will be generated, which together with the HTML files, form an Eclipse help
++# plugin. To install this plugin and make it available under the help contents
++# menu in Eclipse, the contents of the directory containing the HTML and XML
++# files needs to be copied into the plugins directory of eclipse. The name of
++# the directory within the plugins directory should be the same as
++# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
++# the help appears.
+ 
+-DISABLE_INDEX          = YES
++GENERATE_ECLIPSEHELP   = NO
+ 
+-# This tag can be used to set the number of enum values (range [1..20])
+-# that doxygen will group on one line in the generated HTML documentation.
++# A unique identifier for the eclipse help plugin. When installing the plugin
++# the directory name containing the HTML and XML files should also have
++# this name.
+ 
+-ENUM_VALUES_PER_LINE   = 4
++ECLIPSE_DOC_ID         = org.doxygen.Project
++
++# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs)
++# at top of each HTML page. The value NO (the default) enables the index and
++# the value YES disables it. Since the tabs have the same information as the
++# navigation tree you can set this option to NO if you already set
++# GENERATE_TREEVIEW to YES.
++
++DISABLE_INDEX          = YES
+ 
+ # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+ # structure should be generated to display hierarchical information.
+-# If the tag value is set to FRAME, a side panel will be generated
++# If the tag value is set to YES, a side panel will be generated
+ # containing a tree-like index structure (just like the one that
+ # is generated for HTML Help). For this to work a browser that supports
+-# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+-# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+-# probably better off using the HTML help feature. Other possible values
+-# for this tag are: HIERARCHIES, which will generate the Groups, Directories,
+-# and Class Hierarchy pages using a tree view instead of an ordered list;
+-# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
+-# disables this behavior completely. For backwards compatibility with previous
+-# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE
+-# respectively.
++# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
++# Windows users are probably better off using the HTML help feature.
++# Since the tree basically has the same information as the tab index you
++# could consider to set DISABLE_INDEX to NO when enabling this option.
+ 
+ GENERATE_TREEVIEW      = YES
+ 
++# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values
++# (range [0,1..20]) that doxygen will group on one line in the generated HTML
++# documentation. Note that a value of 0 will completely suppress the enum
++# values from appearing in the overview section.
++
++ENUM_VALUES_PER_LINE   = 4
++
+ # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+ # used to set the initial width (in pixels) of the frame in which the tree
+ # is shown.
+ 
+ TREEVIEW_WIDTH         = 180
+ 
++# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
++# links to external symbols imported via tag files in a separate window.
++
++EXT_LINKS_IN_WINDOW    = NO
++
+ # Use this tag to change the font size of Latex formulas included
+ # as images in the HTML documentation. The default is 10. Note that
+ # when you change the font size after a successful doxygen run you need
+@@ -965,6 +1205,112 @@ TREEVIEW_WIDTH         = 180
+ 
+ FORMULA_FONTSIZE       = 10
+ 
++# Use the FORMULA_TRANPARENT tag to determine whether or not the images
++# generated for formulas are transparent PNGs. Transparent PNGs are
++# not supported properly for IE 6.0, but are supported on all modern browsers.
++# Note that when changing this option you need to delete any form_*.png files
++# in the HTML output before the changes have effect.
++
++FORMULA_TRANSPARENT    = YES
++
++# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
++# (see http://www.mathjax.org) which uses client side Javascript for the
++# rendering instead of using prerendered bitmaps. Use this if you do not
++# have LaTeX installed or if you want to formulas look prettier in the HTML
++# output. When enabled you may also need to install MathJax separately and
++# configure the path to it using the MATHJAX_RELPATH option.
++
++USE_MATHJAX            = NO
++
++# When MathJax is enabled you can set the default output format to be used for
++# the MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
++# SVG. The default value is HTML-CSS, which is slower, but has the best
++# compatibility.
++
++MATHJAX_FORMAT         = HTML-CSS
++
++# When MathJax is enabled you need to specify the location relative to the
++# HTML output directory using the MATHJAX_RELPATH option. The destination
++# directory should contain the MathJax.js script. For instance, if the mathjax
++# directory is located at the same level as the HTML output directory, then
++# MATHJAX_RELPATH should be ../mathjax. The default value points to
++# the MathJax Content Delivery Network so you can quickly see the result without
++# installing MathJax.
++# However, it is strongly recommended to install a local
++# copy of MathJax from http://www.mathjax.org before deployment.
++
++MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
++
++# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
++# names that should be enabled during MathJax rendering.
++
++MATHJAX_EXTENSIONS     =
++
++# The MATHJAX_CODEFILE tag can be used to specify a file with javascript
++# pieces of code that will be used on startup of the MathJax code.
++
++MATHJAX_CODEFILE       =
++
++# When the SEARCHENGINE tag is enabled doxygen will generate a search box
++# for the HTML output. The underlying search engine uses javascript
++# and DHTML and should work on any modern browser. Note that when using
++# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
++# (GENERATE_DOCSET) there is already a search function so this one should
++# typically be disabled. For large projects the javascript based search engine
++# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
++
++SEARCHENGINE           = NO
++
++# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
++# implemented using a web server instead of a web client using Javascript.
++# There are two flavours of web server based search depending on the
++# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
++# searching and an index file used by the script. When EXTERNAL_SEARCH is
++# enabled the indexing and searching needs to be provided by external tools.
++# See the manual for details.
++
++SERVER_BASED_SEARCH    = NO
++
++# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP
++# script for searching. Instead the search results are written to an XML file
++# which needs to be processed by an external indexer. Doxygen will invoke an
++# external search engine pointed to by the SEARCHENGINE_URL option to obtain
++# the search results. Doxygen ships with an example indexer (doxyindexer) and
++# search engine (doxysearch.cgi) which are based on the open source search
++# engine library Xapian. See the manual for configuration details.
++
++EXTERNAL_SEARCH        = NO
++
++# The SEARCHENGINE_URL should point to a search engine hosted by a web server
++# which will returned the search results when EXTERNAL_SEARCH is enabled.
++# Doxygen ships with an example search engine (doxysearch) which is based on
++# the open source search engine library Xapian. See the manual for configuration
++# details.
++
++SEARCHENGINE_URL       =
++
++# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
++# search data is written to a file for indexing by an external tool. With the
++# SEARCHDATA_FILE tag the name of this file can be specified.
++
++SEARCHDATA_FILE        = searchdata.xml
++
++# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the
++# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
++# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
++# projects and redirect the results back to the right project.
++
++EXTERNAL_SEARCH_ID     =
++
++# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
++# projects other than the one defined by this configuration file, but that are
++# all added to the same external search index. Each project needs to have a
++# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id
++# of to a relative location where the documentation can be found.
++# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ...
++
++EXTRA_SEARCH_MAPPINGS  =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to the LaTeX output
+ #---------------------------------------------------------------------------
+@@ -982,6 +1328,9 @@ LATEX_OUTPUT           = latex
+ 
+ # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+ # invoked. If left blank `latex' will be used as the default command name.
++# Note that when enabling USE_PDFLATEX this option is only used for
++# generating bitmaps for formulas in the HTML output, but not in the
++# Makefile that is written to the output directory.
+ 
+ LATEX_CMD_NAME         = latex
+ 
+@@ -998,8 +1347,8 @@ MAKEINDEX_CMD_NAME     = makeindex
+ COMPACT_LATEX          = NO
+ 
+ # The PAPER_TYPE tag can be used to set the paper type that is used
+-# by the printer. Possible values are: a4, a4wide, letter, legal and
+-# executive. If left blank a4wide will be used.
++# by the printer. Possible values are: a4, letter, legal and
++# executive. If left blank a4 will be used.
+ 
+ PAPER_TYPE             = letter
+ 
+@@ -1015,6 +1364,20 @@ EXTRA_PACKAGES         =
+ 
+ LATEX_HEADER           =
+ 
++# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for
++# the generated latex document. The footer should contain everything after
++# the last chapter. If it is left blank doxygen will generate a
++# standard footer. Notice: only use this tag if you know what you are doing!
++
++LATEX_FOOTER           =
++
++# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images
++# or other source files which should be copied to the LaTeX output directory.
++# Note that the files will be copied as-is; there are no commands or markers
++# available.
++
++LATEX_EXTRA_FILES      =
++
+ # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+ # is prepared for conversion to pdf (using ps2pdf). The pdf file will
+ # contain links (just like the HTML output) instead of page references
+@@ -1041,6 +1404,19 @@ LATEX_BATCHMODE        = NO
+ 
+ LATEX_HIDE_INDICES     = NO
+ 
++# If LATEX_SOURCE_CODE is set to YES then doxygen will include
++# source code with syntax highlighting in the LaTeX output.
++# Note that which sources are shown also depends on other settings
++# such as SOURCE_BROWSER.
++
++LATEX_SOURCE_CODE      = NO
++
++# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
++# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See
++# http://en.wikipedia.org/wiki/BibTeX for more info.
++
++LATEX_BIB_STYLE        = plain
++
+ #---------------------------------------------------------------------------
+ # configuration options related to the RTF output
+ #---------------------------------------------------------------------------
+@@ -1072,7 +1448,7 @@ COMPACT_RTF            = NO
+ 
+ RTF_HYPERLINKS         = NO
+ 
+-# Load stylesheet definitions from file. Syntax is similar to doxygen's
++# Load style sheet definitions from file. Syntax is similar to doxygen's
+ # config file, i.e. a series of assignments. You only have to provide
+ # replacements, missing definitions are set to their default value.
+ 
+@@ -1127,18 +1503,6 @@ GENERATE_XML           = @enable_xml_docs@
+ 
+ XML_OUTPUT             = xml
+ 
+-# The XML_SCHEMA tag can be used to specify an XML schema,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_SCHEMA             =
+-
+-# The XML_DTD tag can be used to specify an XML DTD,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_DTD                =
+-
+ # If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+ # dump the program listings (including syntax highlighting
+ # and cross-referencing information) to the XML output. Note that
+@@ -1146,6 +1510,21 @@ XML_DTD                =
+ 
+ XML_PROGRAMLISTING     = NO
+ 
++#---------------------------------------------------------------------------
++# configuration options related to the DOCBOOK output
++#---------------------------------------------------------------------------
++
++# If the GENERATE_DOCBOOK tag is set to YES Doxygen will generate DOCBOOK files
++# that can be used to generate PDF.
++
++GENERATE_DOCBOOK       = NO
++
++# The DOCBOOK_OUTPUT tag is used to specify where the DOCBOOK pages will be put.
++# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
++# front of it. If left blank docbook will be used as the default path.
++
++DOCBOOK_OUTPUT         = docbook
++
+ #---------------------------------------------------------------------------
+ # configuration options for the AutoGen Definitions output
+ #---------------------------------------------------------------------------
+@@ -1177,8 +1556,10 @@ GENERATE_PERLMOD       = NO
+ PERLMOD_LATEX          = NO
+ 
+ # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+-# nicely formatted so it can be parsed by a human reader.  This is useful
+-# if you want to understand what is going on.  On the other hand, if this
++# nicely formatted so it can be parsed by a human reader.
++# This is useful
++# if you want to understand what is going on.
++# On the other hand, if this
+ # tag is set to NO the size of the Perl module output will be much smaller
+ # and Perl will parse it just the same.
+ 
+@@ -1215,7 +1596,7 @@ MACRO_EXPANSION        = NO
+ EXPAND_ONLY_PREDEF     = NO
+ 
+ # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+-# in the INCLUDE_PATH (see below) will be search if a #include is found.
++# pointed to by INCLUDE_PATH will be searched when a #include is found.
+ 
+ SEARCH_INCLUDES        = YES
+ 
+@@ -1245,15 +1626,15 @@ PREDEFINED             =
+ # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+ # this tag can be used to specify a list of macro names that should be expanded.
+ # The macro definition that is found in the sources will be used.
+-# Use the PREDEFINED tag if you want to use a different macro definition.
++# Use the PREDEFINED tag if you want to use a different macro definition that
++# overrules the definition found in the source code.
+ 
+ EXPAND_AS_DEFINED      =
+ 
+ # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+-# doxygen's preprocessor will remove all function-like macros that are alone
+-# on a line, have an all uppercase name, and do not end with a semicolon. Such
+-# function macros are typically used for boiler-plate code, and will confuse
+-# the parser if not removed.
++# doxygen's preprocessor will remove all references to function-like macros
++# that are alone on a line, have an all uppercase name, and do not end with a
++# semicolon, because these will confuse the parser if not removed.
+ 
+ SKIP_FUNCTION_MACROS   = YES
+ 
+@@ -1261,20 +1642,18 @@ SKIP_FUNCTION_MACROS   = YES
+ # Configuration::additions related to external references
+ #---------------------------------------------------------------------------
+ 
+-# The TAGFILES option can be used to specify one or more tagfiles.
+-# Optionally an initial location of the external documentation
+-# can be added for each tagfile. The format of a tag file without
+-# this location is as follows:
+-#   TAGFILES = file1 file2 ...
++# The TAGFILES option can be used to specify one or more tagfiles. For each
++# tag file the location of the external documentation should be added. The
++# format of a tag file without this location is as follows:
++#
++# TAGFILES = file1 file2 ...
+ # Adding location for the tag files is done as follows:
+-#   TAGFILES = file1=loc1 "file2 = loc2" ...
+-# where "loc1" and "loc2" can be relative or absolute paths or
+-# URLs. If a location is present for each tag, the installdox tool
+-# does not have to be run to correct the links.
+-# Note that each tag file must have a unique name
+-# (where the name does NOT include the path)
+-# If a tag file is not located in the directory in which doxygen
+-# is run, you must also specify the path to the tagfile here.
++#
++# TAGFILES = file1=loc1 "file2 = loc2" ...
++# where "loc1" and "loc2" can be relative or absolute paths
++# or URLs. Note that each tag file must have a unique name (where the name does
++# NOT include the path). If a tag file is not located in the directory in which
++# doxygen is run, you must also specify the path to the tagfile here.
+ 
+ TAGFILES               =
+ 
+@@ -1295,6 +1674,12 @@ ALLEXTERNALS           = NO
+ 
+ EXTERNAL_GROUPS        = YES
+ 
++# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed
++# in the related pages index. If set to NO, only the current project's
++# pages will be listed.
++
++EXTERNAL_PAGES         = YES
++
+ # The PERL_PATH should be the absolute path and name of the perl script
+ # interpreter (i.e. the result of `which perl').
+ 
+@@ -1307,9 +1692,8 @@ PERL_PATH              = /usr/bin/perl
+ # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+ # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+ # or super classes. Setting the tag to NO turns the diagrams off. Note that
+-# this option is superseded by the HAVE_DOT option below. This is only a
+-# fallback. It is recommended to install and use dot, since it yields more
+-# powerful graphs.
++# this option also works with HAVE_DOT disabled, but it is recommended to
++# install and use dot, since it yields more powerful graphs.
+ 
+ CLASS_DIAGRAMS         = YES
+ 
+@@ -1335,33 +1719,38 @@ HIDE_UNDOC_RELATIONS   = YES
+ 
+ HAVE_DOT               = @HAVE_DOT@
+ 
+-# By default doxygen will write a font called FreeSans.ttf to the output
+-# directory and reference it in all dot files that doxygen generates. This
+-# font does not include all possible unicode characters however, so when you need
+-# these (or just want a differently looking font) you can specify the font name
+-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+-# which can be done by putting it in a standard location or by setting the
+-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+-# containing the font.
++# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
++# allowed to run in parallel. When set to 0 (the default) doxygen will
++# base this on the number of processors available in the system. You can set it
++# explicitly to a value larger than 0 to get control over the balance
++# between CPU load and processing speed.
++
++DOT_NUM_THREADS        = 0
++
++# By default doxygen will use the Helvetica font for all dot files that
++# doxygen generates. When you want a differently looking font you can specify
++# the font name using DOT_FONTNAME. You need to make sure dot is able to find
++# the font, which can be done by putting it in a standard location or by setting
++# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
++# directory containing the font.
+ 
+-DOT_FONTNAME           = FreeSans
++DOT_FONTNAME           = Helvetica
+ 
+ # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+ # The default size is 10pt.
+ 
+ DOT_FONTSIZE           = 10
+ 
+-# By default doxygen will tell dot to use the output directory to look for the
+-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+-# different font using DOT_FONTNAME you can set the path where dot
+-# can find it using this tag.
++# By default doxygen will tell dot to use the Helvetica font.
++# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
++# set the path where dot can find it.
+ 
+ DOT_FONTPATH           =
+ 
+ # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+ # will generate a graph for each documented class showing the direct and
+ # indirect inheritance relations. Setting this tag to YES will force the
+-# the CLASS_DIAGRAMS tag to NO.
++# CLASS_DIAGRAMS tag to NO.
+ 
+ CLASS_GRAPH            = YES
+ 
+@@ -1383,6 +1772,15 @@ GROUP_GRAPHS           = YES
+ 
+ UML_LOOK               = NO
+ 
++# If the UML_LOOK tag is enabled, the fields and methods are shown inside
++# the class node. If there are many fields or methods and many nodes the
++# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
++# threshold limits the number of items for each type to make the size more
++# manageable. Set this to 0 for no limit. Note that the threshold may be
++# exceeded by 50% before the limit is enforced.
++
++UML_LIMIT_NUM_FIELDS   = 10
++
+ # If set to YES, the inheritance and collaboration graphs will show the
+ # relations between templates and their instances.
+ 
+@@ -1419,11 +1817,11 @@ CALL_GRAPH             = NO
+ CALLER_GRAPH           = NO
+ 
+ # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+-# will graphical hierarchy of all classes instead of a textual one.
++# will generate a graphical hierarchy of all classes instead of a textual one.
+ 
+ GRAPHICAL_HIERARCHY    = YES
+ 
+-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
++# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES
+ # then doxygen will show the dependencies a directory has on other directories
+ # in a graphical way. The dependency relations are determined by the #include
+ # relations between the files in the directories.
+@@ -1431,11 +1829,22 @@ GRAPHICAL_HIERARCHY    = YES
+ DIRECTORY_GRAPH        = YES
+ 
+ # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+-# generated by dot. Possible values are png, jpg, or gif
+-# If left blank png will be used.
++# generated by dot. Possible values are svg, png, jpg, or gif.
++# If left blank png will be used. If you choose svg you need to set
++# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
++# visible in IE 9+ (other browsers do not have this requirement).
+ 
+ DOT_IMAGE_FORMAT       = png
+ 
++# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
++# enable generation of interactive SVG images that allow zooming and panning.
++# Note that this requires a modern browser other than Internet Explorer.
++# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you
++# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files
++# visible. Older versions of IE do not have SVG support.
++
++INTERACTIVE_SVG        = NO
++
+ # The tag DOT_PATH can be used to specify the path where the dot tool can be
+ # found. If left blank, it is assumed the dot tool can be found in the path.
+ 
+@@ -1447,6 +1856,12 @@ DOT_PATH               =
+ 
+ DOTFILE_DIRS           =
+ 
++# The MSCFILE_DIRS tag can be used to specify one or more directories that
++# contain msc files that are included in the documentation (see the
++# \mscfile command).
++
++MSCFILE_DIRS           =
++
+ # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+ # nodes that will be shown in the graph. If the number of nodes in a graph
+ # becomes larger than this value, doxygen will truncate the graph, which is
+@@ -1493,12 +1908,3 @@ GENERATE_LEGEND        = YES
+ # the various graphs.
+ 
+ DOT_CLEANUP            = YES
+-
+-#---------------------------------------------------------------------------
+-# Configuration::additions related to the search engine
+-#---------------------------------------------------------------------------
+-
+-# The SEARCHENGINE tag specifies whether or not a search engine should be
+-# used. If set to NO the values of all tags below this one will be ignored.
+-
+-SEARCHENGINE           = NO
+diff --git a/docs/doxygen/Doxyfile.swig_doc.in b/docs/doxygen/Doxyfile.swig_doc.in
+index 50b8aa8..33bc2af 100644
+--- docs/doxygen/Doxyfile.swig_doc.in
++++ docs/doxygen/Doxyfile.swig_doc.in
+@@ -1,14 +1,16 @@
+-# Doxyfile 1.6.1
++# Doxyfile 1.8.4
+ 
+ # This file describes the settings to be used by the documentation system
+-# doxygen (www.doxygen.org) for a project
++# doxygen (www.doxygen.org) for a project.
+ #
+-# All text after a hash (#) is considered a comment and will be ignored
++# All text after a double hash (##) is considered a comment and is placed
++# in front of the TAG it is preceding .
++# All text after a hash (#) is considered a comment and will be ignored.
+ # The format is:
+ #       TAG = value [value, ...]
+ # For lists items can also be appended using:
+ #       TAG += value [value, ...]
+-# Values that contain spaces should be placed between quotes (" ")
++# Values that contain spaces should be placed between quotes (" ").
+ 
+ #---------------------------------------------------------------------------
+ # Project related configuration options
+@@ -22,8 +24,9 @@
+ 
+ DOXYFILE_ENCODING      = UTF-8
+ 
+-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+-# by quotes) that should identify the project.
++# The PROJECT_NAME tag is a single word (or sequence of words) that should
++# identify the project. Note that if you do not use Doxywizard you need
++# to put quotes around the project name if it contains spaces.
+ 
+ PROJECT_NAME           = @CPACK_PACKAGE_NAME@
+ 
+@@ -33,6 +36,19 @@ PROJECT_NAME           = @CPACK_PACKAGE_NAME@
+ 
+ PROJECT_NUMBER         = @CPACK_PACKAGE_VERSION@
+ 
++# Using the PROJECT_BRIEF tag one can provide an optional one line description
++# for a project that appears at the top of each page and should give viewer
++# a quick idea about the purpose of the project. Keep the description short.
++
++PROJECT_BRIEF          =
++
++# With the PROJECT_LOGO tag one can specify an logo or icon that is
++# included in the documentation. The maximum height of the logo should not
++# exceed 55 pixels and the maximum width should not exceed 200 pixels.
++# Doxygen will copy the logo to the output directory.
++
++PROJECT_LOGO           =
++
+ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+ # base path where the generated documentation will be put.
+ # If a relative path is entered, it will be relative to the location
+@@ -56,9 +72,9 @@ CREATE_SUBDIRS         = NO
+ # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+ # Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+ # Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+-# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+-# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+-# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
++# messages), Korean, Korean-en, Latvian, Lithuanian, Norwegian, Macedonian,
++# Persian, Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic,
++# Slovak, Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+ 
+ OUTPUT_LANGUAGE        = English
+ 
+@@ -105,14 +121,16 @@ INLINE_INHERITED_MEMB  = NO
+ # path before files name in the file list and in the header files. If set
+ # to NO the shortest path that makes the file name unique will be used.
+ 
+-FULL_PATH_NAMES        = YES
++FULL_PATH_NAMES        = NO
+ 
+ # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+ # can be used to strip a user-defined part of the path. Stripping is
+ # only done if one of the specified strings matches the left-hand part of
+ # the path. The tag can be used to show relative paths in the file list.
+ # If left blank the directory from which doxygen is run is used as the
+-# path to strip.
++# path to strip. Note that you specify absolute paths here, but also
++# relative paths, which will be relative from the directory where doxygen is
++# started.
+ 
+ STRIP_FROM_PATH        =
+ 
+@@ -126,7 +144,7 @@ STRIP_FROM_PATH        =
+ STRIP_FROM_INC_PATH    =
+ 
+ # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+-# (but less readable) file names. This can be useful is your file systems
++# (but less readable) file names. This can be useful if your file system
+ # doesn't support long names like on DOS, Mac, or CD-ROM.
+ 
+ SHORT_NAMES            = NO
+@@ -181,6 +199,13 @@ TAB_SIZE               = 8
+ 
+ ALIASES                =
+ 
++# This tag can be used to specify a number of word-keyword mappings (TCL only).
++# A mapping has the form "name=value". For example adding
++# "class=itcl::class" will allow you to use the command class in the
++# itcl::class meaning.
++
++TCL_SUBST              =
++
+ # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+ # sources only. Doxygen will then generate output that is more tailored for C.
+ # For instance, some of the names that are used will be different. The list
+@@ -207,22 +232,40 @@ OPTIMIZE_FOR_FORTRAN   = NO
+ 
+ OPTIMIZE_OUTPUT_VHDL   = NO
+ 
+-# Doxygen selects the parser to use depending on the extension of the files it parses.
+-# With this tag you can assign which parser to use for a given extension.
+-# Doxygen has a built-in mapping, but you can override or extend it using this tag.
+-# The format is ext=language, where ext is a file extension, and language is one of
+-# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
+-# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
+-# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
+-# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
++# Doxygen selects the parser to use depending on the extension of the files it
++# parses. With this tag you can assign which parser to use for a given
++# extension. Doxygen has a built-in mapping, but you can override or extend it
++# using this tag. The format is ext=language, where ext is a file extension,
++# and language is one of the parsers supported by doxygen: IDL, Java,
++# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
++# C++. For instance to make doxygen treat .inc files as Fortran files (default
++# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
++# that for custom extensions you also need to set FILE_PATTERNS otherwise the
++# files are not read by doxygen.
+ 
+ EXTENSION_MAPPING      =
+ 
++# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all
++# comments according to the Markdown format, which allows for more readable
++# documentation. See http://daringfireball.net/projects/markdown/ for details.
++# The output of markdown processing is further processed by doxygen, so you
++# can mix doxygen, HTML, and XML commands with Markdown formatting.
++# Disable only in case of backward compatibilities issues.
++
++MARKDOWN_SUPPORT       = YES
++
++# When enabled doxygen tries to link words that correspond to documented
++# classes, or namespaces to their corresponding documentation. Such a link can
++# be prevented in individual cases by by putting a % sign in front of the word
++# or globally by setting AUTOLINK_SUPPORT to NO.
++
++AUTOLINK_SUPPORT       = YES
++
+ # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+ # to include (a tag file for) the STL sources as input, then you should
+ # set this tag to YES in order to let doxygen match functions declarations and
+ # definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+-# func(std::string) {}). This also make the inheritance and collaboration
++# func(std::string) {}). This also makes the inheritance and collaboration
+ # diagrams that involve STL classes more complete and accurate.
+ 
+ BUILTIN_STL_SUPPORT    = YES
+@@ -238,10 +281,10 @@ CPP_CLI_SUPPORT        = NO
+ 
+ SIP_SUPPORT            = NO
+ 
+-# For Microsoft's IDL there are propget and propput attributes to indicate getter
+-# and setter methods for a property. Setting this option to YES (the default)
+-# will make doxygen to replace the get and set methods by a property in the
+-# documentation. This will only work if the methods are indeed getting or
++# For Microsoft's IDL there are propget and propput attributes to indicate
++# getter and setter methods for a property. Setting this option to YES (the
++# default) will make doxygen replace the get and set methods by a property in
++# the documentation. This will only work if the methods are indeed getting or
+ # setting a simple type. If this is not the case, or you want to show the
+ # methods anyway, you should set this option to NO.
+ 
+@@ -262,6 +305,22 @@ DISTRIBUTE_GROUP_DOC   = NO
+ 
+ SUBGROUPING            = YES
+ 
++# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
++# unions are shown inside the group in which they are included (e.g. using
++# @ingroup) instead of on a separate page (for HTML and Man pages) or
++# section (for LaTeX and RTF).
++
++INLINE_GROUPED_CLASSES = NO
++
++# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and
++# unions with only public data fields or simple typedef fields will be shown
++# inline in the documentation of the scope in which they are defined (i.e. file,
++# namespace, or group documentation), provided this scope is documented. If set
++# to NO (the default), structs, classes, and unions are shown on a separate
++# page (for HTML and Man pages) or section (for LaTeX and RTF).
++
++INLINE_SIMPLE_STRUCTS  = NO
++
+ # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+ # is documented as struct, union, or enum with the name of the typedef. So
+ # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+@@ -272,21 +331,16 @@ SUBGROUPING            = YES
+ 
+ TYPEDEF_HIDES_STRUCT   = NO
+ 
+-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+-# determine which symbols to keep in memory and which to flush to disk.
+-# When the cache is full, less often used symbols will be written to disk.
+-# For small to medium size projects (<1000 input files) the default value is
+-# probably good enough. For larger projects a too small cache size can cause
+-# doxygen to be busy swapping symbols to and from disk most of the time
+-# causing a significant performance penality.
+-# If the system has enough physical memory increasing the cache will improve the
+-# performance by keeping more symbols in memory. Note that the value works on
+-# a logarithmic scale so increasing the size by one will rougly double the
+-# memory usage. The cache size is given by this formula:
+-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+-# corresponding to a cache size of 2^16 = 65536 symbols
+-
+-SYMBOL_CACHE_SIZE      = 0
++# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
++# cache is used to resolve symbols given their name and scope. Since this can
++# be an expensive process and often the same symbol appear multiple times in
++# the code, doxygen keeps a cache of pre-resolved symbols. If the cache is too
++# small doxygen will become slower. If the cache is too large, memory is wasted.
++# The cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid
++# range is 0..9, the default is 0, corresponding to a cache size of 2^16 = 65536
++# symbols.
++
++LOOKUP_CACHE_SIZE      = 0
+ 
+ #---------------------------------------------------------------------------
+ # Build related configuration options
+@@ -295,7 +349,7 @@ SYMBOL_CACHE_SIZE      = 0
+ # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+ # documentation are documented, even if no documentation was available.
+ # Private class members and static file members will be hidden unless
+-# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
++# the EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES
+ 
+ EXTRACT_ALL            = YES
+ 
+@@ -304,6 +358,11 @@ EXTRACT_ALL            = YES
+ 
+ EXTRACT_PRIVATE        = NO
+ 
++# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
++# scope will be included in the documentation.
++
++EXTRACT_PACKAGE        = NO
++
+ # If the EXTRACT_STATIC tag is set to YES all static members of a file
+ # will be included in the documentation.
+ 
+@@ -326,7 +385,7 @@ EXTRACT_LOCAL_METHODS  = NO
+ # extracted and appear in the documentation as a namespace called
+ # 'anonymous_namespace{file}', where file will be replaced with the base
+ # name of the file that contains the anonymous namespace. By default
+-# anonymous namespace are hidden.
++# anonymous namespaces are hidden.
+ 
+ EXTRACT_ANON_NSPACES   = NO
+ 
+@@ -386,6 +445,12 @@ HIDE_SCOPE_NAMES       = NO
+ 
+ SHOW_INCLUDE_FILES     = YES
+ 
++# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
++# will list include files with double quotes in the documentation
++# rather than with sharp brackets.
++
++FORCE_LOCAL_INCLUDES   = NO
++
+ # If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+ # is inserted in the documentation for inline members.
+ 
+@@ -405,7 +470,13 @@ SORT_MEMBER_DOCS       = YES
+ 
+ SORT_BRIEF_DOCS        = NO
+ 
+-# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
++# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
++# will sort the (brief and detailed) documentation of class members so that
++# constructors and destructors are listed first. If set to NO (the default)
++# the constructors will appear in the respective orders defined by
++# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
++# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
++# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+ 
+ SORT_MEMBERS_CTORS_1ST = NO
+ 
+@@ -425,6 +496,15 @@ SORT_GROUP_NAMES       = NO
+ 
+ SORT_BY_SCOPE_NAME     = NO
+ 
++# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
++# do proper type resolution of all parameters of a function it will reject a
++# match between the prototype and the implementation of a member function even
++# if there is only one candidate or it is obvious which candidate to choose
++# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
++# will still accept a match between prototype and implementation in such cases.
++
++STRICT_PROTO_MATCHING  = NO
++
+ # The GENERATE_TODOLIST tag can be used to enable (YES) or
+ # disable (NO) the todo list. This list is created by putting \todo
+ # commands in the documentation.
+@@ -450,15 +530,16 @@ GENERATE_BUGLIST       = YES
+ GENERATE_DEPRECATEDLIST= YES
+ 
+ # The ENABLED_SECTIONS tag can be used to enable conditional
+-# documentation sections, marked by \if sectionname ... \endif.
++# documentation sections, marked by \if section-label ... \endif
++# and \cond section-label ... \endcond blocks.
+ 
+ ENABLED_SECTIONS       =
+ 
+ # The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+-# the initial value of a variable or define consists of for it to appear in
++# the initial value of a variable or macro consists of for it to appear in
+ # the documentation. If the initializer consists of more lines than specified
+ # here it will be hidden. Use a value of 0 to hide initializers completely.
+-# The appearance of the initializer of individual variables and defines in the
++# The appearance of the initializer of individual variables and macros in the
+ # documentation can be controlled using \showinitializer or \hideinitializer
+ # command in the documentation regardless of this setting.
+ 
+@@ -470,12 +551,6 @@ MAX_INITIALIZER_LINES  = 30
+ 
+ SHOW_USED_FILES        = YES
+ 
+-# If the sources in your project are distributed over multiple directories
+-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+-# in the documentation. The default is NO.
+-
+-SHOW_DIRECTORIES       = NO
+-
+ # Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+ # This will remove the Files entry from the Quick Index and from the
+ # Folder Tree View (if specified). The default is YES.
+@@ -499,15 +574,26 @@ SHOW_NAMESPACES        = YES
+ 
+ FILE_VERSION_FILTER    =
+ 
+-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+-# doxygen. The layout file controls the global structure of the generated output files
+-# in an output format independent way. The create the layout file that represents
+-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+-# of the layout file.
++# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
++# by doxygen. The layout file controls the global structure of the generated
++# output files in an output format independent way. To create the layout file
++# that represents doxygen's defaults, run doxygen with the -l option.
++# You can optionally specify a file name after the option, if omitted
++# DoxygenLayout.xml will be used as the name of the layout file.
+ 
+ LAYOUT_FILE            =
+ 
++# The CITE_BIB_FILES tag can be used to specify one or more bib files
++# containing the references data. This must be a list of .bib files. The
++# .bib extension is automatically appended if omitted. Using this command
++# requires the bibtex tool to be installed. See also
++# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style
++# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this
++# feature you need bibtex and perl available in the search path. Do not use
++# file names with spaces, bibtex cannot handle them.
++
++CITE_BIB_FILES         =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to warning and progress messages
+ #---------------------------------------------------------------------------
+@@ -536,7 +622,7 @@ WARN_IF_UNDOCUMENTED   = YES
+ 
+ WARN_IF_DOC_ERROR      = YES
+ 
+-# This WARN_NO_PARAMDOC option can be abled to get warnings for
++# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+ # functions that are documented, but have no documentation for their parameters
+ # or return value. If set to NO (the default) doxygen will only warn about
+ # wrong or incomplete parameter documentation, but not about the absence of
+@@ -582,8 +668,9 @@ INPUT_ENCODING         = UTF-8
+ # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+ # and *.h) to filter out the source-files in the directories. If left
+ # blank the following patterns are tested:
+-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+-# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
++# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
++# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
++# *.f90 *.f *.for *.vhd *.vhdl
+ 
+ FILE_PATTERNS          = *.h
+ 
+@@ -593,14 +680,16 @@ FILE_PATTERNS          = *.h
+ 
+ RECURSIVE              = YES
+ 
+-# The EXCLUDE tag can be used to specify files and/or directories that should
++# The EXCLUDE tag can be used to specify files and/or directories that should be
+ # excluded from the INPUT source files. This way you can easily exclude a
+ # subdirectory from a directory tree whose root is specified with the INPUT tag.
++# Note that relative paths are relative to the directory from which doxygen is
++# run.
+ 
+ EXCLUDE                =
+ 
+-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+-# directories that are symbolic links (a Unix filesystem feature) are excluded
++# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
++# directories that are symbolic links (a Unix file system feature) are excluded
+ # from the input.
+ 
+ EXCLUDE_SYMLINKS       = NO
+@@ -653,8 +742,10 @@ IMAGE_PATH             =
+ # is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+ # input file. Doxygen will then use the output that the filter program writes
+ # to standard output.
+-# If FILTER_PATTERNS is specified, this tag will be
+-# ignored.
++# If FILTER_PATTERNS is specified, this tag will be ignored.
++# Note that the filter must not add or remove lines; it is applied before the
++# code is scanned, but not when the output code is generated. If lines are added
++# or removed, the anchors will not be placed correctly.
+ 
+ INPUT_FILTER           =
+ 
+@@ -664,8 +755,8 @@ INPUT_FILTER           =
+ # filter if there is a match.
+ # The filters are a list of the form:
+ # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+-# is applied to all files.
++# info on how filters are used. If FILTER_PATTERNS is empty or if
++# non of the patterns match the file name, INPUT_FILTER is applied.
+ 
+ FILTER_PATTERNS        =
+ 
+@@ -675,6 +766,21 @@ FILTER_PATTERNS        =
+ 
+ FILTER_SOURCE_FILES    = NO
+ 
++# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
++# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
++# and it is also possible to disable source filtering for a specific pattern
++# using *.ext= (so without naming a filter). This option only has effect when
++# FILTER_SOURCE_FILES is enabled.
++
++FILTER_SOURCE_PATTERNS =
++
++# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that
++# is part of the input, its contents will be placed on the main page
++# (index.html). This can be useful if you have a project on for instance GitHub
++# and want reuse the introduction page also for the doxygen output.
++
++USE_MDFILE_AS_MAINPAGE =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to source browsing
+ #---------------------------------------------------------------------------
+@@ -693,7 +799,7 @@ INLINE_SOURCES         = NO
+ 
+ # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+ # doxygen to hide any special comment blocks from generated source code
+-# fragments. Normal C and C++ comments will always remain visible.
++# fragments. Normal C, C++ and Fortran comments will always remain visible.
+ 
+ STRIP_CODE_COMMENTS    = YES
+ 
+@@ -777,7 +883,14 @@ HTML_FILE_EXTENSION    = .html
+ 
+ # The HTML_HEADER tag can be used to specify a personal HTML header for
+ # each generated HTML page. If it is left blank doxygen will generate a
+-# standard header.
++# standard header. Note that when using a custom header you are responsible
++#  for the proper inclusion of any scripts and style sheets that doxygen
++# needs, which is dependent on the configuration options used.
++# It is advised to generate a default header using "doxygen -w html
++# header.html footer.html stylesheet.css YourConfigFile" and then modify
++# that header. Note that the header is subject to change so you typically
++# have to redo this when upgrading to a newer version of doxygen or when
++# changing the value of configuration settings such as GENERATE_TREEVIEW!
+ 
+ HTML_HEADER            =
+ 
+@@ -789,27 +902,80 @@ HTML_FOOTER            =
+ 
+ # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+ # style sheet that is used by each HTML page. It can be used to
+-# fine-tune the look of the HTML output. If the tag is left blank doxygen
+-# will generate a default style sheet. Note that doxygen will try to copy
+-# the style sheet file to the HTML output directory, so don't put your own
+-# stylesheet in the HTML output directory as well, or it will be erased!
++# fine-tune the look of the HTML output. If left blank doxygen will
++# generate a default style sheet. Note that it is recommended to use
++# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this
++# tag will in the future become obsolete.
+ 
+ HTML_STYLESHEET        =
+ 
+-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+-# files or namespaces will be aligned in HTML using tables. If set to
+-# NO a bullet list will be used.
++# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
++# user-defined cascading style sheet that is included after the standard
++# style sheets created by doxygen. Using this option one can overrule
++# certain style aspects. This is preferred over using HTML_STYLESHEET
++# since it does not replace the standard style sheet and is therefore more
++# robust against future updates. Doxygen will copy the style sheet file to
++# the output directory.
++
++HTML_EXTRA_STYLESHEET  =
++
++# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
++# other source files which should be copied to the HTML output directory. Note
++# that these files will be copied to the base HTML output directory. Use the
++# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
++# files. In the HTML_STYLESHEET file, use the file name only. Also note that
++# the files will be copied as-is; there are no commands or markers available.
++
++HTML_EXTRA_FILES       =
++
++# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
++# Doxygen will adjust the colors in the style sheet and background images
++# according to this color. Hue is specified as an angle on a colorwheel,
++# see http://en.wikipedia.org/wiki/Hue for more information.
++# For instance the value 0 represents red, 60 is yellow, 120 is green,
++# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
++# The allowed range is 0 to 359.
++
++HTML_COLORSTYLE_HUE    = 220
++
++# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
++# the colors in the HTML output. For a value of 0 the output will use
++# grayscales only. A value of 255 will produce the most vivid colors.
++
++HTML_COLORSTYLE_SAT    = 100
++
++# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
++# the luminance component of the colors in the HTML output. Values below
++# 100 gradually make the output lighter, whereas values above 100 make
++# the output darker. The value divided by 100 is the actual gamma applied,
++# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
++# and 100 does not change the gamma.
++
++HTML_COLORSTYLE_GAMMA  = 80
++
++# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
++# page will contain the date and time when the page was generated. Setting
++# this to NO can help when comparing the output of multiple runs.
+ 
+-HTML_ALIGN_MEMBERS     = YES
++HTML_TIMESTAMP         = NO
+ 
+ # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+ # documentation will contain sections that can be hidden and shown after the
+-# page has loaded. For this to work a browser that supports
+-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+-# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
++# page has loaded.
+ 
+ HTML_DYNAMIC_SECTIONS  = NO
+ 
++# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of
++# entries shown in the various tree structured indices initially; the user
++# can expand and collapse entries dynamically later on. Doxygen will expand
++# the tree to such a level that at most the specified number of entries are
++# visible (unless a fully collapsed tree already exceeds this amount).
++# So setting the number of entries 1 will produce a full collapsed tree by
++# default. 0 is a special value representing an infinite number of entries
++# and will result in a full expanded tree by default.
++
++HTML_INDEX_NUM_ENTRIES = 100
++
+ # If the GENERATE_DOCSET tag is set to YES, additional index files
+ # will be generated that can be used as input for Apple's Xcode 3
+ # integrated development environment, introduced with OSX 10.5 (Leopard).
+@@ -818,7 +984,8 @@ HTML_DYNAMIC_SECTIONS  = NO
+ # directory and running "make install" will install the docset in
+ # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+ # it at startup.
+-# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
++# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
++# for more information.
+ 
+ GENERATE_DOCSET        = NO
+ 
+@@ -836,6 +1003,16 @@ DOCSET_FEEDNAME        = "Doxygen generated docs"
+ 
+ DOCSET_BUNDLE_ID       = org.doxygen.Project
+ 
++# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely
++# identify the documentation publisher. This should be a reverse domain-name
++# style string, e.g. com.mycompany.MyDocSet.documentation.
++
++DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
++
++# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
++
++DOCSET_PUBLISHER_NAME  = Publisher
++
+ # If the GENERATE_HTMLHELP tag is set to YES, additional index files
+ # will be generated that can be used as input for tools like the
+ # Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+@@ -880,10 +1057,10 @@ BINARY_TOC             = NO
+ 
+ TOC_EXPAND             = NO
+ 
+-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+-# are set, an additional index file will be generated that can be used as input for
+-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+-# HTML documentation.
++# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
++# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
++# that can be used as input for Qt's qhelpgenerator to generate a
++# Qt Compressed Help (.qch) of the generated HTML documentation.
+ 
+ GENERATE_QHP           = NO
+ 
+@@ -905,20 +1082,24 @@ QHP_NAMESPACE          =
+ 
+ QHP_VIRTUAL_FOLDER     = doc
+ 
+-# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
+-# For more information please see
++# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
++# add. For more information please see
+ # http://doc.trolltech.com/qthelpproject.html#custom-filters
+ 
+ QHP_CUST_FILTER_NAME   =
+ 
+-# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
+-# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
++# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
++# custom filter to add. For more information please see
++# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
++# Qt Help Project / Custom Filters</a>.
+ 
+ QHP_CUST_FILTER_ATTRS  =
+ 
+-# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
++# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
++# project's
+ # filter section matches.
+-# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
++# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
++# Qt Help Project / Filter Attributes</a>.
+ 
+ QHP_SECT_FILTER_ATTRS  =
+ 
+@@ -929,16 +1110,30 @@ QHP_SECT_FILTER_ATTRS  =
+ 
+ QHG_LOCATION           =
+ 
+-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+-# top of each HTML page. The value NO (the default) enables the index and
+-# the value YES disables it.
++# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
++#  will be generated, which together with the HTML files, form an Eclipse help
++# plugin. To install this plugin and make it available under the help contents
++# menu in Eclipse, the contents of the directory containing the HTML and XML
++# files needs to be copied into the plugins directory of eclipse. The name of
++# the directory within the plugins directory should be the same as
++# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
++# the help appears.
+ 
+-DISABLE_INDEX          = NO
++GENERATE_ECLIPSEHELP   = NO
+ 
+-# This tag can be used to set the number of enum values (range [1..20])
+-# that doxygen will group on one line in the generated HTML documentation.
++# A unique identifier for the eclipse help plugin. When installing the plugin
++# the directory name containing the HTML and XML files should also have
++# this name.
+ 
+-ENUM_VALUES_PER_LINE   = 4
++ECLIPSE_DOC_ID         = org.doxygen.Project
++
++# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs)
++# at top of each HTML page. The value NO (the default) enables the index and
++# the value YES disables it. Since the tabs have the same information as the
++# navigation tree you can set this option to NO if you already set
++# GENERATE_TREEVIEW to YES.
++
++DISABLE_INDEX          = NO
+ 
+ # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+ # structure should be generated to display hierarchical information.
+@@ -947,13 +1142,17 @@ ENUM_VALUES_PER_LINE   = 4
+ # is generated for HTML Help). For this to work a browser that supports
+ # JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+ # Windows users are probably better off using the HTML help feature.
++# Since the tree basically has the same information as the tab index you
++# could consider to set DISABLE_INDEX to NO when enabling this option.
+ 
+ GENERATE_TREEVIEW      = NO
+ 
+-# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
+-# and Class Hierarchy pages using a tree view instead of an ordered list.
++# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values
++# (range [0,1..20]) that doxygen will group on one line in the generated HTML
++# documentation. Note that a value of 0 will completely suppress the enum
++# values from appearing in the overview section.
+ 
+-USE_INLINE_TREES       = NO
++ENUM_VALUES_PER_LINE   = 4
+ 
+ # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+ # used to set the initial width (in pixels) of the frame in which the tree
+@@ -961,6 +1160,11 @@ USE_INLINE_TREES       = NO
+ 
+ TREEVIEW_WIDTH         = 250
+ 
++# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
++# links to external symbols imported via tag files in a separate window.
++
++EXT_LINKS_IN_WINDOW    = NO
++
+ # Use this tag to change the font size of Latex formulas included
+ # as images in the HTML documentation. The default is 10. Note that
+ # when you change the font size after a successful doxygen run you need
+@@ -969,13 +1173,112 @@ TREEVIEW_WIDTH         = 250
+ 
+ FORMULA_FONTSIZE       = 10
+ 
+-# When the SEARCHENGINE tag is enable doxygen will generate a search box for the HTML output. The underlying search engine uses javascript
+-# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP) or Qt help (GENERATE_QHP)
+-# there is already a search function so this one should typically
+-# be disabled.
++# Use the FORMULA_TRANPARENT tag to determine whether or not the images
++# generated for formulas are transparent PNGs. Transparent PNGs are
++# not supported properly for IE 6.0, but are supported on all modern browsers.
++# Note that when changing this option you need to delete any form_*.png files
++# in the HTML output before the changes have effect.
++
++FORMULA_TRANSPARENT    = YES
++
++# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
++# (see http://www.mathjax.org) which uses client side Javascript for the
++# rendering instead of using prerendered bitmaps. Use this if you do not
++# have LaTeX installed or if you want to formulas look prettier in the HTML
++# output. When enabled you may also need to install MathJax separately and
++# configure the path to it using the MATHJAX_RELPATH option.
++
++USE_MATHJAX            = NO
++
++# When MathJax is enabled you can set the default output format to be used for
++# the MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
++# SVG. The default value is HTML-CSS, which is slower, but has the best
++# compatibility.
++
++MATHJAX_FORMAT         = HTML-CSS
++
++# When MathJax is enabled you need to specify the location relative to the
++# HTML output directory using the MATHJAX_RELPATH option. The destination
++# directory should contain the MathJax.js script. For instance, if the mathjax
++# directory is located at the same level as the HTML output directory, then
++# MATHJAX_RELPATH should be ../mathjax. The default value points to
++# the MathJax Content Delivery Network so you can quickly see the result without
++# installing MathJax.
++# However, it is strongly recommended to install a local
++# copy of MathJax from http://www.mathjax.org before deployment.
++
++MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
++
++# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
++# names that should be enabled during MathJax rendering.
++
++MATHJAX_EXTENSIONS     =
++
++# The MATHJAX_CODEFILE tag can be used to specify a file with javascript
++# pieces of code that will be used on startup of the MathJax code.
++
++MATHJAX_CODEFILE       =
++
++# When the SEARCHENGINE tag is enabled doxygen will generate a search box
++# for the HTML output. The underlying search engine uses javascript
++# and DHTML and should work on any modern browser. Note that when using
++# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
++# (GENERATE_DOCSET) there is already a search function so this one should
++# typically be disabled. For large projects the javascript based search engine
++# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+ 
+ SEARCHENGINE           = YES
+ 
++# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
++# implemented using a web server instead of a web client using Javascript.
++# There are two flavours of web server based search depending on the
++# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
++# searching and an index file used by the script. When EXTERNAL_SEARCH is
++# enabled the indexing and searching needs to be provided by external tools.
++# See the manual for details.
++
++SERVER_BASED_SEARCH    = NO
++
++# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP
++# script for searching. Instead the search results are written to an XML file
++# which needs to be processed by an external indexer. Doxygen will invoke an
++# external search engine pointed to by the SEARCHENGINE_URL option to obtain
++# the search results. Doxygen ships with an example indexer (doxyindexer) and
++# search engine (doxysearch.cgi) which are based on the open source search
++# engine library Xapian. See the manual for configuration details.
++
++EXTERNAL_SEARCH        = NO
++
++# The SEARCHENGINE_URL should point to a search engine hosted by a web server
++# which will returned the search results when EXTERNAL_SEARCH is enabled.
++# Doxygen ships with an example search engine (doxysearch) which is based on
++# the open source search engine library Xapian. See the manual for configuration
++# details.
++
++SEARCHENGINE_URL       =
++
++# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
++# search data is written to a file for indexing by an external tool. With the
++# SEARCHDATA_FILE tag the name of this file can be specified.
++
++SEARCHDATA_FILE        = searchdata.xml
++
++# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the
++# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
++# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
++# projects and redirect the results back to the right project.
++
++EXTERNAL_SEARCH_ID     =
++
++# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
++# projects other than the one defined by this configuration file, but that are
++# all added to the same external search index. Each project needs to have a
++# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id
++# of to a relative location where the documentation can be found.
++# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ...
++
++EXTRA_SEARCH_MAPPINGS  =
++
+ #---------------------------------------------------------------------------
+ # configuration options related to the LaTeX output
+ #---------------------------------------------------------------------------
+@@ -993,6 +1296,9 @@ LATEX_OUTPUT           = latex
+ 
+ # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+ # invoked. If left blank `latex' will be used as the default command name.
++# Note that when enabling USE_PDFLATEX this option is only used for
++# generating bitmaps for formulas in the HTML output, but not in the
++# Makefile that is written to the output directory.
+ 
+ LATEX_CMD_NAME         = latex
+ 
+@@ -1009,8 +1315,8 @@ MAKEINDEX_CMD_NAME     = makeindex
+ COMPACT_LATEX          = NO
+ 
+ # The PAPER_TYPE tag can be used to set the paper type that is used
+-# by the printer. Possible values are: a4, a4wide, letter, legal and
+-# executive. If left blank a4wide will be used.
++# by the printer. Possible values are: a4, letter, legal and
++# executive. If left blank a4 will be used.
+ 
+ PAPER_TYPE             = a4wide
+ 
+@@ -1026,6 +1332,20 @@ EXTRA_PACKAGES         =
+ 
+ LATEX_HEADER           =
+ 
++# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for
++# the generated latex document. The footer should contain everything after
++# the last chapter. If it is left blank doxygen will generate a
++# standard footer. Notice: only use this tag if you know what you are doing!
++
++LATEX_FOOTER           =
++
++# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images
++# or other source files which should be copied to the LaTeX output directory.
++# Note that the files will be copied as-is; there are no commands or markers
++# available.
++
++LATEX_EXTRA_FILES      =
++
+ # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+ # is prepared for conversion to pdf (using ps2pdf). The pdf file will
+ # contain links (just like the HTML output) instead of page references
+@@ -1052,10 +1372,19 @@ LATEX_BATCHMODE        = NO
+ 
+ LATEX_HIDE_INDICES     = NO
+ 
+-# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER.
++# If LATEX_SOURCE_CODE is set to YES then doxygen will include
++# source code with syntax highlighting in the LaTeX output.
++# Note that which sources are shown also depends on other settings
++# such as SOURCE_BROWSER.
+ 
+ LATEX_SOURCE_CODE      = NO
+ 
++# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
++# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See
++# http://en.wikipedia.org/wiki/BibTeX for more info.
++
++LATEX_BIB_STYLE        = plain
++
+ #---------------------------------------------------------------------------
+ # configuration options related to the RTF output
+ #---------------------------------------------------------------------------
+@@ -1087,7 +1416,7 @@ COMPACT_RTF            = NO
+ 
+ RTF_HYPERLINKS         = NO
+ 
+-# Load stylesheet definitions from file. Syntax is similar to doxygen's
++# Load style sheet definitions from file. Syntax is similar to doxygen's
+ # config file, i.e. a series of assignments. You only have to provide
+ # replacements, missing definitions are set to their default value.
+ 
+@@ -1142,18 +1471,6 @@ GENERATE_XML           = YES
+ 
+ XML_OUTPUT             = xml
+ 
+-# The XML_SCHEMA tag can be used to specify an XML schema,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_SCHEMA             =
+-
+-# The XML_DTD tag can be used to specify an XML DTD,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_DTD                =
+-
+ # If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+ # dump the program listings (including syntax highlighting
+ # and cross-referencing information) to the XML output. Note that
+@@ -1161,6 +1478,21 @@ XML_DTD                =
+ 
+ XML_PROGRAMLISTING     = YES
+ 
++#---------------------------------------------------------------------------
++# configuration options related to the DOCBOOK output
++#---------------------------------------------------------------------------
++
++# If the GENERATE_DOCBOOK tag is set to YES Doxygen will generate DOCBOOK files
++# that can be used to generate PDF.
++
++GENERATE_DOCBOOK       = NO
++
++# The DOCBOOK_OUTPUT tag is used to specify where the DOCBOOK pages will be put.
++# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
++# front of it. If left blank docbook will be used as the default path.
++
++DOCBOOK_OUTPUT         = docbook
++
+ #---------------------------------------------------------------------------
+ # configuration options for the AutoGen Definitions output
+ #---------------------------------------------------------------------------
+@@ -1232,7 +1564,7 @@ MACRO_EXPANSION        = YES
+ EXPAND_ONLY_PREDEF     = NO
+ 
+ # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+-# in the INCLUDE_PATH (see below) will be search if a #include is found.
++# pointed to by INCLUDE_PATH will be searched when a #include is found.
+ 
+ SEARCH_INCLUDES        = YES
+ 
+@@ -1262,15 +1594,15 @@ PREDEFINED             =
+ # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+ # this tag can be used to specify a list of macro names that should be expanded.
+ # The macro definition that is found in the sources will be used.
+-# Use the PREDEFINED tag if you want to use a different macro definition.
++# Use the PREDEFINED tag if you want to use a different macro definition that
++# overrules the definition found in the source code.
+ 
+ EXPAND_AS_DEFINED      =
+ 
+ # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+-# doxygen's preprocessor will remove all function-like macros that are alone
+-# on a line, have an all uppercase name, and do not end with a semicolon. Such
+-# function macros are typically used for boiler-plate code, and will confuse
+-# the parser if not removed.
++# doxygen's preprocessor will remove all references to function-like macros
++# that are alone on a line, have an all uppercase name, and do not end with a
++# semicolon, because these will confuse the parser if not removed.
+ 
+ SKIP_FUNCTION_MACROS   = YES
+ 
+@@ -1278,22 +1610,18 @@ SKIP_FUNCTION_MACROS   = YES
+ # Configuration::additions related to external references
+ #---------------------------------------------------------------------------
+ 
+-# The TAGFILES option can be used to specify one or more tagfiles.
+-# Optionally an initial location of the external documentation
+-# can be added for each tagfile. The format of a tag file without
+-# this location is as follows:
++# The TAGFILES option can be used to specify one or more tagfiles. For each
++# tag file the location of the external documentation should be added. The
++# format of a tag file without this location is as follows:
+ #
+ # TAGFILES = file1 file2 ...
+ # Adding location for the tag files is done as follows:
+ #
+ # TAGFILES = file1=loc1 "file2 = loc2" ...
+-# where "loc1" and "loc2" can be relative or absolute paths or
+-# URLs. If a location is present for each tag, the installdox tool
+-# does not have to be run to correct the links.
+-# Note that each tag file must have a unique name
+-# (where the name does NOT include the path)
+-# If a tag file is not located in the directory in which doxygen
+-# is run, you must also specify the path to the tagfile here.
++# where "loc1" and "loc2" can be relative or absolute paths
++# or URLs. Note that each tag file must have a unique name (where the name does
++# NOT include the path). If a tag file is not located in the directory in which
++# doxygen is run, you must also specify the path to the tagfile here.
+ 
+ TAGFILES               =
+ 
+@@ -1314,6 +1642,12 @@ ALLEXTERNALS           = NO
+ 
+ EXTERNAL_GROUPS        = YES
+ 
++# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed
++# in the related pages index. If set to NO, only the current project's
++# pages will be listed.
++
++EXTERNAL_PAGES         = YES
++
+ # The PERL_PATH should be the absolute path and name of the perl script
+ # interpreter (i.e. the result of `which perl').
+ 
+@@ -1326,9 +1660,8 @@ PERL_PATH              = /usr/bin/perl
+ # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+ # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+ # or super classes. Setting the tag to NO turns the diagrams off. Note that
+-# this option is superseded by the HAVE_DOT option below. This is only a
+-# fallback. It is recommended to install and use dot, since it yields more
+-# powerful graphs.
++# this option also works with HAVE_DOT disabled, but it is recommended to
++# install and use dot, since it yields more powerful graphs.
+ 
+ CLASS_DIAGRAMS         = YES
+ 
+@@ -1354,33 +1687,38 @@ HIDE_UNDOC_RELATIONS   = YES
+ 
+ HAVE_DOT               = NO
+ 
+-# By default doxygen will write a font called FreeSans.ttf to the output
+-# directory and reference it in all dot files that doxygen generates. This
+-# font does not include all possible unicode characters however, so when you need
+-# these (or just want a differently looking font) you can specify the font name
+-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+-# which can be done by putting it in a standard location or by setting the
+-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+-# containing the font.
++# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
++# allowed to run in parallel. When set to 0 (the default) doxygen will
++# base this on the number of processors available in the system. You can set it
++# explicitly to a value larger than 0 to get control over the balance
++# between CPU load and processing speed.
++
++DOT_NUM_THREADS        = 0
++
++# By default doxygen will use the Helvetica font for all dot files that
++# doxygen generates. When you want a differently looking font you can specify
++# the font name using DOT_FONTNAME. You need to make sure dot is able to find
++# the font, which can be done by putting it in a standard location or by setting
++# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
++# directory containing the font.
+ 
+-DOT_FONTNAME           = FreeSans
++DOT_FONTNAME           = Helvetica
+ 
+ # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+ # The default size is 10pt.
+ 
+ DOT_FONTSIZE           = 10
+ 
+-# By default doxygen will tell dot to use the output directory to look for the
+-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+-# different font using DOT_FONTNAME you can set the path where dot
+-# can find it using this tag.
++# By default doxygen will tell dot to use the Helvetica font.
++# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
++# set the path where dot can find it.
+ 
+ DOT_FONTPATH           =
+ 
+ # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+ # will generate a graph for each documented class showing the direct and
+ # indirect inheritance relations. Setting this tag to YES will force the
+-# the CLASS_DIAGRAMS tag to NO.
++# CLASS_DIAGRAMS tag to NO.
+ 
+ CLASS_GRAPH            = YES
+ 
+@@ -1402,6 +1740,15 @@ GROUP_GRAPHS           = YES
+ 
+ UML_LOOK               = NO
+ 
++# If the UML_LOOK tag is enabled, the fields and methods are shown inside
++# the class node. If there are many fields or methods and many nodes the
++# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
++# threshold limits the number of items for each type to make the size more
++# manageable. Set this to 0 for no limit. Note that the threshold may be
++# exceeded by 50% before the limit is enforced.
++
++UML_LIMIT_NUM_FIELDS   = 10
++
+ # If set to YES, the inheritance and collaboration graphs will show the
+ # relations between templates and their instances.
+ 
+@@ -1438,11 +1785,11 @@ CALL_GRAPH             = NO
+ CALLER_GRAPH           = NO
+ 
+ # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+-# will graphical hierarchy of all classes instead of a textual one.
++# will generate a graphical hierarchy of all classes instead of a textual one.
+ 
+ GRAPHICAL_HIERARCHY    = YES
+ 
+-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
++# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES
+ # then doxygen will show the dependencies a directory has on other directories
+ # in a graphical way. The dependency relations are determined by the #include
+ # relations between the files in the directories.
+@@ -1450,11 +1797,22 @@ GRAPHICAL_HIERARCHY    = YES
+ DIRECTORY_GRAPH        = YES
+ 
+ # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+-# generated by dot. Possible values are png, jpg, or gif
+-# If left blank png will be used.
++# generated by dot. Possible values are svg, png, jpg, or gif.
++# If left blank png will be used. If you choose svg you need to set
++# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
++# visible in IE 9+ (other browsers do not have this requirement).
+ 
+ DOT_IMAGE_FORMAT       = png
+ 
++# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
++# enable generation of interactive SVG images that allow zooming and panning.
++# Note that this requires a modern browser other than Internet Explorer.
++# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you
++# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files
++# visible. Older versions of IE do not have SVG support.
++
++INTERACTIVE_SVG        = NO
++
+ # The tag DOT_PATH can be used to specify the path where the dot tool can be
+ # found. If left blank, it is assumed the dot tool can be found in the path.
+ 
+@@ -1466,6 +1824,12 @@ DOT_PATH               =
+ 
+ DOTFILE_DIRS           =
+ 
++# The MSCFILE_DIRS tag can be used to specify one or more directories that
++# contain msc files that are included in the documentation (see the
++# \mscfile command).
++
++MSCFILE_DIRS           =
++
+ # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+ # nodes that will be shown in the graph. If the number of nodes in a graph
+ # becomes larger than this value, doxygen will truncate the graph, which is
+diff --git a/docs/doxygen/doxyxml/__init__.py b/docs/doxygen/doxyxml/__init__.py
+index 5cd0b3c..9efa3d7 100644
+--- docs/doxygen/doxyxml/__init__.py
++++ docs/doxygen/doxyxml/__init__.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -63,8 +64,9 @@ This line is uninformative and is only to test line breaks in the comments.
+ u'Outputs the vital aadvark statistics.'
+ 
+ """
++from __future__ import unicode_literals
+ 
+-from doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
++from .doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
+ 
+ def _test():
+     import os
+diff --git a/docs/doxygen/doxyxml/base.py b/docs/doxygen/doxyxml/base.py
+index e8f026a..df1da04 100644
+--- docs/doxygen/doxyxml/base.py
++++ docs/doxygen/doxyxml/base.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -24,24 +25,26 @@ A base class is created.
+ Classes based upon this are used to make more user-friendly interfaces
+ to the doxygen xml docs than the generated classes provide.
+ """
++from __future__ import print_function
++from __future__ import unicode_literals
+ 
+ import os
+ import pdb
+ 
+ from xml.parsers.expat import ExpatError
+ 
+-from generated import compound
++from .generated import compound
+ 
+ 
+ class Base(object):
+ 
+-    class Duplicate(StandardError):
++    class Duplicate(Exception):
+         pass
+ 
+-    class NoSuchMember(StandardError):
++    class NoSuchMember(Exception):
+         pass
+ 
+-    class ParsingError(StandardError):
++    class ParsingError(Exception):
+         pass
+ 
+     def __init__(self, parse_data, top=None):
+@@ -94,7 +97,7 @@ class Base(object):
+         for cls in self.mem_classes:
+             if cls.can_parse(mem):
+                 return cls
+-        raise StandardError(("Did not find a class for object '%s'." \
++        raise Exception(("Did not find a class for object '%s'." \
+                                  % (mem.get_name())))
+ 
+     def convert_mem(self, mem):
+@@ -102,11 +105,11 @@ class Base(object):
+             cls = self.get_cls(mem)
+             converted = cls.from_parse_data(mem, self.top)
+             if converted is None:
+-                raise StandardError('No class matched this object.')
++                raise Exception('No class matched this object.')
+             self.add_ref(converted)
+             return converted
+-        except StandardError, e:
+-            print e
++        except Exception as e:
++            print(e)
+ 
+     @classmethod
+     def includes(cls, inst):
+diff --git a/docs/doxygen/doxyxml/doxyindex.py b/docs/doxygen/doxyxml/doxyindex.py
+index 0132ab8..b4c7aef 100644
+--- docs/doxygen/doxyxml/doxyindex.py
++++ docs/doxygen/doxyxml/doxyindex.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -22,12 +23,14 @@
+ Classes providing more user-friendly interfaces to the doxygen xml
+ docs than the generated classes provide.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
+ 
+ import os
+ 
+-from generated import index
+-from base import Base
+-from text import description
++from .generated import index
++from .base import Base
++from .text import description
+ 
+ class DoxyIndex(Base):
+     """
+@@ -43,13 +46,16 @@ class DoxyIndex(Base):
+         self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
+         for mem in self._root.compound:
+             converted = self.convert_mem(mem)
+-            # For files we want the contents to be accessible directly
+-            # from the parent rather than having to go through the file
+-            # object.
++            # For files and namespaces we want the contents to be
++            # accessible directly from the parent rather than having
++            # to go through the file object.
+             if self.get_cls(mem) == DoxyFile:
+                 if mem.name.endswith('.h'):
+                     self._members += converted.members()
+                     self._members.append(converted)
++            elif self.get_cls(mem) == DoxyNamespace:
++                self._members += converted.members()
++                self._members.append(converted)
+             else:
+                 self._members.append(converted)
+ 
+@@ -80,13 +86,29 @@ class DoxyCompMem(Base):
+         self._data['brief_description'] = bd
+         self._data['detailed_description'] = dd
+ 
++    def set_parameters(self, data):
++        vs = [ddc.value for ddc in data.detaileddescription.content_]
++        pls = []
++        for v in vs:
++            if hasattr(v, 'parameterlist'):
++                pls += v.parameterlist
++        pis = []
++        for pl in pls:
++            pis += pl.parameteritem
++        dpis = []
++        for pi in pis:
++            dpi = DoxyParameterItem(pi)
++            dpi._parse()
++            dpis.append(dpi)
++        self._data['params'] = dpis
++
++
+ class DoxyCompound(DoxyCompMem):
+     pass
+ 
+ class DoxyMember(DoxyCompMem):
+     pass
+ 
+-
+ class DoxyFunction(DoxyMember):
+ 
+     __module__ = "gnuradio.utils.doxyxml"
+@@ -98,10 +120,13 @@ class DoxyFunction(DoxyMember):
+             return
+         super(DoxyFunction, self)._parse()
+         self.set_descriptions(self._parse_data)
+-        self._data['params'] = []
+-        prms = self._parse_data.param
+-        for prm in prms:
+-            self._data['params'].append(DoxyParam(prm))
++        self.set_parameters(self._parse_data)
++        if not self._data['params']:
++            # If the params weren't set by a comment then just grab the names.
++            self._data['params'] = []
++            prms = self._parse_data.param
++            for prm in prms:
++                self._data['params'].append(DoxyParam(prm))
+ 
+     brief_description = property(lambda self: self.data()['brief_description'])
+     detailed_description = property(lambda self: self.data()['detailed_description'])
+@@ -121,9 +146,39 @@ class DoxyParam(DoxyMember):
+         self.set_descriptions(self._parse_data)
+         self._data['declname'] = self._parse_data.declname
+ 
++    @property
++    def description(self):
++        descriptions = []
++        if self.brief_description:
++            descriptions.append(self.brief_description)
++        if self.detailed_description:
++            descriptions.append(self.detailed_description)
++        return '\n\n'.join(descriptions)
++
+     brief_description = property(lambda self: self.data()['brief_description'])
+     detailed_description = property(lambda self: self.data()['detailed_description'])
+-    declname = property(lambda self: self.data()['declname'])
++    name = property(lambda self: self.data()['declname'])
++
++class DoxyParameterItem(DoxyMember):
++    """A different representation of a parameter in Doxygen."""
++
++    def _parse(self):
++        if self._parsed:
++            return
++        super(DoxyParameterItem, self)._parse()
++        names = []
++        for nl in self._parse_data.parameternamelist:
++            for pn in nl.parametername:
++                names.append(description(pn))
++        # Just take first name
++        self._data['name'] = names[0]
++        # Get description
++        pd = description(self._parse_data.get_parameterdescription())
++        self._data['description'] = pd
++
++    description = property(lambda self: self.data()['description'])
++    name = property(lambda self: self.data()['name'])
++
+ 
+ class DoxyClass(DoxyCompound):
+ 
+@@ -139,12 +194,14 @@ class DoxyClass(DoxyCompound):
+         if self._error:
+             return
+         self.set_descriptions(self._retrieved_data.compounddef)
++        self.set_parameters(self._retrieved_data.compounddef)
+         # Sectiondef.kind tells about whether private or public.
+         # We just ignore this for now.
+         self.process_memberdefs()
+ 
+     brief_description = property(lambda self: self.data()['brief_description'])
+     detailed_description = property(lambda self: self.data()['detailed_description'])
++    params = property(lambda self: self.data()['params'])
+ 
+ Base.mem_classes.append(DoxyClass)
+ 
+@@ -177,6 +234,16 @@ class DoxyNamespace(DoxyCompound):
+ 
+     kind = 'namespace'
+ 
++    def _parse(self):
++        if self._parsed:
++            return
++        super(DoxyNamespace, self)._parse()
++        self.retrieve_data()
++        self.set_descriptions(self._retrieved_data.compounddef)
++        if self._error:
++            return
++        self.process_memberdefs()
++
+ Base.mem_classes.append(DoxyNamespace)
+ 
+ 
+@@ -227,11 +294,11 @@ class DoxyOther(Base):
+ 
+     __module__ = "gnuradio.utils.doxyxml"
+ 
+-    kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum', 'dir', 'page'])
++    kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum',
++                 'dir', 'page', 'signal', 'slot', 'property'])
+ 
+     @classmethod
+     def can_parse(cls, obj):
+         return obj.kind in cls.kinds
+ 
+ Base.mem_classes.append(DoxyOther)
+-
+diff --git a/docs/doxygen/doxyxml/example/Doxyfile b/docs/doxygen/doxyxml/example/Doxyfile
+deleted file mode 100644
+index 9780043..0000000
+--- docs/doxygen/doxyxml/example/Doxyfile
++++ /dev/null
+@@ -1,1551 +0,0 @@
+-# Doxyfile 1.6.3
+-
+-# This file describes the settings to be used by the documentation system
+-# doxygen (www.doxygen.org) for a project
+-#
+-# All text after a hash (#) is considered a comment and will be ignored
+-# The format is:
+-#       TAG = value [value, ...]
+-# For lists items can also be appended using:
+-#       TAG += value [value, ...]
+-# Values that contain spaces should be placed between quotes (" ")
+-
+-#---------------------------------------------------------------------------
+-# Project related configuration options
+-#---------------------------------------------------------------------------
+-
+-# This tag specifies the encoding used for all characters in the config file
+-# that follow. The default is UTF-8 which is also the encoding used for all
+-# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+-# iconv built into libc) for the transcoding. See
+-# http://www.gnu.org/software/libiconv for the list of possible encodings.
+-
+-DOXYFILE_ENCODING      = UTF-8
+-
+-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+-# by quotes) that should identify the project.
+-
+-PROJECT_NAME           =
+-
+-# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+-# This could be handy for archiving the generated documentation or
+-# if some version control system is used.
+-
+-PROJECT_NUMBER         =
+-
+-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+-# base path where the generated documentation will be put.
+-# If a relative path is entered, it will be relative to the location
+-# where doxygen was started. If left blank the current directory will be used.
+-
+-OUTPUT_DIRECTORY       =
+-
+-# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+-# 4096 sub-directories (in 2 levels) under the output directory of each output
+-# format and will distribute the generated files over these directories.
+-# Enabling this option can be useful when feeding doxygen a huge amount of
+-# source files, where putting all generated files in the same directory would
+-# otherwise cause performance problems for the file system.
+-
+-CREATE_SUBDIRS         = NO
+-
+-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+-# documentation generated by doxygen is written. Doxygen will use this
+-# information to generate all constant output in the proper language.
+-# The default language is English, other supported languages are:
+-# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+-# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+-# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+-# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+-# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+-# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+-
+-OUTPUT_LANGUAGE        = English
+-
+-# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+-# include brief member descriptions after the members that are listed in
+-# the file and class documentation (similar to JavaDoc).
+-# Set to NO to disable this.
+-
+-BRIEF_MEMBER_DESC      = YES
+-
+-# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+-# the brief description of a member or function before the detailed description.
+-# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+-# brief descriptions will be completely suppressed.
+-
+-REPEAT_BRIEF           = YES
+-
+-# This tag implements a quasi-intelligent brief description abbreviator
+-# that is used to form the text in various listings. Each string
+-# in this list, if found as the leading text of the brief description, will be
+-# stripped from the text and the result after processing the whole list, is
+-# used as the annotated text. Otherwise, the brief description is used as-is.
+-# If left blank, the following values are used ("$name" is automatically
+-# replaced with the name of the entity): "The $name class" "The $name widget"
+-# "The $name file" "is" "provides" "specifies" "contains"
+-# "represents" "a" "an" "the"
+-
+-ABBREVIATE_BRIEF       =
+-
+-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+-# Doxygen will generate a detailed section even if there is only a brief
+-# description.
+-
+-ALWAYS_DETAILED_SEC    = NO
+-
+-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+-# inherited members of a class in the documentation of that class as if those
+-# members were ordinary class members. Constructors, destructors and assignment
+-# operators of the base classes will not be shown.
+-
+-INLINE_INHERITED_MEMB  = NO
+-
+-# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+-# path before files name in the file list and in the header files. If set
+-# to NO the shortest path that makes the file name unique will be used.
+-
+-FULL_PATH_NAMES        = YES
+-
+-# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+-# can be used to strip a user-defined part of the path. Stripping is
+-# only done if one of the specified strings matches the left-hand part of
+-# the path. The tag can be used to show relative paths in the file list.
+-# If left blank the directory from which doxygen is run is used as the
+-# path to strip.
+-
+-STRIP_FROM_PATH        =
+-
+-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+-# the path mentioned in the documentation of a class, which tells
+-# the reader which header file to include in order to use a class.
+-# If left blank only the name of the header file containing the class
+-# definition is used. Otherwise one should specify the include paths that
+-# are normally passed to the compiler using the -I flag.
+-
+-STRIP_FROM_INC_PATH    =
+-
+-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+-# (but less readable) file names. This can be useful is your file systems
+-# doesn't support long names like on DOS, Mac, or CD-ROM.
+-
+-SHORT_NAMES            = NO
+-
+-# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+-# will interpret the first line (until the first dot) of a JavaDoc-style
+-# comment as the brief description. If set to NO, the JavaDoc
+-# comments will behave just like regular Qt-style comments
+-# (thus requiring an explicit @brief command for a brief description.)
+-
+-JAVADOC_AUTOBRIEF      = NO
+-
+-# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+-# interpret the first line (until the first dot) of a Qt-style
+-# comment as the brief description. If set to NO, the comments
+-# will behave just like regular Qt-style comments (thus requiring
+-# an explicit \brief command for a brief description.)
+-
+-QT_AUTOBRIEF           = NO
+-
+-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+-# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+-# comments) as a brief description. This used to be the default behaviour.
+-# The new default is to treat a multi-line C++ comment block as a detailed
+-# description. Set this tag to YES if you prefer the old behaviour instead.
+-
+-MULTILINE_CPP_IS_BRIEF = NO
+-
+-# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+-# member inherits the documentation from any documented member that it
+-# re-implements.
+-
+-INHERIT_DOCS           = YES
+-
+-# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+-# a new page for each member. If set to NO, the documentation of a member will
+-# be part of the file/class/namespace that contains it.
+-
+-SEPARATE_MEMBER_PAGES  = NO
+-
+-# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+-# Doxygen uses this value to replace tabs by spaces in code fragments.
+-
+-TAB_SIZE               = 8
+-
+-# This tag can be used to specify a number of aliases that acts
+-# as commands in the documentation. An alias has the form "name=value".
+-# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+-# put the command \sideeffect (or @sideeffect) in the documentation, which
+-# will result in a user-defined paragraph with heading "Side Effects:".
+-# You can put \n's in the value part of an alias to insert newlines.
+-
+-ALIASES                =
+-
+-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+-# sources only. Doxygen will then generate output that is more tailored for C.
+-# For instance, some of the names that are used will be different. The list
+-# of all members will be omitted, etc.
+-
+-OPTIMIZE_OUTPUT_FOR_C  = NO
+-
+-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+-# sources only. Doxygen will then generate output that is more tailored for
+-# Java. For instance, namespaces will be presented as packages, qualified
+-# scopes will look different, etc.
+-
+-OPTIMIZE_OUTPUT_JAVA   = NO
+-
+-# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+-# sources only. Doxygen will then generate output that is more tailored for
+-# Fortran.
+-
+-OPTIMIZE_FOR_FORTRAN   = NO
+-
+-# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+-# sources. Doxygen will then generate output that is tailored for
+-# VHDL.
+-
+-OPTIMIZE_OUTPUT_VHDL   = NO
+-
+-# Doxygen selects the parser to use depending on the extension of the files it parses.
+-# With this tag you can assign which parser to use for a given extension.
+-# Doxygen has a built-in mapping, but you can override or extend it using this tag.
+-# The format is ext=language, where ext is a file extension, and language is one of
+-# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
+-# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
+-# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
+-# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+-
+-EXTENSION_MAPPING      =
+-
+-# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+-# to include (a tag file for) the STL sources as input, then you should
+-# set this tag to YES in order to let doxygen match functions declarations and
+-# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+-# func(std::string) {}). This also make the inheritance and collaboration
+-# diagrams that involve STL classes more complete and accurate.
+-
+-BUILTIN_STL_SUPPORT    = NO
+-
+-# If you use Microsoft's C++/CLI language, you should set this option to YES to
+-# enable parsing support.
+-
+-CPP_CLI_SUPPORT        = NO
+-
+-# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+-# Doxygen will parse them like normal C++ but will assume all classes use public
+-# instead of private inheritance when no explicit protection keyword is present.
+-
+-SIP_SUPPORT            = NO
+-
+-# For Microsoft's IDL there are propget and propput attributes to indicate getter
+-# and setter methods for a property. Setting this option to YES (the default)
+-# will make doxygen to replace the get and set methods by a property in the
+-# documentation. This will only work if the methods are indeed getting or
+-# setting a simple type. If this is not the case, or you want to show the
+-# methods anyway, you should set this option to NO.
+-
+-IDL_PROPERTY_SUPPORT   = YES
+-
+-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+-# tag is set to YES, then doxygen will reuse the documentation of the first
+-# member in the group (if any) for the other members of the group. By default
+-# all members of a group must be documented explicitly.
+-
+-DISTRIBUTE_GROUP_DOC   = NO
+-
+-# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+-# the same type (for instance a group of public functions) to be put as a
+-# subgroup of that type (e.g. under the Public Functions section). Set it to
+-# NO to prevent subgrouping. Alternatively, this can be done per class using
+-# the \nosubgrouping command.
+-
+-SUBGROUPING            = YES
+-
+-# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+-# is documented as struct, union, or enum with the name of the typedef. So
+-# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+-# with name TypeT. When disabled the typedef will appear as a member of a file,
+-# namespace, or class. And the struct will be named TypeS. This can typically
+-# be useful for C code in case the coding convention dictates that all compound
+-# types are typedef'ed and only the typedef is referenced, never the tag name.
+-
+-TYPEDEF_HIDES_STRUCT   = NO
+-
+-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+-# determine which symbols to keep in memory and which to flush to disk.
+-# When the cache is full, less often used symbols will be written to disk.
+-# For small to medium size projects (<1000 input files) the default value is
+-# probably good enough. For larger projects a too small cache size can cause
+-# doxygen to be busy swapping symbols to and from disk most of the time
+-# causing a significant performance penality.
+-# If the system has enough physical memory increasing the cache will improve the
+-# performance by keeping more symbols in memory. Note that the value works on
+-# a logarithmic scale so increasing the size by one will rougly double the
+-# memory usage. The cache size is given by this formula:
+-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+-# corresponding to a cache size of 2^16 = 65536 symbols
+-
+-SYMBOL_CACHE_SIZE      = 0
+-
+-#---------------------------------------------------------------------------
+-# Build related configuration options
+-#---------------------------------------------------------------------------
+-
+-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+-# documentation are documented, even if no documentation was available.
+-# Private class members and static file members will be hidden unless
+-# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+-
+-EXTRACT_ALL            = NO
+-
+-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+-# will be included in the documentation.
+-
+-EXTRACT_PRIVATE        = NO
+-
+-# If the EXTRACT_STATIC tag is set to YES all static members of a file
+-# will be included in the documentation.
+-
+-EXTRACT_STATIC         = NO
+-
+-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+-# defined locally in source files will be included in the documentation.
+-# If set to NO only classes defined in header files are included.
+-
+-EXTRACT_LOCAL_CLASSES  = YES
+-
+-# This flag is only useful for Objective-C code. When set to YES local
+-# methods, which are defined in the implementation section but not in
+-# the interface are included in the documentation.
+-# If set to NO (the default) only methods in the interface are included.
+-
+-EXTRACT_LOCAL_METHODS  = NO
+-
+-# If this flag is set to YES, the members of anonymous namespaces will be
+-# extracted and appear in the documentation as a namespace called
+-# 'anonymous_namespace{file}', where file will be replaced with the base
+-# name of the file that contains the anonymous namespace. By default
+-# anonymous namespace are hidden.
+-
+-EXTRACT_ANON_NSPACES   = NO
+-
+-# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+-# undocumented members of documented classes, files or namespaces.
+-# If set to NO (the default) these members will be included in the
+-# various overviews, but no documentation section is generated.
+-# This option has no effect if EXTRACT_ALL is enabled.
+-
+-HIDE_UNDOC_MEMBERS     = NO
+-
+-# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+-# undocumented classes that are normally visible in the class hierarchy.
+-# If set to NO (the default) these classes will be included in the various
+-# overviews. This option has no effect if EXTRACT_ALL is enabled.
+-
+-HIDE_UNDOC_CLASSES     = NO
+-
+-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+-# friend (class|struct|union) declarations.
+-# If set to NO (the default) these declarations will be included in the
+-# documentation.
+-
+-HIDE_FRIEND_COMPOUNDS  = NO
+-
+-# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+-# documentation blocks found inside the body of a function.
+-# If set to NO (the default) these blocks will be appended to the
+-# function's detailed documentation block.
+-
+-HIDE_IN_BODY_DOCS      = NO
+-
+-# The INTERNAL_DOCS tag determines if documentation
+-# that is typed after a \internal command is included. If the tag is set
+-# to NO (the default) then the documentation will be excluded.
+-# Set it to YES to include the internal documentation.
+-
+-INTERNAL_DOCS          = NO
+-
+-# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+-# file names in lower-case letters. If set to YES upper-case letters are also
+-# allowed. This is useful if you have classes or files whose names only differ
+-# in case and if your file system supports case sensitive file names. Windows
+-# and Mac users are advised to set this option to NO.
+-
+-CASE_SENSE_NAMES       = YES
+-
+-# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+-# will show members with their full class and namespace scopes in the
+-# documentation. If set to YES the scope will be hidden.
+-
+-HIDE_SCOPE_NAMES       = NO
+-
+-# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+-# will put a list of the files that are included by a file in the documentation
+-# of that file.
+-
+-SHOW_INCLUDE_FILES     = YES
+-
+-# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+-# will list include files with double quotes in the documentation
+-# rather than with sharp brackets.
+-
+-FORCE_LOCAL_INCLUDES   = NO
+-
+-# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+-# is inserted in the documentation for inline members.
+-
+-INLINE_INFO            = YES
+-
+-# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+-# will sort the (detailed) documentation of file and class members
+-# alphabetically by member name. If set to NO the members will appear in
+-# declaration order.
+-
+-SORT_MEMBER_DOCS       = YES
+-
+-# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+-# brief documentation of file, namespace and class members alphabetically
+-# by member name. If set to NO (the default) the members will appear in
+-# declaration order.
+-
+-SORT_BRIEF_DOCS        = NO
+-
+-# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+-
+-SORT_MEMBERS_CTORS_1ST = NO
+-
+-# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+-# hierarchy of group names into alphabetical order. If set to NO (the default)
+-# the group names will appear in their defined order.
+-
+-SORT_GROUP_NAMES       = NO
+-
+-# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+-# sorted by fully-qualified names, including namespaces. If set to
+-# NO (the default), the class list will be sorted only by class name,
+-# not including the namespace part.
+-# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+-# Note: This option applies only to the class list, not to the
+-# alphabetical list.
+-
+-SORT_BY_SCOPE_NAME     = NO
+-
+-# The GENERATE_TODOLIST tag can be used to enable (YES) or
+-# disable (NO) the todo list. This list is created by putting \todo
+-# commands in the documentation.
+-
+-GENERATE_TODOLIST      = YES
+-
+-# The GENERATE_TESTLIST tag can be used to enable (YES) or
+-# disable (NO) the test list. This list is created by putting \test
+-# commands in the documentation.
+-
+-GENERATE_TESTLIST      = YES
+-
+-# The GENERATE_BUGLIST tag can be used to enable (YES) or
+-# disable (NO) the bug list. This list is created by putting \bug
+-# commands in the documentation.
+-
+-GENERATE_BUGLIST       = YES
+-
+-# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+-# disable (NO) the deprecated list. This list is created by putting
+-# \deprecated commands in the documentation.
+-
+-GENERATE_DEPRECATEDLIST= YES
+-
+-# The ENABLED_SECTIONS tag can be used to enable conditional
+-# documentation sections, marked by \if sectionname ... \endif.
+-
+-ENABLED_SECTIONS       =
+-
+-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+-# the initial value of a variable or define consists of for it to appear in
+-# the documentation. If the initializer consists of more lines than specified
+-# here it will be hidden. Use a value of 0 to hide initializers completely.
+-# The appearance of the initializer of individual variables and defines in the
+-# documentation can be controlled using \showinitializer or \hideinitializer
+-# command in the documentation regardless of this setting.
+-
+-MAX_INITIALIZER_LINES  = 30
+-
+-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+-# at the bottom of the documentation of classes and structs. If set to YES the
+-# list will mention the files that were used to generate the documentation.
+-
+-SHOW_USED_FILES        = YES
+-
+-# If the sources in your project are distributed over multiple directories
+-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+-# in the documentation. The default is NO.
+-
+-SHOW_DIRECTORIES       = NO
+-
+-# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+-# This will remove the Files entry from the Quick Index and from the
+-# Folder Tree View (if specified). The default is YES.
+-
+-SHOW_FILES             = YES
+-
+-# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+-# Namespaces page.
+-# This will remove the Namespaces entry from the Quick Index
+-# and from the Folder Tree View (if specified). The default is YES.
+-
+-SHOW_NAMESPACES        = YES
+-
+-# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+-# doxygen should invoke to get the current version for each file (typically from
+-# the version control system). Doxygen will invoke the program by executing (via
+-# popen()) the command <command> <input-file>, where <command> is the value of
+-# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+-# provided by doxygen. Whatever the program writes to standard output
+-# is used as the file version. See the manual for examples.
+-
+-FILE_VERSION_FILTER    =
+-
+-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+-# doxygen. The layout file controls the global structure of the generated output files
+-# in an output format independent way. The create the layout file that represents
+-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+-# of the layout file.
+-
+-LAYOUT_FILE            =
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to warning and progress messages
+-#---------------------------------------------------------------------------
+-
+-# The QUIET tag can be used to turn on/off the messages that are generated
+-# by doxygen. Possible values are YES and NO. If left blank NO is used.
+-
+-QUIET                  = NO
+-
+-# The WARNINGS tag can be used to turn on/off the warning messages that are
+-# generated by doxygen. Possible values are YES and NO. If left blank
+-# NO is used.
+-
+-WARNINGS               = YES
+-
+-# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+-# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+-# automatically be disabled.
+-
+-WARN_IF_UNDOCUMENTED   = YES
+-
+-# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+-# potential errors in the documentation, such as not documenting some
+-# parameters in a documented function, or documenting parameters that
+-# don't exist or using markup commands wrongly.
+-
+-WARN_IF_DOC_ERROR      = YES
+-
+-# This WARN_NO_PARAMDOC option can be abled to get warnings for
+-# functions that are documented, but have no documentation for their parameters
+-# or return value. If set to NO (the default) doxygen will only warn about
+-# wrong or incomplete parameter documentation, but not about the absence of
+-# documentation.
+-
+-WARN_NO_PARAMDOC       = NO
+-
+-# The WARN_FORMAT tag determines the format of the warning messages that
+-# doxygen can produce. The string should contain the $file, $line, and $text
+-# tags, which will be replaced by the file and line number from which the
+-# warning originated and the warning text. Optionally the format may contain
+-# $version, which will be replaced by the version of the file (if it could
+-# be obtained via FILE_VERSION_FILTER)
+-
+-WARN_FORMAT            = "$file:$line: $text"
+-
+-# The WARN_LOGFILE tag can be used to specify a file to which warning
+-# and error messages should be written. If left blank the output is written
+-# to stderr.
+-
+-WARN_LOGFILE           =
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the input files
+-#---------------------------------------------------------------------------
+-
+-# The INPUT tag can be used to specify the files and/or directories that contain
+-# documented source files. You may enter file names like "myfile.cpp" or
+-# directories like "/usr/src/myproject". Separate the files or directories
+-# with spaces.
+-
+-INPUT                  =
+-
+-# This tag can be used to specify the character encoding of the source files
+-# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+-# also the default input encoding. Doxygen uses libiconv (or the iconv built
+-# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+-# the list of possible encodings.
+-
+-INPUT_ENCODING         = UTF-8
+-
+-# If the value of the INPUT tag contains directories, you can use the
+-# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+-# and *.h) to filter out the source-files in the directories. If left
+-# blank the following patterns are tested:
+-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+-# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+-
+-FILE_PATTERNS          =
+-
+-# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+-# should be searched for input files as well. Possible values are YES and NO.
+-# If left blank NO is used.
+-
+-RECURSIVE              = NO
+-
+-# The EXCLUDE tag can be used to specify files and/or directories that should
+-# excluded from the INPUT source files. This way you can easily exclude a
+-# subdirectory from a directory tree whose root is specified with the INPUT tag.
+-
+-EXCLUDE                =
+-
+-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+-# directories that are symbolic links (a Unix filesystem feature) are excluded
+-# from the input.
+-
+-EXCLUDE_SYMLINKS       = NO
+-
+-# If the value of the INPUT tag contains directories, you can use the
+-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+-# certain files from those directories. Note that the wildcards are matched
+-# against the file with absolute path, so to exclude all test directories
+-# for example use the pattern */test/*
+-
+-EXCLUDE_PATTERNS       =
+-
+-# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+-# (namespaces, classes, functions, etc.) that should be excluded from the
+-# output. The symbol name can be a fully qualified name, a word, or if the
+-# wildcard * is used, a substring. Examples: ANamespace, AClass,
+-# AClass::ANamespace, ANamespace::*Test
+-
+-EXCLUDE_SYMBOLS        =
+-
+-# The EXAMPLE_PATH tag can be used to specify one or more files or
+-# directories that contain example code fragments that are included (see
+-# the \include command).
+-
+-EXAMPLE_PATH           =
+-
+-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+-# and *.h) to filter out the source-files in the directories. If left
+-# blank all files are included.
+-
+-EXAMPLE_PATTERNS       =
+-
+-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+-# searched for input files to be used with the \include or \dontinclude
+-# commands irrespective of the value of the RECURSIVE tag.
+-# Possible values are YES and NO. If left blank NO is used.
+-
+-EXAMPLE_RECURSIVE      = NO
+-
+-# The IMAGE_PATH tag can be used to specify one or more files or
+-# directories that contain image that are included in the documentation (see
+-# the \image command).
+-
+-IMAGE_PATH             =
+-
+-# The INPUT_FILTER tag can be used to specify a program that doxygen should
+-# invoke to filter for each input file. Doxygen will invoke the filter program
+-# by executing (via popen()) the command <filter> <input-file>, where <filter>
+-# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+-# input file. Doxygen will then use the output that the filter program writes
+-# to standard output.
+-# If FILTER_PATTERNS is specified, this tag will be
+-# ignored.
+-
+-INPUT_FILTER           =
+-
+-# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+-# basis.
+-# Doxygen will compare the file name with each pattern and apply the
+-# filter if there is a match.
+-# The filters are a list of the form:
+-# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+-# is applied to all files.
+-
+-FILTER_PATTERNS        =
+-
+-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+-# INPUT_FILTER) will be used to filter the input files when producing source
+-# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+-
+-FILTER_SOURCE_FILES    = NO
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to source browsing
+-#---------------------------------------------------------------------------
+-
+-# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+-# be generated. Documented entities will be cross-referenced with these sources.
+-# Note: To get rid of all source code in the generated output, make sure also
+-# VERBATIM_HEADERS is set to NO.
+-
+-SOURCE_BROWSER         = NO
+-
+-# Setting the INLINE_SOURCES tag to YES will include the body
+-# of functions and classes directly in the documentation.
+-
+-INLINE_SOURCES         = NO
+-
+-# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+-# doxygen to hide any special comment blocks from generated source code
+-# fragments. Normal C and C++ comments will always remain visible.
+-
+-STRIP_CODE_COMMENTS    = YES
+-
+-# If the REFERENCED_BY_RELATION tag is set to YES
+-# then for each documented function all documented
+-# functions referencing it will be listed.
+-
+-REFERENCED_BY_RELATION = NO
+-
+-# If the REFERENCES_RELATION tag is set to YES
+-# then for each documented function all documented entities
+-# called/used by that function will be listed.
+-
+-REFERENCES_RELATION    = NO
+-
+-# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+-# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+-# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+-# link to the source code.
+-# Otherwise they will link to the documentation.
+-
+-REFERENCES_LINK_SOURCE = YES
+-
+-# If the USE_HTAGS tag is set to YES then the references to source code
+-# will point to the HTML generated by the htags(1) tool instead of doxygen
+-# built-in source browser. The htags tool is part of GNU's global source
+-# tagging system (see http://www.gnu.org/software/global/global.html). You
+-# will need version 4.8.6 or higher.
+-
+-USE_HTAGS              = NO
+-
+-# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+-# will generate a verbatim copy of the header file for each class for
+-# which an include is specified. Set to NO to disable this.
+-
+-VERBATIM_HEADERS       = YES
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the alphabetical class index
+-#---------------------------------------------------------------------------
+-
+-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+-# of all compounds will be generated. Enable this if the project
+-# contains a lot of classes, structs, unions or interfaces.
+-
+-ALPHABETICAL_INDEX     = NO
+-
+-# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+-# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+-# in which this list will be split (can be a number in the range [1..20])
+-
+-COLS_IN_ALPHA_INDEX    = 5
+-
+-# In case all classes in a project start with a common prefix, all
+-# classes will be put under the same header in the alphabetical index.
+-# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+-# should be ignored while generating the index headers.
+-
+-IGNORE_PREFIX          =
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the HTML output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+-# generate HTML output.
+-
+-GENERATE_HTML          = YES
+-
+-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+-# put in front of it. If left blank `html' will be used as the default path.
+-
+-HTML_OUTPUT            = html
+-
+-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+-# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+-# doxygen will generate files with .html extension.
+-
+-HTML_FILE_EXTENSION    = .html
+-
+-# The HTML_HEADER tag can be used to specify a personal HTML header for
+-# each generated HTML page. If it is left blank doxygen will generate a
+-# standard header.
+-
+-HTML_HEADER            =
+-
+-# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+-# each generated HTML page. If it is left blank doxygen will generate a
+-# standard footer.
+-
+-HTML_FOOTER            =
+-
+-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+-# style sheet that is used by each HTML page. It can be used to
+-# fine-tune the look of the HTML output. If the tag is left blank doxygen
+-# will generate a default style sheet. Note that doxygen will try to copy
+-# the style sheet file to the HTML output directory, so don't put your own
+-# stylesheet in the HTML output directory as well, or it will be erased!
+-
+-HTML_STYLESHEET        =
+-
+-# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+-# page will contain the date and time when the page was generated. Setting
+-# this to NO can help when comparing the output of multiple runs.
+-
+-HTML_TIMESTAMP         = YES
+-
+-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+-# files or namespaces will be aligned in HTML using tables. If set to
+-# NO a bullet list will be used.
+-
+-HTML_ALIGN_MEMBERS     = YES
+-
+-# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+-# documentation will contain sections that can be hidden and shown after the
+-# page has loaded. For this to work a browser that supports
+-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+-# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+-
+-HTML_DYNAMIC_SECTIONS  = NO
+-
+-# If the GENERATE_DOCSET tag is set to YES, additional index files
+-# will be generated that can be used as input for Apple's Xcode 3
+-# integrated development environment, introduced with OSX 10.5 (Leopard).
+-# To create a documentation set, doxygen will generate a Makefile in the
+-# HTML output directory. Running make will produce the docset in that
+-# directory and running "make install" will install the docset in
+-# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+-# it at startup.
+-# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+-
+-GENERATE_DOCSET        = NO
+-
+-# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+-# feed. A documentation feed provides an umbrella under which multiple
+-# documentation sets from a single provider (such as a company or product suite)
+-# can be grouped.
+-
+-DOCSET_FEEDNAME        = "Doxygen generated docs"
+-
+-# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+-# should uniquely identify the documentation set bundle. This should be a
+-# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+-# will append .docset to the name.
+-
+-DOCSET_BUNDLE_ID       = org.doxygen.Project
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+-# will be generated that can be used as input for tools like the
+-# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+-# of the generated HTML documentation.
+-
+-GENERATE_HTMLHELP      = NO
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+-# be used to specify the file name of the resulting .chm file. You
+-# can add a path in front of the file if the result should not be
+-# written to the html output directory.
+-
+-CHM_FILE               =
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+-# be used to specify the location (absolute path including file name) of
+-# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+-# the HTML help compiler on the generated index.hhp.
+-
+-HHC_LOCATION           =
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+-# controls if a separate .chi index file is generated (YES) or that
+-# it should be included in the master .chm file (NO).
+-
+-GENERATE_CHI           = NO
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+-# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+-# content.
+-
+-CHM_INDEX_ENCODING     =
+-
+-# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+-# controls whether a binary table of contents is generated (YES) or a
+-# normal table of contents (NO) in the .chm file.
+-
+-BINARY_TOC             = NO
+-
+-# The TOC_EXPAND flag can be set to YES to add extra items for group members
+-# to the contents of the HTML help documentation and to the tree view.
+-
+-TOC_EXPAND             = NO
+-
+-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+-# are set, an additional index file will be generated that can be used as input for
+-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+-# HTML documentation.
+-
+-GENERATE_QHP           = NO
+-
+-# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+-# be used to specify the file name of the resulting .qch file.
+-# The path specified is relative to the HTML output folder.
+-
+-QCH_FILE               =
+-
+-# The QHP_NAMESPACE tag specifies the namespace to use when generating
+-# Qt Help Project output. For more information please see
+-# http://doc.trolltech.com/qthelpproject.html#namespace
+-
+-QHP_NAMESPACE          = org.doxygen.Project
+-
+-# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+-# Qt Help Project output. For more information please see
+-# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+-
+-QHP_VIRTUAL_FOLDER     = doc
+-
+-# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
+-# For more information please see
+-# http://doc.trolltech.com/qthelpproject.html#custom-filters
+-
+-QHP_CUST_FILTER_NAME   =
+-
+-# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
+-# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+-
+-QHP_CUST_FILTER_ATTRS  =
+-
+-# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
+-# filter section matches.
+-# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+-
+-QHP_SECT_FILTER_ATTRS  =
+-
+-# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+-# be used to specify the location of Qt's qhelpgenerator.
+-# If non-empty doxygen will try to run qhelpgenerator on the generated
+-# .qhp file.
+-
+-QHG_LOCATION           =
+-
+-# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+-#  will be generated, which together with the HTML files, form an Eclipse help
+-#  plugin. To install this plugin and make it available under the help contents
+-# menu in Eclipse, the contents of the directory containing the HTML and XML
+-# files needs to be copied into the plugins directory of eclipse. The name of
+-# the directory within the plugins directory should be the same as
+-# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before the help appears.
+-
+-GENERATE_ECLIPSEHELP   = NO
+-
+-# A unique identifier for the eclipse help plugin. When installing the plugin
+-# the directory name containing the HTML and XML files should also have
+-# this name.
+-
+-ECLIPSE_DOC_ID         = org.doxygen.Project
+-
+-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+-# top of each HTML page. The value NO (the default) enables the index and
+-# the value YES disables it.
+-
+-DISABLE_INDEX          = NO
+-
+-# This tag can be used to set the number of enum values (range [1..20])
+-# that doxygen will group on one line in the generated HTML documentation.
+-
+-ENUM_VALUES_PER_LINE   = 4
+-
+-# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+-# structure should be generated to display hierarchical information.
+-# If the tag value is set to YES, a side panel will be generated
+-# containing a tree-like index structure (just like the one that
+-# is generated for HTML Help). For this to work a browser that supports
+-# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+-# Windows users are probably better off using the HTML help feature.
+-
+-GENERATE_TREEVIEW      = NO
+-
+-# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
+-# and Class Hierarchy pages using a tree view instead of an ordered list.
+-
+-USE_INLINE_TREES       = NO
+-
+-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+-# used to set the initial width (in pixels) of the frame in which the tree
+-# is shown.
+-
+-TREEVIEW_WIDTH         = 250
+-
+-# Use this tag to change the font size of Latex formulas included
+-# as images in the HTML documentation. The default is 10. Note that
+-# when you change the font size after a successful doxygen run you need
+-# to manually remove any form_*.png images from the HTML output directory
+-# to force them to be regenerated.
+-
+-FORMULA_FONTSIZE       = 10
+-
+-# When the SEARCHENGINE tag is enabled doxygen will generate a search box for the HTML output. The underlying search engine uses javascript
+-# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) there is already a search function so this one should
+-# typically be disabled. For large projects the javascript based search engine
+-# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+-
+-SEARCHENGINE           = YES
+-
+-# When the SERVER_BASED_SEARCH tag is enabled the search engine will be implemented using a PHP enabled web server instead of at the web client using Javascript. Doxygen will generate the search PHP script and index
+-# file to put on the web server. The advantage of the server based approach is that it scales better to large projects and allows full text search. The disadvances is that it is more difficult to setup
+-# and does not have live searching capabilities.
+-
+-SERVER_BASED_SEARCH    = NO
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the LaTeX output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+-# generate Latex output.
+-
+-GENERATE_LATEX         = YES
+-
+-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+-# put in front of it. If left blank `latex' will be used as the default path.
+-
+-LATEX_OUTPUT           = latex
+-
+-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+-# invoked. If left blank `latex' will be used as the default command name.
+-# Note that when enabling USE_PDFLATEX this option is only used for
+-# generating bitmaps for formulas in the HTML output, but not in the
+-# Makefile that is written to the output directory.
+-
+-LATEX_CMD_NAME         = latex
+-
+-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+-# generate index for LaTeX. If left blank `makeindex' will be used as the
+-# default command name.
+-
+-MAKEINDEX_CMD_NAME     = makeindex
+-
+-# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+-# LaTeX documents. This may be useful for small projects and may help to
+-# save some trees in general.
+-
+-COMPACT_LATEX          = NO
+-
+-# The PAPER_TYPE tag can be used to set the paper type that is used
+-# by the printer. Possible values are: a4, a4wide, letter, legal and
+-# executive. If left blank a4wide will be used.
+-
+-PAPER_TYPE             = a4wide
+-
+-# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+-# packages that should be included in the LaTeX output.
+-
+-EXTRA_PACKAGES         =
+-
+-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+-# the generated latex document. The header should contain everything until
+-# the first chapter. If it is left blank doxygen will generate a
+-# standard header. Notice: only use this tag if you know what you are doing!
+-
+-LATEX_HEADER           =
+-
+-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+-# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+-# contain links (just like the HTML output) instead of page references
+-# This makes the output suitable for online browsing using a pdf viewer.
+-
+-PDF_HYPERLINKS         = YES
+-
+-# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+-# plain latex in the generated Makefile. Set this option to YES to get a
+-# higher quality PDF documentation.
+-
+-USE_PDFLATEX           = YES
+-
+-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+-# command to the generated LaTeX files. This will instruct LaTeX to keep
+-# running if errors occur, instead of asking the user for help.
+-# This option is also used when generating formulas in HTML.
+-
+-LATEX_BATCHMODE        = NO
+-
+-# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+-# include the index chapters (such as File Index, Compound Index, etc.)
+-# in the output.
+-
+-LATEX_HIDE_INDICES     = NO
+-
+-# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER.
+-
+-LATEX_SOURCE_CODE      = NO
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the RTF output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+-# The RTF output is optimized for Word 97 and may not look very pretty with
+-# other RTF readers or editors.
+-
+-GENERATE_RTF           = NO
+-
+-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+-# put in front of it. If left blank `rtf' will be used as the default path.
+-
+-RTF_OUTPUT             = rtf
+-
+-# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+-# RTF documents. This may be useful for small projects and may help to
+-# save some trees in general.
+-
+-COMPACT_RTF            = NO
+-
+-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+-# will contain hyperlink fields. The RTF file will
+-# contain links (just like the HTML output) instead of page references.
+-# This makes the output suitable for online browsing using WORD or other
+-# programs which support those fields.
+-# Note: wordpad (write) and others do not support links.
+-
+-RTF_HYPERLINKS         = NO
+-
+-# Load stylesheet definitions from file. Syntax is similar to doxygen's
+-# config file, i.e. a series of assignments. You only have to provide
+-# replacements, missing definitions are set to their default value.
+-
+-RTF_STYLESHEET_FILE    =
+-
+-# Set optional variables used in the generation of an rtf document.
+-# Syntax is similar to doxygen's config file.
+-
+-RTF_EXTENSIONS_FILE    =
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the man page output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+-# generate man pages
+-
+-GENERATE_MAN           = NO
+-
+-# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+-# put in front of it. If left blank `man' will be used as the default path.
+-
+-MAN_OUTPUT             = man
+-
+-# The MAN_EXTENSION tag determines the extension that is added to
+-# the generated man pages (default is the subroutine's section .3)
+-
+-MAN_EXTENSION          = .3
+-
+-# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+-# then it will generate one additional man file for each entity
+-# documented in the real man page(s). These additional files
+-# only source the real man page, but without them the man command
+-# would be unable to find the correct page. The default is NO.
+-
+-MAN_LINKS              = NO
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the XML output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_XML tag is set to YES Doxygen will
+-# generate an XML file that captures the structure of
+-# the code including all documentation.
+-
+-GENERATE_XML           = YES
+-
+-# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+-# put in front of it. If left blank `xml' will be used as the default path.
+-
+-XML_OUTPUT             = xml
+-
+-# The XML_SCHEMA tag can be used to specify an XML schema,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_SCHEMA             =
+-
+-# The XML_DTD tag can be used to specify an XML DTD,
+-# which can be used by a validating XML parser to check the
+-# syntax of the XML files.
+-
+-XML_DTD                =
+-
+-# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+-# dump the program listings (including syntax highlighting
+-# and cross-referencing information) to the XML output. Note that
+-# enabling this will significantly increase the size of the XML output.
+-
+-XML_PROGRAMLISTING     = YES
+-
+-#---------------------------------------------------------------------------
+-# configuration options for the AutoGen Definitions output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+-# generate an AutoGen Definitions (see autogen.sf.net) file
+-# that captures the structure of the code including all
+-# documentation. Note that this feature is still experimental
+-# and incomplete at the moment.
+-
+-GENERATE_AUTOGEN_DEF   = NO
+-
+-#---------------------------------------------------------------------------
+-# configuration options related to the Perl module output
+-#---------------------------------------------------------------------------
+-
+-# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+-# generate a Perl module file that captures the structure of
+-# the code including all documentation. Note that this
+-# feature is still experimental and incomplete at the
+-# moment.
+-
+-GENERATE_PERLMOD       = NO
+-
+-# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+-# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+-# to generate PDF and DVI output from the Perl module output.
+-
+-PERLMOD_LATEX          = NO
+-
+-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+-# nicely formatted so it can be parsed by a human reader.
+-# This is useful
+-# if you want to understand what is going on.
+-# On the other hand, if this
+-# tag is set to NO the size of the Perl module output will be much smaller
+-# and Perl will parse it just the same.
+-
+-PERLMOD_PRETTY         = YES
+-
+-# The names of the make variables in the generated doxyrules.make file
+-# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+-# This is useful so different doxyrules.make files included by the same
+-# Makefile don't overwrite each other's variables.
+-
+-PERLMOD_MAKEVAR_PREFIX =
+-
+-#---------------------------------------------------------------------------
+-# Configuration options related to the preprocessor
+-#---------------------------------------------------------------------------
+-
+-# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+-# evaluate all C-preprocessor directives found in the sources and include
+-# files.
+-
+-ENABLE_PREPROCESSING   = YES
+-
+-# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+-# names in the source code. If set to NO (the default) only conditional
+-# compilation will be performed. Macro expansion can be done in a controlled
+-# way by setting EXPAND_ONLY_PREDEF to YES.
+-
+-MACRO_EXPANSION        = NO
+-
+-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+-# then the macro expansion is limited to the macros specified with the
+-# PREDEFINED and EXPAND_AS_DEFINED tags.
+-
+-EXPAND_ONLY_PREDEF     = NO
+-
+-# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+-# in the INCLUDE_PATH (see below) will be search if a #include is found.
+-
+-SEARCH_INCLUDES        = YES
+-
+-# The INCLUDE_PATH tag can be used to specify one or more directories that
+-# contain include files that are not input files but should be processed by
+-# the preprocessor.
+-
+-INCLUDE_PATH           =
+-
+-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+-# patterns (like *.h and *.hpp) to filter out the header-files in the
+-# directories. If left blank, the patterns specified with FILE_PATTERNS will
+-# be used.
+-
+-INCLUDE_FILE_PATTERNS  =
+-
+-# The PREDEFINED tag can be used to specify one or more macro names that
+-# are defined before the preprocessor is started (similar to the -D option of
+-# gcc). The argument of the tag is a list of macros of the form: name
+-# or name=definition (no spaces). If the definition and the = are
+-# omitted =1 is assumed. To prevent a macro definition from being
+-# undefined via #undef or recursively expanded use the := operator
+-# instead of the = operator.
+-
+-PREDEFINED             =
+-
+-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+-# this tag can be used to specify a list of macro names that should be expanded.
+-# The macro definition that is found in the sources will be used.
+-# Use the PREDEFINED tag if you want to use a different macro definition.
+-
+-EXPAND_AS_DEFINED      =
+-
+-# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+-# doxygen's preprocessor will remove all function-like macros that are alone
+-# on a line, have an all uppercase name, and do not end with a semicolon. Such
+-# function macros are typically used for boiler-plate code, and will confuse
+-# the parser if not removed.
+-
+-SKIP_FUNCTION_MACROS   = YES
+-
+-#---------------------------------------------------------------------------
+-# Configuration::additions related to external references
+-#---------------------------------------------------------------------------
+-
+-# The TAGFILES option can be used to specify one or more tagfiles.
+-# Optionally an initial location of the external documentation
+-# can be added for each tagfile. The format of a tag file without
+-# this location is as follows:
+-#
+-# TAGFILES = file1 file2 ...
+-# Adding location for the tag files is done as follows:
+-#
+-# TAGFILES = file1=loc1 "file2 = loc2" ...
+-# where "loc1" and "loc2" can be relative or absolute paths or
+-# URLs. If a location is present for each tag, the installdox tool
+-# does not have to be run to correct the links.
+-# Note that each tag file must have a unique name
+-# (where the name does NOT include the path)
+-# If a tag file is not located in the directory in which doxygen
+-# is run, you must also specify the path to the tagfile here.
+-
+-TAGFILES               =
+-
+-# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+-# a tag file that is based on the input files it reads.
+-
+-GENERATE_TAGFILE       =
+-
+-# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+-# in the class index. If set to NO only the inherited external classes
+-# will be listed.
+-
+-ALLEXTERNALS           = NO
+-
+-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+-# in the modules index. If set to NO, only the current project's groups will
+-# be listed.
+-
+-EXTERNAL_GROUPS        = YES
+-
+-# The PERL_PATH should be the absolute path and name of the perl script
+-# interpreter (i.e. the result of `which perl').
+-
+-PERL_PATH              = /usr/bin/perl
+-
+-#---------------------------------------------------------------------------
+-# Configuration options related to the dot tool
+-#---------------------------------------------------------------------------
+-
+-# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+-# or super classes. Setting the tag to NO turns the diagrams off. Note that
+-# this option is superseded by the HAVE_DOT option below. This is only a
+-# fallback. It is recommended to install and use dot, since it yields more
+-# powerful graphs.
+-
+-CLASS_DIAGRAMS         = YES
+-
+-# You can define message sequence charts within doxygen comments using the \msc
+-# command. Doxygen will then run the mscgen tool (see
+-# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+-# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+-# the mscgen tool resides. If left empty the tool is assumed to be found in the
+-# default search path.
+-
+-MSCGEN_PATH            =
+-
+-# If set to YES, the inheritance and collaboration graphs will hide
+-# inheritance and usage relations if the target is undocumented
+-# or is not a class.
+-
+-HIDE_UNDOC_RELATIONS   = YES
+-
+-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+-# available from the path. This tool is part of Graphviz, a graph visualization
+-# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+-# have no effect if this option is set to NO (the default)
+-
+-HAVE_DOT               = NO
+-
+-# By default doxygen will write a font called FreeSans.ttf to the output
+-# directory and reference it in all dot files that doxygen generates. This
+-# font does not include all possible unicode characters however, so when you need
+-# these (or just want a differently looking font) you can specify the font name
+-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+-# which can be done by putting it in a standard location or by setting the
+-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+-# containing the font.
+-
+-DOT_FONTNAME           = FreeSans
+-
+-# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+-# The default size is 10pt.
+-
+-DOT_FONTSIZE           = 10
+-
+-# By default doxygen will tell dot to use the output directory to look for the
+-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+-# different font using DOT_FONTNAME you can set the path where dot
+-# can find it using this tag.
+-
+-DOT_FONTPATH           =
+-
+-# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+-# will generate a graph for each documented class showing the direct and
+-# indirect inheritance relations. Setting this tag to YES will force the
+-# the CLASS_DIAGRAMS tag to NO.
+-
+-CLASS_GRAPH            = YES
+-
+-# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+-# will generate a graph for each documented class showing the direct and
+-# indirect implementation dependencies (inheritance, containment, and
+-# class references variables) of the class with other documented classes.
+-
+-COLLABORATION_GRAPH    = YES
+-
+-# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+-# will generate a graph for groups, showing the direct groups dependencies
+-
+-GROUP_GRAPHS           = YES
+-
+-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+-# collaboration diagrams in a style similar to the OMG's Unified Modeling
+-# Language.
+-
+-UML_LOOK               = NO
+-
+-# If set to YES, the inheritance and collaboration graphs will show the
+-# relations between templates and their instances.
+-
+-TEMPLATE_RELATIONS     = NO
+-
+-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+-# tags are set to YES then doxygen will generate a graph for each documented
+-# file showing the direct and indirect include dependencies of the file with
+-# other documented files.
+-
+-INCLUDE_GRAPH          = YES
+-
+-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+-# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+-# documented header file showing the documented files that directly or
+-# indirectly include this file.
+-
+-INCLUDED_BY_GRAPH      = YES
+-
+-# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+-# doxygen will generate a call dependency graph for every global function
+-# or class method. Note that enabling this option will significantly increase
+-# the time of a run. So in most cases it will be better to enable call graphs
+-# for selected functions only using the \callgraph command.
+-
+-CALL_GRAPH             = NO
+-
+-# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+-# doxygen will generate a caller dependency graph for every global function
+-# or class method. Note that enabling this option will significantly increase
+-# the time of a run. So in most cases it will be better to enable caller
+-# graphs for selected functions only using the \callergraph command.
+-
+-CALLER_GRAPH           = NO
+-
+-# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+-# will graphical hierarchy of all classes instead of a textual one.
+-
+-GRAPHICAL_HIERARCHY    = YES
+-
+-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+-# then doxygen will show the dependencies a directory has on other directories
+-# in a graphical way. The dependency relations are determined by the #include
+-# relations between the files in the directories.
+-
+-DIRECTORY_GRAPH        = YES
+-
+-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+-# generated by dot. Possible values are png, jpg, or gif
+-# If left blank png will be used.
+-
+-DOT_IMAGE_FORMAT       = png
+-
+-# The tag DOT_PATH can be used to specify the path where the dot tool can be
+-# found. If left blank, it is assumed the dot tool can be found in the path.
+-
+-DOT_PATH               =
+-
+-# The DOTFILE_DIRS tag can be used to specify one or more directories that
+-# contain dot files that are included in the documentation (see the
+-# \dotfile command).
+-
+-DOTFILE_DIRS           =
+-
+-# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+-# nodes that will be shown in the graph. If the number of nodes in a graph
+-# becomes larger than this value, doxygen will truncate the graph, which is
+-# visualized by representing a node as a red box. Note that doxygen if the
+-# number of direct children of the root node in a graph is already larger than
+-# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+-# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+-
+-DOT_GRAPH_MAX_NODES    = 50
+-
+-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+-# graphs generated by dot. A depth value of 3 means that only nodes reachable
+-# from the root by following a path via at most 3 edges will be shown. Nodes
+-# that lay further from the root node will be omitted. Note that setting this
+-# option to 1 or 2 may greatly reduce the computation time needed for large
+-# code bases. Also note that the size of a graph can be further restricted by
+-# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+-
+-MAX_DOT_GRAPH_DEPTH    = 0
+-
+-# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+-# background. This is disabled by default, because dot on Windows does not
+-# seem to support this out of the box. Warning: Depending on the platform used,
+-# enabling this option may lead to badly anti-aliased labels on the edges of
+-# a graph (i.e. they become hard to read).
+-
+-DOT_TRANSPARENT        = NO
+-
+-# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+-# files in one run (i.e. multiple -o and -T options on the command line). This
+-# makes dot run faster, but since only newer versions of dot (>1.8.10)
+-# support this, this feature is disabled by default.
+-
+-DOT_MULTI_TARGETS      = YES
+-
+-# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+-# generate a legend page explaining the meaning of the various boxes and
+-# arrows in the dot generated graphs.
+-
+-GENERATE_LEGEND        = YES
+-
+-# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+-# remove the intermediate dot files that are used to generate
+-# the various graphs.
+-
+-DOT_CLEANUP            = YES
+diff --git a/docs/doxygen/doxyxml/example/aadvark.cc b/docs/doxygen/doxyxml/example/aadvark.cc
+deleted file mode 100644
+index f91c1ba..0000000
+--- docs/doxygen/doxyxml/example/aadvark.cc
++++ /dev/null
+@@ -1,50 +0,0 @@
+-/* -*- c++ -*- */
+-/*
+- * Copyright 2010 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-#include <iostream>
+-#include "aadvark.h"
+-
+-void Aadvark::print() {
+-  std::cout << "aadvark is " << aadvarkness << "/10 aadvarky" << std::endl;
+-}
+-
+-Aadvark::Aadvark(int aaness): aadvarkness(aaness) {}
+-
+-bool aadvarky_enough(Aadvark aad) {
+-  if (aad.get_aadvarkness() > 6)
+-    return true;
+-  else
+-    return false;
+-}
+-
+-int Aadvark::get_aadvarkness() {
+-  return aadvarkness;
+-}
+-
+-int main() {
+-  Aadvark arold = Aadvark(6);
+-  arold.print();
+-  if (aadvarky_enough(arold))
+-    std::cout << "He is aadvarky enough" << std::endl;
+-  else
+-    std::cout << "He is not aadvarky enough" << std::endl;
+-}
+-
+diff --git a/docs/doxygen/doxyxml/example/aadvark.h b/docs/doxygen/doxyxml/example/aadvark.h
+deleted file mode 100644
+index d3c1744..0000000
+--- docs/doxygen/doxyxml/example/aadvark.h
++++ /dev/null
+@@ -1,44 +0,0 @@
+-/* -*- c++ -*- */
+-/*
+- * Copyright 2010 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-#include <iostream>
+-
+-/*!
+- * \brief Models the mammal Aadvark.
+- *
+- * Sadly the model is incomplete and cannot capture all aspects of an aadvark yet.
+- *
+- * This line is uninformative and is only to test line breaks in the comments.
+- */
+-class Aadvark {
+-public:
+-  //! \brief Outputs the vital aadvark statistics.
+-  void print();
+-  //! \param aaness The aadvarkness of an aadvark is a measure of how aadvarky it is.
+-  Aadvark(int aaness);
+-  int get_aadvarkness();
+-private:
+-  int aadvarkness;
+-};
+-
+-bool aadvarky_enough(Aadvark aad);
+-
+-int main();
+diff --git a/docs/doxygen/doxyxml/example/xml/aadvark_8cc.xml b/docs/doxygen/doxyxml/example/xml/aadvark_8cc.xml
+deleted file mode 100644
+index f031e01..0000000
+--- docs/doxygen/doxyxml/example/xml/aadvark_8cc.xml
++++ /dev/null
+@@ -1,88 +0,0 @@
+-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+-<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.6.3">
+-  <compounddef id="aadvark_8cc" kind="file">
+-    <compoundname>aadvark.cc</compoundname>
+-    <includes local="no">iostream</includes>
+-    <includes refid="aadvark_8cc" local="yes">aadvark.h</includes>
+-    <includedby refid="aadvark_8cc" local="yes">aadvark.cc</includedby>
+-    <incdepgraph>
+-      <node id="0">
+-        <label>aadvark.cc</label>
+-        <link refid="aadvark.cc"/>
+-        <childnode refid="1" relation="include">
+-        </childnode>
+-      </node>
+-      <node id="1">
+-        <label>iostream</label>
+-      </node>
+-    </incdepgraph>
+-      <sectiondef kind="func">
+-      <memberdef kind="function" id="aadvark_8cc_1acb52858524210ec6dddc3e16d1e52946" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>bool</type>
+-        <definition>bool aadvarky_enough</definition>
+-        <argsstring>(Aadvark aad)</argsstring>
+-        <name>aadvarky_enough</name>
+-        <param>
+-          <type><ref refid="classAadvark" kindref="compound">Aadvark</ref></type>
+-          <declname>aad</declname>
+-        </param>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" line="10" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="10" bodyend="15"/>
+-      </memberdef>
+-      <memberdef kind="function" id="aadvark_8cc_1ae66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>int</type>
+-        <definition>int main</definition>
+-        <argsstring>()</argsstring>
+-        <name>main</name>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" line="21" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="21" bodyend="28"/>
+-      </memberdef>
+-      </sectiondef>
+-    <briefdescription>
+-    </briefdescription>
+-    <detaileddescription>
+-    </detaileddescription>
+-    <programlisting>
+-<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&lt;iostream&gt;</highlight><highlight class="normal"></highlight></codeline>
+-<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;aadvark.h&quot;</highlight><highlight class="normal"></highlight></codeline>
+-<codeline lineno="3"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="4"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classAadvark_1abd061aa5f998002e72080a34f512a059" kindref="member" tooltip="Outputs the vital aadvark statistics.">Aadvark::print</ref>()<sp/>{</highlight></codeline>
+-<codeline lineno="5"><highlight class="normal"><sp/><sp/>std::cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;aadvark<sp/>is<sp/>&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;<sp/>aadvarkness<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;/10<sp/>aadvarky&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;<sp/>std::endl;</highlight></codeline>
+-<codeline lineno="6"><highlight class="normal">}</highlight></codeline>
+-<codeline lineno="7"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="8"><highlight class="normal"><ref refid="classAadvark_1adf1a4b97a641411a74a04ab312484462" kindref="member">Aadvark::Aadvark</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>aaness):<sp/>aadvarkness(aaness)<sp/>{}</highlight></codeline>
+-<codeline lineno="9"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="10"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>aadvarky_enough(<ref refid="classAadvark" kindref="compound" tooltip="Models the mammal Aadvark.">Aadvark</ref><sp/>aad)<sp/>{</highlight></codeline>
+-<codeline lineno="11"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(aad.get_aadvarkness()<sp/>&gt;<sp/>6)</highlight></codeline>
+-<codeline lineno="12"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
+-<codeline lineno="13"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
+-<codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
+-<codeline lineno="15"><highlight class="normal">}</highlight></codeline>
+-<codeline lineno="16"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="17"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>Aadvark::get_aadvarkness()<sp/>{</highlight></codeline>
+-<codeline lineno="18"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>aadvarkness;</highlight></codeline>
+-<codeline lineno="19"><highlight class="normal">}</highlight></codeline>
+-<codeline lineno="20"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>main()<sp/>{</highlight></codeline>
+-<codeline lineno="22"><highlight class="normal"><sp/><sp/><ref refid="classAadvark" kindref="compound" tooltip="Models the mammal Aadvark.">Aadvark</ref><sp/>arold<sp/>=<sp/><ref refid="classAadvark" kindref="compound" tooltip="Models the mammal Aadvark.">Aadvark</ref>(6);</highlight></codeline>
+-<codeline lineno="23"><highlight class="normal"><sp/><sp/>arold.<ref refid="classAadvark_1abd061aa5f998002e72080a34f512a059" kindref="member" tooltip="Outputs the vital aadvark statistics.">print</ref>();</highlight></codeline>
+-<codeline lineno="24"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(aadvarky_enough(arold))</highlight></codeline>
+-<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/>std::cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;He<sp/>is<sp/>aadvarky<sp/>enough&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;<sp/>std::endl;</highlight></codeline>
+-<codeline lineno="26"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
+-<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/>std::cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;He<sp/>is<sp/>not<sp/>aadvarky<sp/>enough&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;<sp/>std::endl;</highlight></codeline>
+-<codeline lineno="28"><highlight class="normal">}</highlight></codeline>
+-<codeline lineno="29"><highlight class="normal"></highlight></codeline>
+-    </programlisting>
+-    <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc"/>
+-  </compounddef>
+-</doxygen>
+diff --git a/docs/doxygen/doxyxml/example/xml/aadvark_8h.xml b/docs/doxygen/doxyxml/example/xml/aadvark_8h.xml
+deleted file mode 100644
+index a1854b6..0000000
+--- docs/doxygen/doxyxml/example/xml/aadvark_8h.xml
++++ /dev/null
+@@ -1,72 +0,0 @@
+-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+-<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.6.3">
+-  <compounddef id="aadvark_8h" kind="file">
+-    <compoundname>aadvark.h</compoundname>
+-    <includes local="no">iostream</includes>
+-    <incdepgraph>
+-      <node id="3">
+-        <label>aadvark.h</label>
+-        <link refid="aadvark.h"/>
+-        <childnode refid="4" relation="include">
+-        </childnode>
+-      </node>
+-      <node id="4">
+-        <label>iostream</label>
+-      </node>
+-    </incdepgraph>
+-    <innerclass refid="classAadvark" prot="public">Aadvark</innerclass>
+-      <sectiondef kind="func">
+-      <memberdef kind="function" id="aadvark_8h_1acb52858524210ec6dddc3e16d1e52946" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>bool</type>
+-        <definition>bool aadvarky_enough</definition>
+-        <argsstring>(Aadvark aad)</argsstring>
+-        <name>aadvarky_enough</name>
+-        <param>
+-          <type><ref refid="classAadvark" kindref="compound">Aadvark</ref></type>
+-          <declname>aad</declname>
+-        </param>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="21" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="10" bodyend="15"/>
+-      </memberdef>
+-      <memberdef kind="function" id="aadvark_8h_1ae66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>int</type>
+-        <definition>int main</definition>
+-        <argsstring>()</argsstring>
+-        <name>main</name>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="23" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="21" bodyend="28"/>
+-      </memberdef>
+-      </sectiondef>
+-    <briefdescription>
+-    </briefdescription>
+-    <detaileddescription>
+-    </detaileddescription>
+-    <programlisting>
+-<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&lt;iostream&gt;</highlight><highlight class="normal"></highlight></codeline>
+-<codeline lineno="2"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="10" refid="classAadvark" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classAadvark" kindref="compound" tooltip="Models the mammal Aadvark.">Aadvark</ref><sp/>{</highlight></codeline>
+-<codeline lineno="11"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
+-<codeline lineno="13"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classAadvark_1abd061aa5f998002e72080a34f512a059" kindref="member" tooltip="Outputs the vital aadvark statistics.">print</ref>();</highlight></codeline>
+-<codeline lineno="15"><highlight class="normal"><sp/><sp/><ref refid="classAadvark_1adf1a4b97a641411a74a04ab312484462" kindref="member">Aadvark</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>aaness);</highlight></codeline>
+-<codeline lineno="16"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>get_aadvarkness();</highlight></codeline>
+-<codeline lineno="17"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
+-<codeline lineno="18"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>aadvarkness;</highlight></codeline>
+-<codeline lineno="19"><highlight class="normal">};</highlight></codeline>
+-<codeline lineno="20"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>aadvarky_enough(<ref refid="classAadvark" kindref="compound" tooltip="Models the mammal Aadvark.">Aadvark</ref><sp/>aad);</highlight></codeline>
+-<codeline lineno="22"><highlight class="normal"></highlight></codeline>
+-<codeline lineno="23"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>main();</highlight></codeline>
+-    </programlisting>
+-    <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h"/>
+-  </compounddef>
+-</doxygen>
+diff --git a/docs/doxygen/doxyxml/example/xml/classAadvark.xml b/docs/doxygen/doxyxml/example/xml/classAadvark.xml
+deleted file mode 100644
+index 54fe8b3..0000000
+--- docs/doxygen/doxyxml/example/xml/classAadvark.xml
++++ /dev/null
+@@ -1,86 +0,0 @@
+-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+-<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.6.3">
+-  <compounddef id="classAadvark" kind="class" prot="public">
+-    <compoundname>Aadvark</compoundname>
+-    <includes refid="aadvark_8h" local="no">aadvark.h</includes>
+-      <sectiondef kind="private-attrib">
+-      <memberdef kind="variable" id="classAadvark_1ab79eb58d7bb9d5ddfa5d6f783836cab9" prot="private" static="no" mutable="no">
+-        <type>int</type>
+-        <definition>int Aadvark::aadvarkness</definition>
+-        <argsstring></argsstring>
+-        <name>aadvarkness</name>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="18" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" bodystart="18" bodyend="-1"/>
+-      </memberdef>
+-      </sectiondef>
+-      <sectiondef kind="public-func">
+-      <memberdef kind="function" id="classAadvark_1abd061aa5f998002e72080a34f512a059" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>void</type>
+-        <definition>void Aadvark::print</definition>
+-        <argsstring>()</argsstring>
+-        <name>print</name>
+-        <briefdescription>
+-<para>Outputs the vital aadvark statistics. </para>        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="13" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="4" bodyend="6"/>
+-      </memberdef>
+-      <memberdef kind="function" id="classAadvark_1adf1a4b97a641411a74a04ab312484462" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type></type>
+-        <definition>Aadvark::Aadvark</definition>
+-        <argsstring>(int aaness)</argsstring>
+-        <name>Aadvark</name>
+-        <param>
+-          <type>int</type>
+-          <declname>aaness</declname>
+-        </param>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-<para><parameterlist kind="param"><parameteritem>
+-<parameternamelist>
+-<parametername>aaness</parametername>
+-</parameternamelist>
+-<parameterdescription>
+-<para>The aadvarkness of an aadvark is a measure of how aadvarky it is. </para></parameterdescription>
+-</parameteritem>
+-</parameterlist>
+-</para>        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="15" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="8" bodyend="8"/>
+-      </memberdef>
+-      <memberdef kind="function" id="classAadvark_1affd2ada0a85807efcbe26615a848f53e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+-        <type>int</type>
+-        <definition>int Aadvark::get_aadvarkness</definition>
+-        <argsstring>()</argsstring>
+-        <name>get_aadvarkness</name>
+-        <briefdescription>
+-        </briefdescription>
+-        <detaileddescription>
+-        </detaileddescription>
+-        <inbodydescription>
+-        </inbodydescription>
+-        <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="16" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.cc" bodystart="17" bodyend="19"/>
+-      </memberdef>
+-      </sectiondef>
+-    <briefdescription>
+-<para>Models the mammal <ref refid="classAadvark" kindref="compound">Aadvark</ref>. </para>    </briefdescription>
+-    <detaileddescription>
+-<para>Sadly the model is incomplete and cannot capture all aspects of an aadvark yet.</para><para>This line is uninformative and is only to test line breaks in the comments. </para>    </detaileddescription>
+-    <location file="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" line="10" bodyfile="/home/ben/gnuradio/gnuradio-core/src/python/gnuradio/utils/doxyxml/example/aadvark.h" bodystart="10" bodyend="19"/>
+-    <listofallmembers>
+-      <member refid="classAadvark_1adf1a4b97a641411a74a04ab312484462" prot="public" virt="non-virtual"><scope>Aadvark</scope><name>Aadvark</name></member>
+-      <member refid="classAadvark_1ab79eb58d7bb9d5ddfa5d6f783836cab9" prot="private" virt="non-virtual"><scope>Aadvark</scope><name>aadvarkness</name></member>
+-      <member refid="classAadvark_1affd2ada0a85807efcbe26615a848f53e" prot="public" virt="non-virtual"><scope>Aadvark</scope><name>get_aadvarkness</name></member>
+-      <member refid="classAadvark_1abd061aa5f998002e72080a34f512a059" prot="public" virt="non-virtual"><scope>Aadvark</scope><name>print</name></member>
+-    </listofallmembers>
+-  </compounddef>
+-</doxygen>
+diff --git a/docs/doxygen/doxyxml/example/xml/combine.xslt b/docs/doxygen/doxyxml/example/xml/combine.xslt
+deleted file mode 100644
+index 6de203a..0000000
+--- docs/doxygen/doxyxml/example/xml/combine.xslt
++++ /dev/null
+@@ -1,15 +0,0 @@
+-<!-- XSLT script to combine the generated output into a single file.
+-     If you have xsltproc you could use:
+-     xsltproc combine.xslt index.xml >all.xml
+--->
+-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+-  <xsl:output method="xml" version="1.0" indent="yes" standalone="yes" />
+-  <xsl:template match="/">
+-    <doxygen version="{doxygenindex/@version}">
+-      <!-- Load all doxgen generated xml files -->
+-      <xsl:for-each select="doxygenindex/compound">
+-        <xsl:copy-of select="document( concat( @refid, '.xml' ) )/doxygen/*" />
+-      </xsl:for-each>
+-    </doxygen>
+-  </xsl:template>
+-</xsl:stylesheet>
+diff --git a/docs/doxygen/doxyxml/example/xml/compound.xsd b/docs/doxygen/doxyxml/example/xml/compound.xsd
+deleted file mode 100644
+index 5bb5670..0000000
+--- docs/doxygen/doxyxml/example/xml/compound.xsd
++++ /dev/null
+@@ -1,814 +0,0 @@
+-<?xml version='1.0' encoding='utf-8' ?>
+-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+-  <xsd:element name="doxygen" type="DoxygenType"/>
+-
+-  <!-- Complex types -->
+-
+-  <xsd:complexType name="DoxygenType">
+-    <xsd:sequence maxOccurs="unbounded">
+-      <xsd:element name="compounddef" type="compounddefType" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="version" type="DoxVersionNumber" use="required" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="compounddefType">
+-    <xsd:sequence>
+-      <xsd:element name="compoundname" type="xsd:string"/>
+-      <xsd:element name="title" type="xsd:string" minOccurs="0" />
+-      <xsd:element name="basecompoundref" type="compoundRefType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="derivedcompoundref" type="compoundRefType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="includes" type="incType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="includedby" type="incType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="incdepgraph" type="graphType" minOccurs="0" />
+-      <xsd:element name="invincdepgraph" type="graphType" minOccurs="0" />
+-      <xsd:element name="innerdir" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="innerfile" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="innerclass" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="innernamespace" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="innerpage" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="innergroup" type="refType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="templateparamlist" type="templateparamlistType" minOccurs="0" />
+-      <xsd:element name="sectiondef" type="sectiondefType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="inheritancegraph" type="graphType" minOccurs="0" />
+-      <xsd:element name="collaborationgraph" type="graphType" minOccurs="0" />
+-      <xsd:element name="programlisting" type="listingType" minOccurs="0" />
+-      <xsd:element name="location" type="locationType" minOccurs="0" />
+-      <xsd:element name="listofallmembers" type="listofallmembersType" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-    <xsd:attribute name="kind" type="DoxCompoundKind" />
+-    <xsd:attribute name="prot" type="DoxProtectionKind" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="listofallmembersType">
+-    <xsd:sequence>
+-      <xsd:element name="member" type="memberRefType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="memberRefType">
+-    <xsd:sequence>
+-      <xsd:element name="scope" />
+-      <xsd:element name="name" />
+-    </xsd:sequence>
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="prot" type="DoxProtectionKind" />
+-    <xsd:attribute name="virt" type="DoxVirtualKind" />
+-    <xsd:attribute name="ambiguityscope" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="compoundRefType" mixed="true">
+-    <xsd:simpleContent>
+-      <xsd:extension base="xsd:string">
+-        <xsd:attribute name="refid" type="xsd:string" use="optional" />
+-        <xsd:attribute name="prot" type="DoxProtectionKind" />
+-        <xsd:attribute name="virt" type="DoxVirtualKind" />
+-      </xsd:extension>
+-    </xsd:simpleContent>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="reimplementType" mixed="true">
+-    <xsd:simpleContent>
+-      <xsd:extension base="xsd:string">
+-        <xsd:attribute name="refid" type="xsd:string" />
+-      </xsd:extension>
+-    </xsd:simpleContent>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="incType" mixed="true">
+-    <xsd:simpleContent>
+-      <xsd:extension base="xsd:string">
+-        <xsd:attribute name="refid" type="xsd:string" />
+-        <xsd:attribute name="local" type="DoxBool" />
+-      </xsd:extension>
+-    </xsd:simpleContent>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="refType" mixed="true">
+-    <xsd:simpleContent>
+-      <xsd:extension base="xsd:string">
+-        <xsd:attribute name="refid" type="xsd:string" />
+-        <xsd:attribute name="prot" type="DoxProtectionKind" use="optional"/>
+-      </xsd:extension>
+-    </xsd:simpleContent>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="refTextType" mixed="true">
+-    <xsd:simpleContent>
+-      <xsd:extension base="xsd:string">
+-       <xsd:attribute name="refid" type="xsd:string" />
+-       <xsd:attribute name="kindref" type="DoxRefKind" />
+-       <xsd:attribute name="external" type="xsd:string" use="optional"/>
+-       <xsd:attribute name="tooltip" type="xsd:string" use="optional"/>
+-      </xsd:extension>
+-    </xsd:simpleContent>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="sectiondefType">
+-    <xsd:sequence>
+-      <xsd:element name="header" type="xsd:string" minOccurs="0" />
+-      <xsd:element name="description" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="memberdef" type="memberdefType" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="kind" type="DoxSectionKind" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="memberdefType">
+-    <xsd:sequence>
+-      <xsd:element name="templateparamlist" type="templateparamlistType" minOccurs="0" />
+-      <xsd:element name="type" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="definition" minOccurs="0" />
+-      <xsd:element name="argsstring" minOccurs="0" />
+-      <xsd:element name="name" />
+-      <xsd:element name="read" minOccurs="0" />
+-      <xsd:element name="write" minOccurs="0" />
+-      <xsd:element name="bitfield" minOccurs="0" />
+-      <xsd:element name="reimplements" type="reimplementType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="reimplementedby" type="reimplementType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="enumvalue" type="enumvalueType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="initializer" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="exceptions" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="inbodydescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="location" type="locationType" />
+-      <xsd:element name="references" type="referenceType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="referencedby" type="referenceType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="kind" type="DoxMemberKind" />
+-    <xsd:attribute name="id" type="xsd:string" />
+-    <xsd:attribute name="prot" type="DoxProtectionKind" />
+-    <xsd:attribute name="static" type="DoxBool" />
+-    <xsd:attribute name="const" type="DoxBool" />
+-    <xsd:attribute name="explicit" type="DoxBool" />
+-    <xsd:attribute name="inline" type="DoxBool" />
+-    <xsd:attribute name="virt" type="DoxVirtualKind" />
+-    <xsd:attribute name="volatile" type="DoxBool" />
+-    <xsd:attribute name="mutable" type="DoxBool" />
+-    <!-- Qt property -->
+-    <xsd:attribute name="readable" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="writable" type="DoxBool" use="optional"/>
+-    <!-- C++/CLI variable -->
+-    <xsd:attribute name="initonly" type="DoxBool" use="optional"/>
+-    <!-- C++/CLI and C# property -->
+-    <xsd:attribute name="settable" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="gettable" type="DoxBool" use="optional"/>
+-    <!-- C++/CLI function -->
+-    <xsd:attribute name="final" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="sealed" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="new" type="DoxBool" use="optional"/>
+-    <!-- C++/CLI event -->
+-    <xsd:attribute name="add" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="remove" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="raise" type="DoxBool" use="optional"/>
+-    <!-- Objective-C 2.0 protocol method -->
+-    <xsd:attribute name="optional" type="DoxBool" use="optional"/>
+-    <xsd:attribute name="required" type="DoxBool" use="optional"/>
+-    <!-- Objective-C 2.0 property accessor -->
+-    <xsd:attribute name="accessor" type="DoxAccessor" use="optional"/>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="descriptionType" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="xsd:string" minOccurs="0"/>
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalType" minOccurs="0" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="enumvalueType" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="name" />
+-      <xsd:element name="initializer" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+-      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-    <xsd:attribute name="prot" type="DoxProtectionKind" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="templateparamlistType">
+-    <xsd:sequence>
+-      <xsd:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="paramType">
+-    <xsd:sequence>
+-      <xsd:element name="type" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="declname" minOccurs="0" />
+-      <xsd:element name="defname" minOccurs="0" />
+-      <xsd:element name="array" minOccurs="0" />
+-      <xsd:element name="defval" type="linkedTextType" minOccurs="0" />
+-      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="linkedTextType" mixed="true">
+-    <xsd:sequence>
+-    <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="graphType">
+-    <xsd:sequence>
+-      <xsd:element name="node" type="nodeType" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="nodeType">
+-    <xsd:sequence>
+-      <xsd:element name="label" />
+-      <xsd:element name="link" type="linkType" minOccurs="0" />
+-      <xsd:element name="childnode" type="childnodeType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="childnodeType">
+-    <xsd:sequence>
+-      <xsd:element name="edgelabel" minOccurs="0" maxOccurs="unbounded"/>
+-    </xsd:sequence>
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="relation" type="DoxGraphRelation" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="linkType">
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="external" type="xsd:string" use="optional"/>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="listingType">
+-    <xsd:sequence>
+-      <xsd:element name="codeline" type="codelineType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="codelineType">
+-    <xsd:sequence>
+-      <xsd:element name="highlight" type="highlightType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="lineno" type="xsd:integer" />
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="refkind" type="DoxRefKind" />
+-    <xsd:attribute name="external" type="DoxBool" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="highlightType" mixed="true">
+-    <xsd:choice minOccurs="0" maxOccurs="unbounded">
+-      <xsd:element name="sp" />
+-      <xsd:element name="ref" type="refTextType" />
+-    </xsd:choice>
+-    <xsd:attribute name="class" type="DoxHighlightClass" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="referenceType" mixed="true">
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="compoundref" type="xsd:string" use="optional" />
+-    <xsd:attribute name="startline" type="xsd:integer" />
+-    <xsd:attribute name="endline" type="xsd:integer" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="locationType">
+-    <xsd:attribute name="file" type="xsd:string" />
+-    <xsd:attribute name="line" type="xsd:integer" />
+-    <xsd:attribute name="bodyfile" type="xsd:string" />
+-    <xsd:attribute name="bodystart" type="xsd:integer" />
+-    <xsd:attribute name="bodyend" type="xsd:integer" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docSect1Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="xsd:string" />
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalS1Type" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docSect2Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="xsd:string" />
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docSect3Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="xsd:string" />
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docSect4Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="xsd:string" />
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docInternalType" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docInternalS1Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docInternalS2Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docInternalS3Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect3" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docInternalS4Type" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:group name="docTitleCmdGroup">
+-    <xsd:choice>
+-      <xsd:element name="ulink" type="docURLLink" />
+-      <xsd:element name="bold" type="docMarkupType" />
+-      <xsd:element name="emphasis" type="docMarkupType" />
+-      <xsd:element name="computeroutput" type="docMarkupType" />
+-      <xsd:element name="subscript" type="docMarkupType" />
+-      <xsd:element name="superscript" type="docMarkupType" />
+-      <xsd:element name="center" type="docMarkupType" />
+-      <xsd:element name="small" type="docMarkupType" />
+-      <xsd:element name="htmlonly" type="xsd:string" />
+-      <xsd:element name="latexonly" type="xsd:string" />
+-      <xsd:element name="dot" type="xsd:string" />
+-      <xsd:element name="anchor" type="docAnchorType" />
+-      <xsd:element name="formula" type="docFormulaType" />
+-      <xsd:element name="ref" type="docRefTextType" />
+-      <xsd:element name="copy" type="docEmptyType" />
+-      <xsd:element name="trademark" type="docEmptyType" />
+-      <xsd:element name="registered" type="docEmptyType" />
+-      <xsd:element name="lsquo" type="docEmptyType" />
+-      <xsd:element name="rsquo" type="docEmptyType" />
+-      <xsd:element name="ldquo" type="docEmptyType" />
+-      <xsd:element name="rdquo" type="docEmptyType" />
+-      <xsd:element name="ndash" type="docEmptyType" />
+-      <xsd:element name="mdash" type="docEmptyType" />
+-      <xsd:element name="umlaut" type="docCharType" />
+-      <xsd:element name="acute" type="docCharType" />
+-      <xsd:element name="grave" type="docCharType" />
+-      <xsd:element name="circ" type="docCharType" />
+-      <xsd:element name="slash" type="docCharType" />
+-      <xsd:element name="tilde" type="docCharType" />
+-      <xsd:element name="cedil" type="docCharType" />
+-      <xsd:element name="ring" type="docCharType" />
+-      <xsd:element name="szlig" type="docEmptyType" />
+-      <xsd:element name="nonbreakablespace" type="docEmptyType" />
+-    </xsd:choice>
+-  </xsd:group>
+-
+-  <xsd:complexType name="docTitleType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-  </xsd:complexType>
+-
+-  <xsd:group name="docCmdGroup">
+-    <xsd:choice>
+-      <xsd:group ref="docTitleCmdGroup"/>
+-      <xsd:element name="linebreak" type="docEmptyType" />
+-      <xsd:element name="hruler" type="docEmptyType" />
+-      <xsd:element name="preformatted" type="docMarkupType" />
+-      <xsd:element name="programlisting" type="listingType" />
+-      <xsd:element name="verbatim" type="xsd:string" />
+-      <xsd:element name="indexentry" type="docIndexEntryType" />
+-      <xsd:element name="orderedlist" type="docListType" />
+-      <xsd:element name="itemizedlist" type="docListType" />
+-      <xsd:element name="simplesect" type="docSimpleSectType" />
+-      <xsd:element name="title" type="docTitleType" />
+-      <xsd:element name="variablelist" type="docVariableListType" />
+-      <xsd:element name="table" type="docTableType" />
+-      <xsd:element name="heading" type="docHeadingType" />
+-      <xsd:element name="image" type="docImageType" />
+-      <xsd:element name="dotfile" type="docDotFileType" />
+-      <xsd:element name="toclist" type="docTocListType" />
+-      <xsd:element name="language" type="docLanguageType" />
+-      <xsd:element name="parameterlist" type="docParamListType" />
+-      <xsd:element name="xrefsect" type="docXRefSectType" />
+-      <xsd:element name="copydoc" type="docCopyType" />
+-    </xsd:choice>
+-  </xsd:group>
+-
+-  <xsd:complexType name="docParaType" mixed="true">
+-    <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docMarkupType" mixed="true">
+-    <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docURLLink" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="url" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docAnchorType" mixed="true">
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docFormulaType" mixed="true">
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docIndexEntryType">
+-    <xsd:sequence>
+-      <xsd:element name="primaryie" type="xsd:string" />
+-      <xsd:element name="secondaryie" type="xsd:string" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docListType">
+-    <xsd:sequence>
+-      <xsd:element name="listitem" type="docListItemType" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docListItemType">
+-    <xsd:sequence>
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docSimpleSectType">
+-    <xsd:sequence>
+-      <xsd:element name="title" type="docTitleType" minOccurs="0" />
+-      <xsd:sequence minOccurs="0" maxOccurs="unbounded">
+-        <xsd:element name="para" type="docParaType" minOccurs="1" maxOccurs="unbounded" />
+-        <xsd:element name="simplesectsep" type="docEmptyType" minOccurs="0"/>
+-      </xsd:sequence>
+-    </xsd:sequence>
+-    <xsd:attribute name="kind" type="DoxSimpleSectKind" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docVarListEntryType">
+-    <xsd:sequence>
+-      <xsd:element name="term" type="docTitleType" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:group name="docVariableListGroup">
+-    <xsd:sequence>
+-      <xsd:element name="varlistentry" type="docVarListEntryType" />
+-      <xsd:element name="listitem" type="docListItemType" />
+-    </xsd:sequence>
+-  </xsd:group>
+-
+-  <xsd:complexType name="docVariableListType">
+-    <xsd:sequence>
+-      <xsd:group ref="docVariableListGroup" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docRefTextType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="refid" type="xsd:string" />
+-    <xsd:attribute name="kindref" type="DoxRefKind" />
+-    <xsd:attribute name="external" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docTableType">
+-    <xsd:sequence>
+-      <xsd:element name="row" type="docRowType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="caption" type="docCaptionType" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="rows" type="xsd:integer" />
+-    <xsd:attribute name="cols" type="xsd:integer" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docRowType">
+-    <xsd:sequence>
+-      <xsd:element name="entry" type="docEntryType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docEntryType">
+-    <xsd:sequence>
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="thead" type="DoxBool" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docCaptionType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docHeadingType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="level" type="xsd:integer" /> <!-- todo: range 1-6 -->
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docImageType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="type" type="DoxImageKind" />
+-    <xsd:attribute name="name" type="xsd:string" />
+-    <xsd:attribute name="width" type="xsd:string" />
+-    <xsd:attribute name="height" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docDotFileType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="name" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docTocItemType" mixed="true">
+-    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docTocListType">
+-    <xsd:sequence>
+-      <xsd:element name="tocitem" type="docTocItemType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docLanguageType">
+-    <xsd:sequence>
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="langid" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docParamListType">
+-    <xsd:sequence>
+-      <xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-    <xsd:attribute name="kind" type="DoxParamListKind" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docParamListItem">
+-    <xsd:sequence>
+-      <xsd:element name="parameternamelist" type="docParamNameList" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="parameterdescription" type="descriptionType" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docParamNameList">
+-    <xsd:sequence>
+-      <xsd:element name="parametername" type="docParamName" minOccurs="0" maxOccurs="unbounded" />
+-    </xsd:sequence>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docParamName" mixed="true">
+-    <xsd:sequence>
+-      <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
+-    </xsd:sequence>
+-    <xsd:attribute name="direction" type="DoxParamDir" use="optional" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docXRefSectType">
+-    <xsd:sequence>
+-      <xsd:element name="xreftitle" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="xrefdescription" type="descriptionType" />
+-    </xsd:sequence>
+-    <xsd:attribute name="id" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docCopyType">
+-    <xsd:sequence>
+-      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+-      <xsd:element name="internal" type="docInternalType" minOccurs="0" />
+-    </xsd:sequence>
+-    <xsd:attribute name="link" type="xsd:string" />
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docCharType">
+-    <xsd:attribute name="char" type="DoxCharRange"/>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="docEmptyType"/>
+-
+-  <!-- Simple types -->
+-
+-  <xsd:simpleType name="DoxBool">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="yes" />
+-      <xsd:enumeration value="no" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxGraphRelation">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="include" />
+-      <xsd:enumeration value="usage" />
+-      <xsd:enumeration value="template-instance" />
+-      <xsd:enumeration value="public-inheritance" />
+-      <xsd:enumeration value="protected-inheritance" />
+-      <xsd:enumeration value="private-inheritance" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxRefKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="compound" />
+-      <xsd:enumeration value="member" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxMemberKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="define" />
+-      <xsd:enumeration value="property" />
+-      <xsd:enumeration value="event" />
+-      <xsd:enumeration value="variable" />
+-      <xsd:enumeration value="typedef" />
+-      <xsd:enumeration value="enum" />
+-      <xsd:enumeration value="function" />
+-      <xsd:enumeration value="signal" />
+-      <xsd:enumeration value="prototype" />
+-      <xsd:enumeration value="friend" />
+-      <xsd:enumeration value="dcop" />
+-      <xsd:enumeration value="slot" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxProtectionKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="public" />
+-      <xsd:enumeration value="protected" />
+-      <xsd:enumeration value="private" />
+-      <xsd:enumeration value="package" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxVirtualKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="non-virtual" />
+-      <xsd:enumeration value="virtual" />
+-      <xsd:enumeration value="pure-virtual" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxCompoundKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="class" />
+-      <xsd:enumeration value="struct" />
+-      <xsd:enumeration value="union" />
+-      <xsd:enumeration value="interface" />
+-      <xsd:enumeration value="protocol" />
+-      <xsd:enumeration value="category" />
+-      <xsd:enumeration value="exception" />
+-      <xsd:enumeration value="file" />
+-      <xsd:enumeration value="namespace" />
+-      <xsd:enumeration value="group" />
+-      <xsd:enumeration value="page" />
+-      <xsd:enumeration value="example" />
+-      <xsd:enumeration value="dir" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxSectionKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="user-defined" />
+-      <xsd:enumeration value="public-type" />
+-      <xsd:enumeration value="public-func" />
+-      <xsd:enumeration value="public-attrib" />
+-      <xsd:enumeration value="public-slot" />
+-      <xsd:enumeration value="signal" />
+-      <xsd:enumeration value="dcop-func" />
+-      <xsd:enumeration value="property" />
+-      <xsd:enumeration value="event" />
+-      <xsd:enumeration value="public-static-func" />
+-      <xsd:enumeration value="public-static-attrib" />
+-      <xsd:enumeration value="protected-type" />
+-      <xsd:enumeration value="protected-func" />
+-      <xsd:enumeration value="protected-attrib" />
+-      <xsd:enumeration value="protected-slot" />
+-      <xsd:enumeration value="protected-static-func" />
+-      <xsd:enumeration value="protected-static-attrib" />
+-      <xsd:enumeration value="package-type" />
+-      <xsd:enumeration value="package-func" />
+-      <xsd:enumeration value="package-attrib" />
+-      <xsd:enumeration value="package-static-func" />
+-      <xsd:enumeration value="package-static-attrib" />
+-      <xsd:enumeration value="private-type" />
+-      <xsd:enumeration value="private-func" />
+-      <xsd:enumeration value="private-attrib" />
+-      <xsd:enumeration value="private-slot" />
+-      <xsd:enumeration value="private-static-func" />
+-      <xsd:enumeration value="private-static-attrib" />
+-      <xsd:enumeration value="friend" />
+-      <xsd:enumeration value="related" />
+-      <xsd:enumeration value="define" />
+-      <xsd:enumeration value="prototype" />
+-      <xsd:enumeration value="typedef" />
+-      <xsd:enumeration value="enum" />
+-      <xsd:enumeration value="func" />
+-      <xsd:enumeration value="var" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxHighlightClass">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="comment" />
+-      <xsd:enumeration value="normal" />
+-      <xsd:enumeration value="preprocessor" />
+-      <xsd:enumeration value="keyword" />
+-      <xsd:enumeration value="keywordtype" />
+-      <xsd:enumeration value="keywordflow" />
+-      <xsd:enumeration value="stringliteral" />
+-      <xsd:enumeration value="charliteral" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxSimpleSectKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="see" />
+-      <xsd:enumeration value="return" />
+-      <xsd:enumeration value="author" />
+-      <xsd:enumeration value="authors" />
+-      <xsd:enumeration value="version" />
+-      <xsd:enumeration value="since" />
+-      <xsd:enumeration value="date" />
+-      <xsd:enumeration value="note" />
+-      <xsd:enumeration value="warning" />
+-      <xsd:enumeration value="pre" />
+-      <xsd:enumeration value="post" />
+-      <xsd:enumeration value="invariant" />
+-      <xsd:enumeration value="remark" />
+-      <xsd:enumeration value="attention" />
+-      <xsd:enumeration value="par" />
+-      <xsd:enumeration value="rcs" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxVersionNumber">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:pattern value="\d+\.\d+.*" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxImageKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="html" />
+-      <xsd:enumeration value="latex" />
+-      <xsd:enumeration value="rtf" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxParamListKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="param" />
+-      <xsd:enumeration value="retval" />
+-      <xsd:enumeration value="exception" />
+-      <xsd:enumeration value="templateparam" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxCharRange">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:pattern value="[aeiouncAEIOUNC]" />
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxParamDir">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="in"/>
+-      <xsd:enumeration value="out"/>
+-      <xsd:enumeration value="inout"/>
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="DoxAccessor">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="retain"/>
+-      <xsd:enumeration value="copy"/>
+-      <xsd:enumeration value="assign"/>
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-</xsd:schema>
+-
+diff --git a/docs/doxygen/doxyxml/example/xml/index.xml b/docs/doxygen/doxyxml/example/xml/index.xml
+deleted file mode 100644
+index 13fd53f..0000000
+--- docs/doxygen/doxyxml/example/xml/index.xml
++++ /dev/null
+@@ -1,17 +0,0 @@
+-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+-<doxygenindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="index.xsd" version="1.6.3">
+-  <compound refid="classAadvark" kind="class"><name>Aadvark</name>
+-    <member refid="classAadvark_1ab79eb58d7bb9d5ddfa5d6f783836cab9" kind="variable"><name>aadvarkness</name></member>
+-    <member refid="classAadvark_1abd061aa5f998002e72080a34f512a059" kind="function"><name>print</name></member>
+-    <member refid="classAadvark_1adf1a4b97a641411a74a04ab312484462" kind="function"><name>Aadvark</name></member>
+-    <member refid="classAadvark_1affd2ada0a85807efcbe26615a848f53e" kind="function"><name>get_aadvarkness</name></member>
+-  </compound>
+-  <compound refid="aadvark_8cc" kind="file"><name>aadvark.cc</name>
+-    <member refid="aadvark_8cc_1acb52858524210ec6dddc3e16d1e52946" kind="function"><name>aadvarky_enough</name></member>
+-    <member refid="aadvark_8cc_1ae66f6b31b5ad750f1fe042a706a4e3d4" kind="function"><name>main</name></member>
+-  </compound>
+-  <compound refid="aadvark_8h" kind="file"><name>aadvark.h</name>
+-    <member refid="aadvark_8h_1acb52858524210ec6dddc3e16d1e52946" kind="function"><name>aadvarky_enough</name></member>
+-    <member refid="aadvark_8h_1ae66f6b31b5ad750f1fe042a706a4e3d4" kind="function"><name>main</name></member>
+-  </compound>
+-</doxygenindex>
+diff --git a/docs/doxygen/doxyxml/example/xml/index.xsd b/docs/doxygen/doxyxml/example/xml/index.xsd
+deleted file mode 100644
+index bfe960c..0000000
+--- docs/doxygen/doxyxml/example/xml/index.xsd
++++ /dev/null
+@@ -1,66 +0,0 @@
+-<?xml version='1.0' encoding='utf-8' ?>
+-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+-  <xsd:element name="doxygenindex" type="DoxygenType"/>
+-
+-  <xsd:complexType name="DoxygenType">
+-    <xsd:sequence>
+-      <xsd:element name="compound" type="CompoundType" minOccurs="0" maxOccurs="unbounded"/>
+-    </xsd:sequence>
+-    <xsd:attribute name="version" type="xsd:string" use="required"/>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="CompoundType">
+-    <xsd:sequence>
+-      <xsd:element name="name" type="xsd:string"/>
+-      <xsd:element name="member" type="MemberType" minOccurs="0" maxOccurs="unbounded"/>
+-    </xsd:sequence>
+-    <xsd:attribute name="refid" type="xsd:string" use="required"/>
+-    <xsd:attribute name="kind" type="CompoundKind" use="required"/>
+-  </xsd:complexType>
+-
+-  <xsd:complexType name="MemberType">
+-    <xsd:sequence>
+-      <xsd:element name="name" type="xsd:string"/>
+-    </xsd:sequence>
+-    <xsd:attribute name="refid" type="xsd:string" use="required"/>
+-    <xsd:attribute name="kind" type="MemberKind" use="required"/>
+-  </xsd:complexType>
+-
+-  <xsd:simpleType name="CompoundKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="class"/>
+-      <xsd:enumeration value="struct"/>
+-      <xsd:enumeration value="union"/>
+-      <xsd:enumeration value="interface"/>
+-      <xsd:enumeration value="protocol"/>
+-      <xsd:enumeration value="category"/>
+-      <xsd:enumeration value="exception"/>
+-      <xsd:enumeration value="file"/>
+-      <xsd:enumeration value="namespace"/>
+-      <xsd:enumeration value="group"/>
+-      <xsd:enumeration value="page"/>
+-      <xsd:enumeration value="example"/>
+-      <xsd:enumeration value="dir"/>
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-  <xsd:simpleType name="MemberKind">
+-    <xsd:restriction base="xsd:string">
+-      <xsd:enumeration value="define"/>
+-      <xsd:enumeration value="property"/>
+-      <xsd:enumeration value="event"/>
+-      <xsd:enumeration value="variable"/>
+-      <xsd:enumeration value="typedef"/>
+-      <xsd:enumeration value="enum"/>
+-      <xsd:enumeration value="enumvalue"/>
+-      <xsd:enumeration value="function"/>
+-      <xsd:enumeration value="signal"/>
+-      <xsd:enumeration value="prototype"/>
+-      <xsd:enumeration value="friend"/>
+-      <xsd:enumeration value="dcop"/>
+-      <xsd:enumeration value="slot"/>
+-    </xsd:restriction>
+-  </xsd:simpleType>
+-
+-</xsd:schema>
+-
+diff --git a/docs/doxygen/doxyxml/generated/__init__.py b/docs/doxygen/doxyxml/generated/__init__.py
+index 3982397..23095c1 100644
+--- docs/doxygen/doxyxml/generated/__init__.py
++++ docs/doxygen/doxyxml/generated/__init__.py
+@@ -5,3 +5,4 @@ These do the real work of parsing the doxygen xml files but the
+ resultant classes are not very friendly to navigate so the rest of the
+ doxyxml module processes them further.
+ """
++from __future__ import unicode_literals
+diff --git a/docs/doxygen/doxyxml/generated/compound.py b/docs/doxygen/doxyxml/generated/compound.py
+index 1522ac2..acfa0dd 100644
+--- docs/doxygen/doxyxml/generated/compound.py
++++ docs/doxygen/doxyxml/generated/compound.py
+@@ -3,15 +3,17 @@
+ """
+ Generated Mon Feb  9 19:08:05 2009 by generateDS.py.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
++
+ 
+-from string import lower as str_lower
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
+ import sys
+ 
+-import compoundsuper as supermod
+-from compoundsuper import MixedContainer
++from . import compoundsuper as supermod
++from .compoundsuper import MixedContainer
+ 
+ 
+ class DoxygenTypeSub(supermod.DoxygenType):
+diff --git a/docs/doxygen/doxyxml/generated/compoundsuper.py b/docs/doxygen/doxyxml/generated/compoundsuper.py
+index 6255dda..6e984e1 100644
+--- docs/doxygen/doxyxml/generated/compoundsuper.py
++++ docs/doxygen/doxyxml/generated/compoundsuper.py
+@@ -4,12 +4,17 @@
+ # Generated Thu Jun 11 18:44:25 2009 by generateDS.py.
+ #
+ 
++from __future__ import print_function
++from __future__ import unicode_literals
++
+ import sys
+-import getopt
+-from string import lower as str_lower
++
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
++import six
++
++
+ #
+ # User methods
+ #
+@@ -19,9 +24,9 @@ from xml.dom import Node
+ 
+ try:
+     from generatedssuper import GeneratedsSuper
+-except ImportError, exp:
++except ImportError as exp:
+ 
+-    class GeneratedsSuper:
++    class GeneratedsSuper(object):
+         def format_string(self, input_data, input_name=''):
+             return input_data
+         def format_integer(self, input_data, input_name=''):
+@@ -64,7 +69,7 @@ def showIndent(outfile, level):
+         outfile.write('    ')
+ 
+ def quote_xml(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -72,7 +77,7 @@ def quote_xml(inStr):
+     return s1
+ 
+ def quote_attrib(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -102,7 +107,7 @@ def quote_python(inStr):
+             return '"""%s"""' % s1
+ 
+ 
+-class MixedContainer:
++class MixedContainer(object):
+     # Constants for category:
+     CategoryNone = 0
+     CategoryText = 1
+@@ -4221,7 +4226,7 @@ class codelineType(GeneratedsSuper):
+         if attrs.get('lineno'):
+             try:
+                 self.lineno = int(attrs.get('lineno').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (lineno): %s' % exp)
+         if attrs.get('refkind'):
+             self.refkind = attrs.get('refkind').value
+@@ -4504,12 +4509,12 @@ class referenceType(GeneratedsSuper):
+         if attrs.get('endline'):
+             try:
+                 self.endline = int(attrs.get('endline').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (endline): %s' % exp)
+         if attrs.get('startline'):
+             try:
+                 self.startline = int(attrs.get('startline').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (startline): %s' % exp)
+         if attrs.get('refid'):
+             self.refid = attrs.get('refid').value
+@@ -4627,17 +4632,17 @@ class locationType(GeneratedsSuper):
+         if attrs.get('bodystart'):
+             try:
+                 self.bodystart = int(attrs.get('bodystart').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (bodystart): %s' % exp)
+         if attrs.get('line'):
+             try:
+                 self.line = int(attrs.get('line').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (line): %s' % exp)
+         if attrs.get('bodyend'):
+             try:
+                 self.bodyend = int(attrs.get('bodyend').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (bodyend): %s' % exp)
+         if attrs.get('bodyfile'):
+             self.bodyfile = attrs.get('bodyfile').value
+@@ -6778,12 +6783,12 @@ class docTableType(GeneratedsSuper):
+         if attrs.get('rows'):
+             try:
+                 self.rows = int(attrs.get('rows').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (rows): %s' % exp)
+         if attrs.get('cols'):
+             try:
+                 self.cols = int(attrs.get('cols').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (cols): %s' % exp)
+     def buildChildren(self, child_, nodeName_):
+         if child_.nodeType == Node.ELEMENT_NODE and \
+@@ -7108,7 +7113,7 @@ class docHeadingType(GeneratedsSuper):
+         if attrs.get('level'):
+             try:
+                 self.level = int(attrs.get('level').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (level): %s' % exp)
+     def buildChildren(self, child_, nodeName_):
+         if child_.nodeType == Node.TEXT_NODE:
+@@ -8283,7 +8288,7 @@ Options:
+ """
+ 
+ def usage():
+-    print USAGE_TEXT
++    print(USAGE_TEXT)
+     sys.exit(1)
+ 
+ 
+@@ -8339,4 +8344,3 @@ if __name__ == '__main__':
+     main()
+     #import pdb
+     #pdb.run('main()')
+-
+diff --git a/docs/doxygen/doxyxml/generated/index.py b/docs/doxygen/doxyxml/generated/index.py
+index 7a70e14..0c63512 100644
+--- docs/doxygen/doxyxml/generated/index.py
++++ docs/doxygen/doxyxml/generated/index.py
+@@ -3,14 +3,16 @@
+ """
+ Generated Mon Feb  9 19:08:05 2009 by generateDS.py.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
+ 
+ from xml.dom import minidom
+ 
+ import os
+ import sys
+-import compound
++from . import compound
+ 
+-import indexsuper as supermod
++from . import indexsuper as supermod
+ 
+ class DoxygenTypeSub(supermod.DoxygenType):
+     def __init__(self, version=None, compound=None):
+diff --git a/docs/doxygen/doxyxml/generated/indexsuper.py b/docs/doxygen/doxyxml/generated/indexsuper.py
+index a991530..11312db 100644
+--- docs/doxygen/doxyxml/generated/indexsuper.py
++++ docs/doxygen/doxyxml/generated/indexsuper.py
+@@ -4,12 +4,16 @@
+ # Generated Thu Jun 11 18:43:54 2009 by generateDS.py.
+ #
+ 
++from __future__ import print_function
++from __future__ import unicode_literals
++
+ import sys
+-import getopt
+-from string import lower as str_lower
++
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
++import six
++
+ #
+ # User methods
+ #
+@@ -19,9 +23,9 @@ from xml.dom import Node
+ 
+ try:
+     from generatedssuper import GeneratedsSuper
+-except ImportError, exp:
++except ImportError as exp:
+ 
+-    class GeneratedsSuper:
++    class GeneratedsSuper(object):
+         def format_string(self, input_data, input_name=''):
+             return input_data
+         def format_integer(self, input_data, input_name=''):
+@@ -64,7 +68,7 @@ def showIndent(outfile, level):
+         outfile.write('    ')
+ 
+ def quote_xml(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -72,7 +76,7 @@ def quote_xml(inStr):
+     return s1
+ 
+ def quote_attrib(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -102,7 +106,7 @@ def quote_python(inStr):
+             return '"""%s"""' % s1
+ 
+ 
+-class MixedContainer:
++class MixedContainer(object):
+     # Constants for category:
+     CategoryNone = 0
+     CategoryText = 1
+@@ -462,7 +466,7 @@ Options:
+ """
+ 
+ def usage():
+-    print USAGE_TEXT
++    print(USAGE_TEXT)
+     sys.exit(1)
+ 
+ 
+@@ -520,4 +524,3 @@ if __name__ == '__main__':
+     main()
+     #import pdb
+     #pdb.run('main()')
+-
+diff --git a/docs/doxygen/doxyxml/text.py b/docs/doxygen/doxyxml/text.py
+index 629edd1..4c70404 100644
+--- docs/doxygen/doxyxml/text.py
++++ docs/doxygen/doxyxml/text.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -21,12 +22,13 @@
+ """
+ Utilities for extracting text from generated classes.
+ """
++from __future__ import unicode_literals
+ 
+ def is_string(txt):
+     if isinstance(txt, str):
+         return True
+     try:
+-        if isinstance(txt, unicode):
++        if isinstance(txt, str):
+             return True
+     except NameError:
+         pass
+@@ -49,7 +51,7 @@ def description_bit(obj):
+     elif is_string(obj):
+         return obj
+     else:
+-        raise StandardError('Expecting a string or something with content, content_ or value attribute')
++        raise Exception('Expecting a string or something with content, content_ or value attribute')
+     # If this bit is a paragraph then add one some line breaks.
+     if hasattr(obj, 'name') and obj.name == 'para':
+         result += "\n\n"
+diff --git a/docs/doxygen/other/group_defs.dox b/docs/doxygen/other/group_defs.dox
+index 0981128..03f00c0 100644
+--- docs/doxygen/other/group_defs.dox
++++ docs/doxygen/other/group_defs.dox
+@@ -1,6 +1,7 @@
+ /*!
+- * \defgroup block GNU Radio OsmoSDR C++ Signal Processing Blocks
+- * \brief All C++ blocks that can be used from the OsmoSDR GNU Radio
++ * \defgroup block GNU Radio OSMOSDR C++ Signal Processing Blocks
++ * \brief All C++ blocks that can be used from the OSMOSDR GNU Radio
+  *        module are listed here or in the subcategories below.
+  *
+  */
++
+diff --git a/docs/doxygen/other/main_page.dox b/docs/doxygen/other/main_page.dox
+index 1e5110b..55cd548 100644
+--- docs/doxygen/other/main_page.dox
++++ docs/doxygen/other/main_page.dox
+@@ -1,5 +1,10 @@
+ /*! \mainpage
+ 
+-Welcome to the OsmoSDR GNUradio blocks
++Welcome to the GNU Radio OSMOSDR Block
++
++This is the intro page for the Doxygen manual generated for the OSMOSDR
++block (docs/doxygen/other/main_page.dox). Edit it to add more detailed
++documentation about the new GNU Radio modules contained in this
++project.
+ 
+ */
+diff --git a/docs/doxygen/swig_doc.py b/docs/doxygen/swig_doc.py
+index 4e1ce2e..e3b308e 100644
+--- docs/doxygen/swig_doc.py
++++ docs/doxygen/swig_doc.py
+@@ -1,7 +1,8 @@
+ #
+-# Copyright 2010,2011 Free Software Foundation, Inc.
++# Copyright 2010-2012 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -26,14 +27,12 @@ The file instructs SWIG to transfer the doxygen comments into the
+ python docstrings.
+ 
+ """
++from __future__ import unicode_literals
+ 
+-import sys
+-
+-try:
+-    from doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile, base
+-except ImportError:
+-    from gnuradio.doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile, base
++import sys, time
+ 
++from doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile
++from doxyxml import DoxyOther, base
+ 
+ def py_name(name):
+     bits = name.split('_')
+@@ -56,18 +55,41 @@ class Block(object):
+         # Check for a parsing error.
+         if item.error():
+             return False
+-        return item.has_member(make_name(item.name()), DoxyFriend)
++        friendname = make_name(item.name())
++        is_a_block = item.has_member(friendname, DoxyFriend)
++        # But now sometimes the make function isn't a friend so check again.
++        if not is_a_block:
++            is_a_block = di.has_member(friendname, DoxyFunction)
++        return is_a_block
++
++class Block2(object):
++    """
++    Checks if doxyxml produced objects correspond to a new style
++    gnuradio block.
++    """
++
++    @classmethod
++    def includes(cls, item):
++        if not isinstance(item, DoxyClass):
++            return False
++        # Check for a parsing error.
++        if item.error():
++            return False
++        is_a_block2 = item.has_member('make', DoxyFunction) and item.has_member('sptr', DoxyOther)
++        return is_a_block2
+ 
+ 
+ def utoascii(text):
+     """
+-    Convert unicode text into ascii and escape quotes.
++    Convert unicode text into ascii and escape quotes and backslashes.
+     """
+     if text is None:
+         return ''
+     out = text.encode('ascii', 'replace')
+-    out = out.replace('"', '\\"')
+-    return out
++    # swig will require us to replace blackslash with 4 backslashes
++    out = out.replace(b'\\', b'\\\\\\\\')
++    out = out.replace(b'"', b'\\"').decode('ascii')
++    return str(out)
+ 
+ 
+ def combine_descriptions(obj):
+@@ -83,9 +105,15 @@ def combine_descriptions(obj):
+         description.append(dd)
+     return utoascii('\n\n'.join(description)).strip()
+ 
++def format_params(parameteritems):
++    output = ['Args:']
++    template = '    {0} : {1}'
++    for pi in parameteritems:
++        output.append(template.format(pi.name, pi.description))
++    return '\n'.join(output)
+ 
+ entry_templ = '%feature("docstring") {name} "{docstring}"'
+-def make_entry(obj, name=None, templ="{description}", description=None):
++def make_entry(obj, name=None, templ="{description}", description=None, params=[]):
+     """
+     Create a docstring entry for a swig interface file.
+ 
+@@ -102,6 +130,9 @@ def make_entry(obj, name=None, templ="{description}", description=None):
+         return ''
+     if description is None:
+         description = combine_descriptions(obj)
++    if params:
++        description += '\n\n'
++        description += utoascii(format_params(params))
+     docstring = templ.format(description=description)
+     if not docstring:
+         return ''
+@@ -121,27 +152,31 @@ def make_func_entry(func, name=None, description=None, params=None):
+             used as the description instead of extracting it from func.
+     params - a parameter list that overrides using func.params.
+     """
+-    if params is None:
+-        params = func.params
+-    params = [prm.declname for prm in params]
+-    if params:
+-        sig = "Params: (%s)" % ", ".join(params)
+-    else:
+-        sig = "Params: (NONE)"
+-    templ = "{description}\n\n" + sig
+-    return make_entry(func, name=name, templ=utoascii(templ),
+-                      description=description)
+-
+-
+-def make_class_entry(klass, description=None):
++    #if params is None:
++    #    params = func.params
++    #params = [prm.declname for prm in params]
++    #if params:
++    #    sig = "Params: (%s)" % ", ".join(params)
++    #else:
++    #    sig = "Params: (NONE)"
++    #templ = "{description}\n\n" + sig
++    #return make_entry(func, name=name, templ=utoascii(templ),
++    #                  description=description)
++    return make_entry(func, name=name, description=description, params=params)
++
++
++def make_class_entry(klass, description=None, ignored_methods=[], params=None):
+     """
+     Create a class docstring for a swig interface file.
+     """
++    if params is None:
++        params = klass.params
+     output = []
+-    output.append(make_entry(klass, description=description))
++    output.append(make_entry(klass, description=description, params=params))
+     for func in klass.in_category(DoxyFunction):
+-        name = klass.name() + '::' + func.name()
+-        output.append(make_func_entry(func, name=name))
++        if func.name() not in ignored_methods:
++            name = klass.name() + '::' + func.name()
++            output.append(make_func_entry(func, name=name))
+     return "\n\n".join(output)
+ 
+ 
+@@ -175,11 +210,33 @@ def make_block_entry(di, block):
+     # the make function.
+     output = []
+     output.append(make_class_entry(block, description=super_description))
+-    creator = block.get_member(block.name(), DoxyFunction)
+     output.append(make_func_entry(make_func, description=super_description,
+-                                  params=creator.params))
++                                  params=block.params))
+     return "\n\n".join(output)
+ 
++def make_block2_entry(di, block):
++    """
++    Create class and function docstrings of a new style gnuradio block for a
++    swig interface file.
++    """
++    descriptions = []
++    # For new style blocks all the relevant documentation should be
++    # associated with the 'make' method.
++    class_description = combine_descriptions(block)
++    make_func = block.get_member('make', DoxyFunction)
++    make_description = combine_descriptions(make_func)
++    description = class_description + "\n\nConstructor Specific Documentation:\n\n" + make_description
++    # Associate the combined description with the class and
++    # the make function.
++    output = []
++    output.append(make_class_entry(
++            block, description=description,
++            ignored_methods=['make'], params=make_func.params))
++    makename = block.name() + '::make'
++    output.append(make_func_entry(
++            make_func, name=makename, description=description,
++            params=make_func.params))
++    return "\n\n".join(output)
+ 
+ def make_swig_interface_file(di, swigdocfilename, custom_output=None):
+ 
+@@ -196,39 +253,59 @@ def make_swig_interface_file(di, swigdocfilename, custom_output=None):
+ 
+     # Create docstrings for the blocks.
+     blocks = di.in_category(Block)
++    blocks2 = di.in_category(Block2)
++
+     make_funcs = set([])
+     for block in blocks:
+         try:
+             make_func = di.get_member(make_name(block.name()), DoxyFunction)
+-            make_funcs.add(make_func.name())
+-            output.append(make_block_entry(di, block))
++            # Don't want to risk writing to output twice.
++            if make_func.name() not in make_funcs:
++                make_funcs.add(make_func.name())
++                output.append(make_block_entry(di, block))
++        except block.ParsingError:
++            sys.stderr.write('Parsing error for block {0}\n'.format(block.name()))
++            raise
++
++    for block in blocks2:
++        try:
++            make_func = block.get_member('make', DoxyFunction)
++            make_func_name = block.name() +'::make'
++            # Don't want to risk writing to output twice.
++            if make_func_name not in make_funcs:
++                make_funcs.add(make_func_name)
++                output.append(make_block2_entry(di, block))
+         except block.ParsingError:
+-            print('Parsing error for block %s' % block.name())
++            sys.stderr.write('Parsing error for block {0}\n'.format(block.name()))
++            raise
+ 
+     # Create docstrings for functions
+     # Don't include the make functions since they have already been dealt with.
+-    funcs = [f for f in di.in_category(DoxyFunction) if f.name() not in make_funcs]
++    funcs = [f for f in di.in_category(DoxyFunction)
++             if f.name() not in make_funcs and not f.name().startswith('std::')]
+     for f in funcs:
+         try:
+             output.append(make_func_entry(f))
+         except f.ParsingError:
+-            print('Parsing error for function %s' % f.name())
++            sys.stderr.write('Parsing error for function {0}\n'.format(f.name()))
+ 
+     # Create docstrings for classes
+     block_names = [block.name() for block in blocks]
+-    klasses = [k for k in di.in_category(DoxyClass) if k.name() not in block_names]
++    block_names += [block.name() for block in blocks2]
++    klasses = [k for k in di.in_category(DoxyClass)
++               if k.name() not in block_names and not k.name().startswith('std::')]
+     for k in klasses:
+         try:
+             output.append(make_class_entry(k))
+         except k.ParsingError:
+-            print('Parsing error for class %s' % k.name())
++            sys.stderr.write('Parsing error for class {0}\n'.format(k.name()))
+ 
+     # Docstrings are not created for anything that is not a function or a class.
+     # If this excludes anything important please add it here.
+ 
+     output = "\n\n".join(output)
+ 
+-    swig_doc = file(swigdocfilename, 'w')
++    swig_doc = open(swigdocfilename, 'w')
+     swig_doc.write(output)
+     swig_doc.close()
+ 
+@@ -236,7 +313,7 @@ if __name__ == "__main__":
+     # Parse command line options and set up doxyxml.
+     err_msg = "Execute using: python swig_doc.py xml_path outputfilename"
+     if len(sys.argv) != 3:
+-        raise StandardError(err_msg)
++        raise Exception(err_msg)
+     xml_path = sys.argv[1]
+     swigdocfilename = sys.argv[2]
+     di = DoxyIndex(xml_path)
+diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
+index 09838c1..26b4d3a 100644
+--- grc/CMakeLists.txt
++++ grc/CMakeLists.txt
+@@ -22,24 +22,23 @@
+ ########################################################################
+ include(GrPython)
+ 
+-macro(GEN_BLOCK_XML _generator _xml_block)
++macro(GEN_BLOCK_YAML _generator _yaml_block)
+     set(generator ${CMAKE_CURRENT_SOURCE_DIR}/${_generator})
+-    set(xml_block ${CMAKE_CURRENT_BINARY_DIR}/${_xml_block})
+-    list(APPEND xml_blocks ${xml_block})
++    set(yaml_block ${CMAKE_CURRENT_BINARY_DIR}/${_yaml_block})
++    list(APPEND yaml_blocks ${yaml_block})
+     add_custom_command(
+-        DEPENDS ${generator} OUTPUT ${xml_block}
+-        COMMAND ${PYTHON_EXECUTABLE} ${generator} ${xml_block}
++        DEPENDS ${generator} OUTPUT ${yaml_block}
++        COMMAND ${PYTHON_EXECUTABLE} ${generator} ${yaml_block}
+     )
+-endmacro(GEN_BLOCK_XML)
++endmacro(GEN_BLOCK_YAML)
+ 
+-GEN_BLOCK_XML(gen_osmosdr_blocks.py    rtlsdr_source.xml)
+-GEN_BLOCK_XML(gen_osmosdr_blocks.py    osmosdr_source.xml)
+-GEN_BLOCK_XML(gen_osmosdr_blocks.py    osmosdr_sink.xml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    rtlsdr_source.yml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_source.yml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_sink.yml)
+ 
+-add_custom_target(osmosdr_grc_xml_blocks ALL DEPENDS ${xml_blocks})
++add_custom_target(osmosdr_grc_yaml_blocks ALL DEPENDS ${yaml_blocks})
+ 
+ install(FILES
+-    ${xml_blocks}
+-#    DESTINATION ${GRC_BLOCKS_DIR}
++    ${yaml_blocks}
+     DESTINATION share/gnuradio/grc/blocks
+ )
+diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
+index d1f2b1a..9bef7b8 100644
+--- grc/gen_osmosdr_blocks.py
++++ grc/gen_osmosdr_blocks.py
+@@ -474,15 +474,15 @@ if __name__ == '__main__':
+     elif tail.startswith('osmosdr'):
+       title = 'osmocom'
+       prefix = 'osmosdr'
+-    else: raise Exception, 'file %s has wrong syntax!'%tail
++    else: raise Exception("file {} has wrong syntax!".format(tail))
+ 
+-    if tail.endswith ('source.xml'):
++    if tail.endswith ('source.yml'):
+       sourk = 'source'
+       dir = 'out'
+-    elif tail.endswith ('sink.xml'):
++    elif tail.endswith ('sink.yml'):
+       sourk = 'sink'
+       dir = 'in'
+-    else: raise Exception, 'is %s a source or sink?'%file
++    else: raise Exception("is {} a source or sink?".format(file))
+ 
+     params = ''.join([parse_tmpl(PARAMS_TMPL, n=n, sourk=sourk) for n in range(max_num_channels)])
+     open(file, 'w').write(parse_tmpl(MAIN_TMPL,
+diff --git a/include/osmosdr/CMakeLists.txt b/include/osmosdr/CMakeLists.txt
+index d185ee6..19ca3bc 100644
+--- include/osmosdr/CMakeLists.txt
++++ include/osmosdr/CMakeLists.txt
+@@ -1,6 +1,7 @@
+-# Copyright 2011 Free Software Foundation, Inc.
++# Copyright 2011,2012 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -22,11 +23,6 @@
+ ########################################################################
+ install(FILES
+     api.h
+-    pimpl.h
+-    ranges.h
+-    time_spec.h
+-    device.h
+     source.h
+-    sink.h
+-    DESTINATION include/osmosdr
++    sink.h DESTINATION include/osmosdr
+ )
+diff --git a/include/osmosdr/api.h b/include/osmosdr/api.h
+index d3adbf0..43f2e28 100644
+--- include/osmosdr/api.h
++++ include/osmosdr/api.h
+@@ -1,7 +1,8 @@
+ /*
+  * Copyright 2011 Free Software Foundation, Inc.
+  *
+- * This file is part of GNU Radio
++ * This file was generated by gr_modtool, a tool from the GNU Radio framework
++ * This file is a part of gr-osmosdr
+  *
+  * GNU Radio is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+diff --git a/include/osmosdr/sink.h b/include/osmosdr/sink.h
+index 906976e..85f41e2 100644
+--- include/osmosdr/sink.h
++++ include/osmosdr/sink.h
+@@ -1,22 +1,23 @@
+ /* -*- c++ -*- */
+ /*
+- * Copyright 2012 Dimitri Stolnikov <horiz0n@gmx.net>
++ * Copyright 2019 gr-osmosdr author.
+  *
+- * GNU Radio is free software; you can redistribute it and/or modify
++ * This is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 3, or (at your option)
+  * any later version.
+  *
+- * GNU Radio is distributed in the hope that it will be useful,
++ * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
++ * along with this software; see the file COPYING.  If not, write to
+  * the Free Software Foundation, Inc., 51 Franklin Street,
+  * Boston, MA 02110-1301, USA.
+  */
++
+ #ifndef INCLUDED_OSMOSDR_SINK_H
+ #define INCLUDED_OSMOSDR_SINK_H
+ 
+@@ -27,352 +28,352 @@
+ 
+ namespace osmosdr {
+ 
+-class sink;
++  class sink;
+ 
+-/*!
+- * \brief Takes a stream of complex samples.
+- * \ingroup block
++  /*!
++ * \brief <+description of block+>
++ * \ingroup osmosdr
+  *
+- * This uses the preferred technique: subclassing gr::hier_block2.
+  */
+ class OSMOSDR_API sink : virtual public gr::hier_block2
+ {
+-public:
+-  typedef boost::shared_ptr< sink > sptr;
+-
+-  /*!
+-   * \brief Return a shared_ptr to a new instance of sink.
+-   *
+-   * To avoid accidental use of raw pointers, sink's
+-   * constructor is private.  osmosdr::sink::make is the public
+-   * interface for creating new instances.
+-   *
+-   * \param args the address to identify the hardware
+-   * \return a new osmosdr sink block object
+-   */
+-  static sptr make( const std::string & args = "" );
+-
+-  /*!
+-   * Get the number of channels the underlying radio hardware offers.
+-   * \return the number of available channels
+-   */
+-  virtual size_t get_num_channels( void ) = 0;
+-
+-  /*!
+-   * Get the possible sample rates for the underlying radio hardware.
+-   * \return a range of rates in Sps
+-   */
+-  virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
+-
+-  /*!
+-   * Set the sample rate for the underlying radio hardware.
+-   * This also will select the appropriate IF bandpass, if applicable.
+-   * \param rate a new rate in Sps
+-   */
+-  virtual double set_sample_rate( double rate ) = 0;
+-
+-  /*!
+-   * Get the sample rate for the underlying radio hardware.
+-   * This is the actual sample rate and may differ from the rate set.
+-   * \return the actual rate in Sps
+-   */
+-  virtual double get_sample_rate( void ) = 0;
+-
+-  /*!
+-   * Get the tunable frequency range for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the frequency range in Hz
+-   */
+-  virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Tune the underlying radio hardware to the desired center frequency.
+-   * This also will select the appropriate RF bandpass.
+-   * \param freq the desired frequency in Hz
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual frequency in Hz
+-   */
+-  virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the center frequency the underlying radio hardware is tuned to.
+-   * This is the actual frequency and may differ from the frequency set.
+-   * \param chan the channel index 0 to N-1
+-   * \return the frequency in Hz
+-   */
+-  virtual double get_center_freq( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the frequency correction value in parts per million.
+-   * \param ppm the desired correction value in parts per million
+-   * \param chan the channel index 0 to N-1
+-   * \return correction value in parts per million
+-   */
+-  virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the frequency correction value.
+-   * \param chan the channel index 0 to N-1
+-   * \return correction value in parts per million
+-   */
+-  virtual double get_freq_corr( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the gain stage names of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return a vector of strings containing the names of gain stages
+-   */
+-  virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the settable overall gain range for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the gain range in dB
+-   */
+-  virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the settable gain range for a specific gain stage.
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the gain range in dB
+-   */
+-  virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
+-                                                size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the gain mode for the underlying radio hardware.
+-   * This might be supported only for certain hardware types.
+-   * \param automatic the gain mode (true means automatic gain mode)
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain mode
+-   */
+-  virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the gain mode selected for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain mode (true means automatic gain mode)
+-   */
+-  virtual bool get_gain_mode( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the named gain on the underlying radio hardware.
+-   * \param gain the gain in dB
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_gain( double gain,
+-                           const std::string & name,
+-                           size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual gain setting of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double get_gain( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual gain setting of a named stage.
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the IF gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available IF gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the BB gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available BB gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the available antennas of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return a vector of strings containing the names of available antennas
+-   */
+-  virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Select the active antenna of the underlying radio hardware.
+-   * \param antenna name of the antenna to be selected
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual antenna's name
+-   */
+-  virtual std::string set_antenna( const std::string & antenna,
+-                                   size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual underlying radio hardware antenna setting.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual antenna's name
+-   */
+-  virtual std::string get_antenna( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the TX frontend DC offset value.
+-   * The value is complex to control both I and Q.
+-   *
+-   * \param offset the dc offset (1.0 is full-scale)
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the TX frontend IQ balance correction.
+-   * Use this to adjust the magnitude and phase of I and Q.
+-   *
+-   * \param balance the complex correction value
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the bandpass filter on the radio frontend.
+-   * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual filter bandwidth in Hz
+-   */
+-  virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual bandpass filter setting on the radio frontend.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual filter bandwidth in Hz
+-   */
+-  virtual double get_bandwidth( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the possible bandpass filter settings on the radio frontend.
+-   * \param chan the channel index 0 to N-1
+-   * \return a range of bandwidths in Hz
+-   */
+-  virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the time source for the device.
+-   * This sets the method of time synchronization,
+-   * typically a pulse per second or an encoded time.
+-   * Typical options for source: external, MIMO.
+-   * \param source a string representing the time source
+-   * \param mboard which motherboard to set the config
+-   */
+-  virtual void set_time_source(const std::string &source,
+-                               const size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the currently set time source.
+-   * \param mboard which motherboard to get the config
+-   * \return the string representing the time source
+-   */
+-  virtual std::string get_time_source(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get a list of possible time sources.
+-   * \param mboard which motherboard to get the list
+-   * \return a vector of strings for possible settings
+-   */
+-  virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
+-
+-  /*!
+-   * Set the clock source for the device.
+-   * This sets the source for a 10 Mhz reference clock.
+-   * Typical options for source: internal, external, MIMO.
+-   * \param source a string representing the clock source
+-   * \param mboard which motherboard to set the config
+-   */
+-  virtual void set_clock_source(const std::string &source,
+-                                const size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the currently set clock source.
+-   * \param mboard which motherboard to get the config
+-   * \return the string representing the clock source
+-   */
+-  virtual std::string get_clock_source(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get a list of possible clock sources.
+-   * \param mboard which motherboard to get the list
+-   * \return a vector of strings for possible settings
+-   */
+-  virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get the master clock rate.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the clock rate in Hz
+-   */
+-  virtual double get_clock_rate(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Set the master clock rate.
+-   * \param rate the new rate in Hz
+-   * \param mboard the motherboard index 0 to M-1
+-   */
+-  virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the current time registers.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the current device time
+-   */
+-  virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the time when the last pps pulse occured.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the current device time
+-   */
+-  virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Sets the time registers immediately.
+-   * \param time_spec the new time
+-   * \param mboard the motherboard index 0 to M-1
+-   */
+-  virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
+-                            size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Set the time registers at the next pps.
+-   * \param time_spec the new time
+-   */
+-  virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+-
+-  /*!
+-   * Sync the time registers with an unknown pps edge.
+-   * \param time_spec the new time
+-   */
+-  virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++ public:
++  typedef boost::shared_ptr<sink> sptr;
++
++    /*!
++      * \brief Return a shared_ptr to a new instance of sink.
++      *
++      * To avoid accidental use of raw pointers, sink's
++      * constructor is private.  osmosdr::sink::make is the public
++      * interface for creating new instances.
++      *
++      * \param args the address to identify the hardware
++      * \return a new osmosdr sink block object
++      */
++    static sptr make( const std::string & args = "" );
++
++    /*!
++     * Get the number of channels the underlying radio hardware offers.
++     * \return the number of available channels
++     */
++    virtual size_t get_num_channels( void ) = 0;
++
++    /*!
++     * Get the possible sample rates for the underlying radio hardware.
++     * \return a range of rates in Sps
++     */
++    virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
++
++    /*!
++     * Set the sample rate for the underlying radio hardware.
++     * This also will select the appropriate IF bandpass, if applicable.
++     * \param rate a new rate in Sps
++     */
++    virtual double set_sample_rate( double rate ) = 0;
++
++    /*!
++     * Get the sample rate for the underlying radio hardware.
++     * This is the actual sample rate and may differ from the rate set.
++     * \return the actual rate in Sps
++     */
++    virtual double get_sample_rate( void ) = 0;
++
++    /*!
++     * Get the tunable frequency range for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the frequency range in Hz
++     */
++    virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Tune the underlying radio hardware to the desired center frequency.
++     * This also will select the appropriate RF bandpass.
++     * \param freq the desired frequency in Hz
++     * \param chan the channel index 0 to N-1
++     * \return the actual frequency in Hz
++     */
++    virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the center frequency the underlying radio hardware is tuned to.
++     * This is the actual frequency and may differ from the frequency set.
++     * \param chan the channel index 0 to N-1
++     * \return the frequency in Hz
++     */
++    virtual double get_center_freq( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the frequency correction value in parts per million.
++     * \param ppm the desired correction value in parts per million
++     * \param chan the channel index 0 to N-1
++     * \return correction value in parts per million
++     */
++    virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the frequency correction value.
++     * \param chan the channel index 0 to N-1
++     * \return correction value in parts per million
++     */
++    virtual double get_freq_corr( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the gain stage names of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return a vector of strings containing the names of gain stages
++     */
++    virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the settable overall gain range for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the gain range in dB
++     */
++    virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the settable gain range for a specific gain stage.
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the gain range in dB
++     */
++    virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
++                                                  size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the gain mode for the underlying radio hardware.
++     * This might be supported only for certain hardware types.
++     * \param automatic the gain mode (true means automatic gain mode)
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain mode
++     */
++    virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the gain mode selected for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain mode (true means automatic gain mode)
++     */
++    virtual bool get_gain_mode( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the named gain on the underlying radio hardware.
++     * \param gain the gain in dB
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_gain( double gain,
++                             const std::string & name,
++                             size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual gain setting of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double get_gain( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual gain setting of a named stage.
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the IF gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available IF gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the BB gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available BB gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the available antennas of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return a vector of strings containing the names of available antennas
++     */
++    virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
++
++    /*!
++     * Select the active antenna of the underlying radio hardware.
++     * \param antenna name of the antenna to be selected
++     * \param chan the channel index 0 to N-1
++     * \return the actual antenna's name
++     */
++    virtual std::string set_antenna( const std::string & antenna,
++                                     size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual underlying radio hardware antenna setting.
++     * \param chan the channel index 0 to N-1
++     * \return the actual antenna's name
++     */
++    virtual std::string get_antenna( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the TX frontend DC offset value.
++     * The value is complex to control both I and Q.
++     *
++     * \param offset the dc offset (1.0 is full-scale)
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the TX frontend IQ balance correction.
++     * Use this to adjust the magnitude and phase of I and Q.
++     *
++     * \param balance the complex correction value
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the bandpass filter on the radio frontend.
++     * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
++     * \param chan the channel index 0 to N-1
++     * \return the actual filter bandwidth in Hz
++     */
++    virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual bandpass filter setting on the radio frontend.
++     * \param chan the channel index 0 to N-1
++     * \return the actual filter bandwidth in Hz
++     */
++    virtual double get_bandwidth( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the possible bandpass filter settings on the radio frontend.
++     * \param chan the channel index 0 to N-1
++     * \return a range of bandwidths in Hz
++     */
++    virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the time source for the device.
++     * This sets the method of time synchronization,
++     * typically a pulse per second or an encoded time.
++     * Typical options for source: external, MIMO.
++     * \param source a string representing the time source
++     * \param mboard which motherboard to set the config
++     */
++    virtual void set_time_source(const std::string &source,
++                                 const size_t mboard = 0) = 0;
++
++    /*!
++     * Get the currently set time source.
++     * \param mboard which motherboard to get the config
++     * \return the string representing the time source
++     */
++    virtual std::string get_time_source(const size_t mboard) = 0;
++
++    /*!
++     * Get a list of possible time sources.
++     * \param mboard which motherboard to get the list
++     * \return a vector of strings for possible settings
++     */
++    virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
++
++    /*!
++     * Set the clock source for the device.
++     * This sets the source for a 10 Mhz reference clock.
++     * Typical options for source: internal, external, MIMO.
++     * \param source a string representing the clock source
++     * \param mboard which motherboard to set the config
++     */
++    virtual void set_clock_source(const std::string &source,
++                                  const size_t mboard = 0) = 0;
++
++    /*!
++     * Get the currently set clock source.
++     * \param mboard which motherboard to get the config
++     * \return the string representing the clock source
++     */
++    virtual std::string get_clock_source(const size_t mboard) = 0;
++
++    /*!
++     * Get a list of possible clock sources.
++     * \param mboard which motherboard to get the list
++     * \return a vector of strings for possible settings
++     */
++    virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
++
++    /*!
++     * Get the master clock rate.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the clock rate in Hz
++     */
++    virtual double get_clock_rate(size_t mboard = 0) = 0;
++
++    /*!
++     * Set the master clock rate.
++     * \param rate the new rate in Hz
++     * \param mboard the motherboard index 0 to M-1
++     */
++    virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
++
++    /*!
++     * Get the current time registers.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the current device time
++     */
++    virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
++
++    /*!
++     * Get the time when the last pps pulse occured.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the current device time
++     */
++    virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
++
++    /*!
++     * Sets the time registers immediately.
++     * \param time_spec the new time
++     * \param mboard the motherboard index 0 to M-1
++     */
++    virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
++                              size_t mboard = 0) = 0;
++
++    /*!
++     * Set the time registers at the next pps.
++     * \param time_spec the new time
++     */
++    virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++
++    /*!
++     * Sync the time registers with an unknown pps edge.
++     * \param time_spec the new time
++     */
++    virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+ };
+ 
+-} /* namespace osmosdr */
++} // namespace osmosdr
+ 
+ #endif /* INCLUDED_OSMOSDR_SINK_H */
++
+diff --git a/include/osmosdr/source.h b/include/osmosdr/source.h
+index 88f8385..c83c2fd 100644
+--- include/osmosdr/source.h
++++ include/osmosdr/source.h
+@@ -1,22 +1,23 @@
+ /* -*- c++ -*- */
+ /*
+- * Copyright 2012 Dimitri Stolnikov <horiz0n@gmx.net>
++ * Copyright 2019 gr-osmosdr author.
+  *
+- * GNU Radio is free software; you can redistribute it and/or modify
++ * This is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 3, or (at your option)
+  * any later version.
+  *
+- * GNU Radio is distributed in the hope that it will be useful,
++ * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
++ * along with this software; see the file COPYING.  If not, write to
+  * the Free Software Foundation, Inc., 51 Franklin Street,
+  * Boston, MA 02110-1301, USA.
+  */
++
+ #ifndef INCLUDED_OSMOSDR_SOURCE_H
+ #define INCLUDED_OSMOSDR_SOURCE_H
+ 
+@@ -29,18 +30,17 @@ namespace osmosdr {
+ 
+ class source;
+ 
+-/*!
+- * \brief Provides a stream of complex samples.
+- * \ingroup block
++    /*!
++ * \brief <+description of block+>
++ * \ingroup osmosdr
+  *
+- * This uses the preferred technique: subclassing gr::hier_block2.
+  */
+ class OSMOSDR_API source : virtual public gr::hier_block2
+ {
+-public:
+-  typedef boost::shared_ptr< source > sptr;
++ public:
++  typedef boost::shared_ptr<source> sptr;
+ 
+-  /*!
++/*!
+    * \brief Return a shared_ptr to a new instance of source.
+    *
+    * To avoid accidental use of raw pointers, source's
+@@ -50,373 +50,374 @@ public:
+    * \param args the address to identify the hardware
+    * \return a new osmosdr source block object
+    */
+-  static sptr make( const std::string & args = "" );
+-
+-  /*!
+-   * Get the number of channels the underlying radio hardware offers.
+-   * \return the number of available channels
+-   */
+-  virtual size_t get_num_channels( void ) = 0;
+-
+-  /*!
+-   * \brief seek file to \p seek_point relative to \p whence
+-   *
+-   * \param seek_point	sample offset in file
+-   * \param whence	one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)
+-   * \return true on success
+-   */
+-  virtual bool seek( long seek_point, int whence, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the possible sample rates for the underlying radio hardware.
+-   * \return a range of rates in Sps
+-   */
+-  virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
+-
+-  /*!
+-   * Set the sample rate for the underlying radio hardware.
+-   * This also will select the appropriate IF bandpass, if applicable.
+-   * \param rate a new rate in Sps
+-   */
+-  virtual double set_sample_rate( double rate ) = 0;
+-
+-  /*!
+-   * Get the sample rate for the underlying radio hardware.
+-   * This is the actual sample rate and may differ from the rate set.
+-   * \return the actual rate in Sps
+-   */
+-  virtual double get_sample_rate( void ) = 0;
+-
+-  /*!
+-   * Get the tunable frequency range for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the frequency range in Hz
+-   */
+-  virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Tune the underlying radio hardware to the desired center frequency.
+-   * This also will select the appropriate RF bandpass.
+-   * \param freq the desired frequency in Hz
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual frequency in Hz
+-   */
+-  virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the center frequency the underlying radio hardware is tuned to.
+-   * This is the actual frequency and may differ from the frequency set.
+-   * \param chan the channel index 0 to N-1
+-   * \return the frequency in Hz
+-   */
+-  virtual double get_center_freq( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the frequency correction value in parts per million.
+-   * \param ppm the desired correction value in parts per million
+-   * \param chan the channel index 0 to N-1
+-   * \return correction value in parts per million
+-   */
+-  virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the frequency correction value.
+-   * \param chan the channel index 0 to N-1
+-   * \return correction value in parts per million
+-   */
+-  virtual double get_freq_corr( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the gain stage names of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return a vector of strings containing the names of gain stages
+-   */
+-  virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the settable overall gain range for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the gain range in dB
+-   */
+-  virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the settable gain range for a specific gain stage.
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the gain range in dB
+-   */
+-  virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
+-                                                size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the gain mode for the underlying radio hardware.
+-   * This might be supported only for certain hardware types.
+-   * \param automatic the gain mode (true means automatic gain mode)
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain mode
+-   */
+-  virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the gain mode selected for the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain mode (true means automatic gain mode)
+-   */
+-  virtual bool get_gain_mode( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the named gain on the underlying radio hardware.
+-   * \param gain the gain in dB
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_gain( double gain,
+-                           const std::string & name,
+-                           size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual gain setting of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double get_gain( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual gain setting of a named stage.
+-   * \param name the name of the gain stage
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the IF gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available IF gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the BB gain for the underlying radio hardware.
+-   * This function will automatically distribute the desired gain value over
+-   * available BB gain stages in an appropriate way and return the actual value.
+-   * \param gain the gain in dB
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual gain in dB
+-   */
+-  virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the available antennas of the underlying radio hardware.
+-   * \param chan the channel index 0 to N-1
+-   * \return a vector of strings containing the names of available antennas
+-   */
+-  virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Select the active antenna of the underlying radio hardware.
+-   * \param antenna name of the antenna to be selected
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual antenna's name
+-   */
+-  virtual std::string set_antenna( const std::string & antenna,
+-                                   size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual underlying radio hardware antenna setting.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual antenna's name
+-   */
+-  virtual std::string get_antenna( size_t chan = 0 ) = 0;
+-
+-  enum DCOffsetMode {
+-    DCOffsetOff = 0,
+-    DCOffsetManual,
+-    DCOffsetAutomatic
+-  };
+-
+-  /*!
+-   * Set the RX frontend DC correction mode.
+-   * The automatic correction subtracts out the long-run average.
+-   *
+-   * When disabled, the averaging option operation is reset.
+-   * Once in Manual mode, the average value will be held constant until
+-   * the user re-enables the automatic correction or overrides the
+-   * value by manually setting the offset.
+-   *
+-   * \param mode dc offset correction mode: 0 = Off, 1 = Manual, 2 = Automatic
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_dc_offset_mode( int mode, size_t chan = 0) = 0;
+-
+-  /*!
+-   * Set the RX frontend DC offset value.
+-   * The value is complex to control both I and Q.
+-   * Only set this when automatic correction is disabled.
+-   *
+-   * \param offset the dc offset (1.0 is full-scale)
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
+-
+-  enum IQBalanceMode {
+-    IQBalanceOff = 0,
+-    IQBalanceManual,
+-    IQBalanceAutomatic
+-  };
+-
+-  /*!
+-   * Set the RX frontend IQ balance mode.
+-   *
+-   * \param mode iq balance correction mode: 0 = Off, 1 = Manual, 2 = Automatic
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_iq_balance_mode( int mode, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the RX frontend IQ balance correction.
+-   * Use this to adjust the magnitude and phase of I and Q.
+-   *
+-   * \param balance the complex correction value
+-   * \param chan the channel index 0 to N-1
+-   */
+-  virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the bandpass filter on the radio frontend.
+-   * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual filter bandwidth in Hz
+-   */
+-  virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the actual bandpass filter setting on the radio frontend.
+-   * \param chan the channel index 0 to N-1
+-   * \return the actual filter bandwidth in Hz
+-   */
+-  virtual double get_bandwidth( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Get the possible bandpass filter settings on the radio frontend.
+-   * \param chan the channel index 0 to N-1
+-   * \return a range of bandwidths in Hz
+-   */
+-  virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
+-
+-  /*!
+-   * Set the time source for the device.
+-   * This sets the method of time synchronization,
+-   * typically a pulse per second or an encoded time.
+-   * Typical options for source: external, MIMO.
+-   * \param source a string representing the time source
+-   * \param mboard which motherboard to set the config
+-   */
+-  virtual void set_time_source(const std::string &source,
+-                               const size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the currently set time source.
+-   * \param mboard which motherboard to get the config
+-   * \return the string representing the time source
+-   */
+-  virtual std::string get_time_source(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get a list of possible time sources.
+-   * \param mboard which motherboard to get the list
+-   * \return a vector of strings for possible settings
+-   */
+-  virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
+-
+-  /*!
+-   * Set the clock source for the device.
+-   * This sets the source for a 10 Mhz reference clock.
+-   * Typical options for source: internal, external, MIMO.
+-   * \param source a string representing the clock source
+-   * \param mboard which motherboard to set the config
+-   */
+-  virtual void set_clock_source(const std::string &source,
+-                                const size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the currently set clock source.
+-   * \param mboard which motherboard to get the config
+-   * \return the string representing the clock source
+-   */
+-  virtual std::string get_clock_source(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get a list of possible clock sources.
+-   * \param mboard which motherboard to get the list
+-   * \return a vector of strings for possible settings
+-   */
+-  virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
+-
+-  /*!
+-   * Get the master clock rate.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the clock rate in Hz
+-   */
+-  virtual double get_clock_rate(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Set the master clock rate.
+-   * \param rate the new rate in Hz
+-   * \param mboard the motherboard index 0 to M-1
+-   */
+-  virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the current time registers.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the current device time
+-   */
+-  virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Get the time when the last pps pulse occured.
+-   * \param mboard the motherboard index 0 to M-1
+-   * \return the current device time
+-   */
+-  virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Sets the time registers immediately.
+-   * \param time_spec the new time
+-   * \param mboard the motherboard index 0 to M-1
+-   */
+-  virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
+-                            size_t mboard = 0) = 0;
+-
+-  /*!
+-   * Set the time registers at the next pps.
+-   * \param time_spec the new time
+-   */
+-  virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+-
+-  /*!
+-   * Sync the time registers with an unknown pps edge.
+-   * \param time_spec the new time
+-   */
+-  virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++    static sptr make( const std::string & args = "" );
++
++    /*!
++     * Get the number of channels the underlying radio hardware offers.
++     * \return the number of available channels
++     */
++    virtual size_t get_num_channels( void ) = 0;
++
++    /*!
++     * \brief seek file to \p seek_point relative to \p whence
++     *
++     * \param seek_point	sample offset in file
++     * \param whence	one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)
++     * \return true on success
++     */
++    virtual bool seek( long seek_point, int whence, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the possible sample rates for the underlying radio hardware.
++     * \return a range of rates in Sps
++     */
++    virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
++
++    /*!
++     * Set the sample rate for the underlying radio hardware.
++     * This also will select the appropriate IF bandpass, if applicable.
++     * \param rate a new rate in Sps
++     */
++    virtual double set_sample_rate( double rate ) = 0;
++
++    /*!
++     * Get the sample rate for the underlying radio hardware.
++     * This is the actual sample rate and may differ from the rate set.
++     * \return the actual rate in Sps
++     */
++    virtual double get_sample_rate( void ) = 0;
++
++    /*!
++     * Get the tunable frequency range for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the frequency range in Hz
++     */
++    virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Tune the underlying radio hardware to the desired center frequency.
++     * This also will select the appropriate RF bandpass.
++     * \param freq the desired frequency in Hz
++     * \param chan the channel index 0 to N-1
++     * \return the actual frequency in Hz
++     */
++    virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the center frequency the underlying radio hardware is tuned to.
++     * This is the actual frequency and may differ from the frequency set.
++     * \param chan the channel index 0 to N-1
++     * \return the frequency in Hz
++     */
++    virtual double get_center_freq( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the frequency correction value in parts per million.
++     * \param ppm the desired correction value in parts per million
++     * \param chan the channel index 0 to N-1
++     * \return correction value in parts per million
++     */
++    virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the frequency correction value.
++     * \param chan the channel index 0 to N-1
++     * \return correction value in parts per million
++     */
++    virtual double get_freq_corr( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the gain stage names of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return a vector of strings containing the names of gain stages
++     */
++    virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the settable overall gain range for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the gain range in dB
++     */
++    virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the settable gain range for a specific gain stage.
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the gain range in dB
++     */
++    virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
++                                                  size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the gain mode for the underlying radio hardware.
++     * This might be supported only for certain hardware types.
++     * \param automatic the gain mode (true means automatic gain mode)
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain mode
++     */
++    virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the gain mode selected for the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain mode (true means automatic gain mode)
++     */
++    virtual bool get_gain_mode( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the named gain on the underlying radio hardware.
++     * \param gain the gain in dB
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_gain( double gain,
++                             const std::string & name,
++                             size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual gain setting of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double get_gain( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual gain setting of a named stage.
++     * \param name the name of the gain stage
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the IF gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available IF gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the BB gain for the underlying radio hardware.
++     * This function will automatically distribute the desired gain value over
++     * available BB gain stages in an appropriate way and return the actual value.
++     * \param gain the gain in dB
++     * \param chan the channel index 0 to N-1
++     * \return the actual gain in dB
++     */
++    virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the available antennas of the underlying radio hardware.
++     * \param chan the channel index 0 to N-1
++     * \return a vector of strings containing the names of available antennas
++     */
++    virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
++
++    /*!
++     * Select the active antenna of the underlying radio hardware.
++     * \param antenna name of the antenna to be selected
++     * \param chan the channel index 0 to N-1
++     * \return the actual antenna's name
++     */
++    virtual std::string set_antenna( const std::string & antenna,
++                                     size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual underlying radio hardware antenna setting.
++     * \param chan the channel index 0 to N-1
++     * \return the actual antenna's name
++     */
++    virtual std::string get_antenna( size_t chan = 0 ) = 0;
++
++    enum DCOffsetMode {
++        DCOffsetOff = 0,
++        DCOffsetManual,
++        DCOffsetAutomatic
++    };
++
++    /*!
++     * Set the RX frontend DC correction mode.
++     * The automatic correction subtracts out the long-run average.
++     *
++     * When disabled, the averaging option operation is reset.
++     * Once in Manual mode, the average value will be held constant until
++     * the user re-enables the automatic correction or overrides the
++     * value by manually setting the offset.
++     *
++     * \param mode dc offset correction mode: 0 = Off, 1 = Manual, 2 = Automatic
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_dc_offset_mode( int mode, size_t chan = 0) = 0;
++
++    /*!
++     * Set the RX frontend DC offset value.
++     * The value is complex to control both I and Q.
++     * Only set this when automatic correction is disabled.
++     *
++     * \param offset the dc offset (1.0 is full-scale)
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
++
++    enum IQBalanceMode {
++        IQBalanceOff = 0,
++        IQBalanceManual,
++        IQBalanceAutomatic
++    };
++
++    /*!
++     * Set the RX frontend IQ balance mode.
++     *
++     * \param mode iq balance correction mode: 0 = Off, 1 = Manual, 2 = Automatic
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_iq_balance_mode( int mode, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the RX frontend IQ balance correction.
++     * Use this to adjust the magnitude and phase of I and Q.
++     *
++     * \param balance the complex correction value
++     * \param chan the channel index 0 to N-1
++     */
++    virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the bandpass filter on the radio frontend.
++     * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
++     * \param chan the channel index 0 to N-1
++     * \return the actual filter bandwidth in Hz
++     */
++    virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the actual bandpass filter setting on the radio frontend.
++     * \param chan the channel index 0 to N-1
++     * \return the actual filter bandwidth in Hz
++     */
++    virtual double get_bandwidth( size_t chan = 0 ) = 0;
++
++    /*!
++     * Get the possible bandpass filter settings on the radio frontend.
++     * \param chan the channel index 0 to N-1
++     * \return a range of bandwidths in Hz
++     */
++    virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
++
++    /*!
++     * Set the time source for the device.
++     * This sets the method of time synchronization,
++     * typically a pulse per second or an encoded time.
++     * Typical options for source: external, MIMO.
++     * \param source a string representing the time source
++     * \param mboard which motherboard to set the config
++     */
++    virtual void set_time_source(const std::string &source,
++                                 const size_t mboard = 0) = 0;
++
++    /*!
++     * Get the currently set time source.
++     * \param mboard which motherboard to get the config
++     * \return the string representing the time source
++     */
++    virtual std::string get_time_source(const size_t mboard) = 0;
++
++    /*!
++     * Get a list of possible time sources.
++     * \param mboard which motherboard to get the list
++     * \return a vector of strings for possible settings
++     */
++    virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
++
++    /*!
++     * Set the clock source for the device.
++     * This sets the source for a 10 Mhz reference clock.
++     * Typical options for source: internal, external, MIMO.
++     * \param source a string representing the clock source
++     * \param mboard which motherboard to set the config
++     */
++    virtual void set_clock_source(const std::string &source,
++                                  const size_t mboard = 0) = 0;
++
++    /*!
++     * Get the currently set clock source.
++     * \param mboard which motherboard to get the config
++     * \return the string representing the clock source
++     */
++    virtual std::string get_clock_source(const size_t mboard) = 0;
++
++    /*!
++     * Get a list of possible clock sources.
++     * \param mboard which motherboard to get the list
++     * \return a vector of strings for possible settings
++     */
++    virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
++
++    /*!
++     * Get the master clock rate.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the clock rate in Hz
++     */
++    virtual double get_clock_rate(size_t mboard = 0) = 0;
++
++    /*!
++     * Set the master clock rate.
++     * \param rate the new rate in Hz
++     * \param mboard the motherboard index 0 to M-1
++     */
++    virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
++
++    /*!
++     * Get the current time registers.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the current device time
++     */
++    virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
++
++    /*!
++     * Get the time when the last pps pulse occured.
++     * \param mboard the motherboard index 0 to M-1
++     * \return the current device time
++     */
++    virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
++
++    /*!
++     * Sets the time registers immediately.
++     * \param time_spec the new time
++     * \param mboard the motherboard index 0 to M-1
++     */
++    virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
++                              size_t mboard = 0) = 0;
++
++    /*!
++     * Set the time registers at the next pps.
++     * \param time_spec the new time
++     */
++    virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++
++    /*!
++     * Sync the time registers with an unknown pps edge.
++     * \param time_spec the new time
++     */
++    virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+ };
+ 
+-} /* namespace osmosdr */
++} // namespace osmosdr
+ 
+ #endif /* INCLUDED_OSMOSDR_SOURCE_H */
++
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index dbb175a..d05da32 100644
+--- lib/CMakeLists.txt
++++ lib/CMakeLists.txt
+@@ -21,6 +21,7 @@
+ # Setup library
+ ########################################################################
+ INCLUDE(GrPlatform) #define LIB_SUFFIX
++INCLUDE(OsmoSDRMiscUtils)
+ INCLUDE(GrMiscUtils)
+ INCLUDE(GrComponent)
+ 
+@@ -118,11 +119,11 @@ SET_SOURCE_FILES_PROPERTIES(
+ ########################################################################
+ # Setup IQBalance component
+ ########################################################################
+-GR_REGISTER_COMPONENT("Osmocom IQ Imbalance Correction" ENABLE_IQBALANCE GNURADIO_IQBALANCE_FOUND)
++GR_REGISTER_COMPONENT("Osmocom IQ Imbalance Correction" ENABLE_IQBALANCE gnuradio-iqbalance_FOUND)
+ if(ENABLE_IQBALANCE)
+ add_definitions(-DHAVE_IQBALANCE=1)
+-include_directories(${GNURADIO_IQBALANCE_INCLUDE_DIRS})
+-GR_OSMOSDR_APPEND_LIBS(${GNURADIO_IQBALANCE_LIBRARIES})
++include_directories(${IQBALANCE_INCLUDE_DIRS})
++GR_OSMOSDR_APPEND_LIBS(${IQBALANCE_LIBRARIES})
+ endif(ENABLE_IQBALANCE)
+ 
+ ########################################################################
+@@ -133,25 +134,10 @@ if(ENABLE_OSMOSDR)
+ GR_INCLUDE_SUBDIRECTORY(osmosdr)
+ endif(ENABLE_OSMOSDR)
+ 
+-########################################################################
+-# Setup FCD component
+-########################################################################
+-GR_REGISTER_COMPONENT("FUNcube Dongle" ENABLE_FCD GNURADIO_FCD_FOUND)
+-GR_REGISTER_COMPONENT("FUNcube Dongle Pro+" ENABLE_FCDPP GNURADIO_FCDPP_FOUND)
+-if(ENABLE_FCD)
+-add_definitions(-DHAVE_FCD=1)
+-endif(ENABLE_FCD)
+-if(ENABLE_FCDPP)
+-add_definitions(-DHAVE_FCDPP=1)
+-endif(ENABLE_FCDPP)
+-if(ENABLE_FCD OR ENABLE_FCDPP)
+-GR_INCLUDE_SUBDIRECTORY(fcd)
+-endif(ENABLE_FCD OR ENABLE_FCDPP)
+-
+ ########################################################################
+ # Setup File component
+ ########################################################################
+-GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE GNURADIO_BLOCKS_FOUND)
++GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE gnuradio-blocks_FOUND)
+ if(ENABLE_FILE)
+ GR_INCLUDE_SUBDIRECTORY(file)
+ endif(ENABLE_FILE)
+@@ -167,7 +153,7 @@ endif(ENABLE_RTL)
+ ########################################################################
+ # Setup RTL_TCP component
+ ########################################################################
+-GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP GNURADIO_BLOCKS_FOUND)
++GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP gnuradio-blocks_FOUND)
+ if(ENABLE_RTL_TCP)
+ GR_INCLUDE_SUBDIRECTORY(rtl_tcp)
+ endif(ENABLE_RTL_TCP)
+@@ -175,7 +161,7 @@ endif(ENABLE_RTL_TCP)
+ ########################################################################
+ # Setup UHD component
+ ########################################################################
+-GR_REGISTER_COMPONENT("Ettus USRP Devices" ENABLE_UHD UHD_FOUND GNURADIO_UHD_FOUND)
++GR_REGISTER_COMPONENT("Ettus USRP Devices" ENABLE_UHD UHD_FOUND gnuradio-uhd_FOUND)
+ if(ENABLE_UHD)
+ GR_INCLUDE_SUBDIRECTORY(uhd)
+ endif(ENABLE_UHD)
+@@ -284,4 +270,4 @@ ENDIF(MSVC)
+ ADD_LIBRARY(gnuradio-osmosdr SHARED ${gr_osmosdr_srcs})
+ TARGET_LINK_LIBRARIES(gnuradio-osmosdr ${gr_osmosdr_libs})
+ SET_TARGET_PROPERTIES(gnuradio-osmosdr PROPERTIES DEFINE_SYMBOL "gnuradio_osmosdr_EXPORTS")
+-GR_LIBRARY_FOO(gnuradio-osmosdr)
++GR_LIBRARY_FOO_V2(gnuradio-osmosdr)
+diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
+index 8841f36..883f119 100644
+--- python/CMakeLists.txt
++++ python/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/python/__init__.py b/python/__init__.py
+index c7310e1..bc8240f 100644
+--- python/__init__.py
++++ python/__init__.py
+@@ -19,11 +19,17 @@
+ # The presence of this file turns this directory into a Python package
+ 
+ '''
+-This is the GNU Radio OsmoSDR module.
++This is the GNU Radio OSMOSDR module. Place your Python package
++description here (python/__init__.py).
+ '''
++from __future__ import unicode_literals
+ 
+ # import swig generated symbols into the osmosdr namespace
+-from osmosdr_swig import *
++try:
++    # this might fail if the module is python-only
++    from .osmosdr_swig import *
++except ImportError:
++    pass
+ 
+ # import any pure python here
+ #
+diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
+index 3949322..aabc555 100644
+--- swig/CMakeLists.txt
++++ swig/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-osmosdr
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -17,11 +18,19 @@
+ # the Free Software Foundation, Inc., 51 Franklin Street,
+ # Boston, MA 02110-1301, USA.
+ 
++########################################################################
++# Check if there is C++ code at all
++########################################################################
++if(NOT osmosdr_sources)
++    MESSAGE(STATUS "No C++ sources... skipping swig/")
++    return()
++endif(NOT osmosdr_sources)
++
+ ########################################################################
+ # Include swig generation macros
+ ########################################################################
+ find_package(SWIG)
+-find_package(PythonLibs 2)
++find_package(PythonLibs)
+ if(NOT SWIG_FOUND OR NOT PYTHONLIBS_FOUND)
+     return()
+ endif()
+@@ -31,11 +40,11 @@ include(GrPython)
+ ########################################################################
+ # Setup swig generation
+ ########################################################################
+-foreach(incdir ${GNURADIO_ALL_INCLUDE_DIRS})
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${incdir}/gnuradio/swig)
+-endforeach(incdir)
++set(GR_SWIG_INCLUDE_DIRS $<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>)
++set(GR_SWIG_TARGET_DEPS gnuradio::runtime_swig)
+ 
+ set(GR_SWIG_LIBRARIES gnuradio-osmosdr)
++
+ set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/osmosdr_swig_doc.i)
+ set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include)
+ 
+diff --git a/swig/osmosdr_swig.i b/swig/osmosdr_swig.i
+index 550008b..5e38c0a 100644
+--- swig/osmosdr_swig.i
++++ swig/osmosdr_swig.i
+@@ -2,81 +2,17 @@
+ 
+ #define OSMOSDR_API
+ 
+-// suppress Warning 319: No access specifier given for base class 'boost::noncopyable' (ignored).
+-#pragma SWIG nowarn=319
+-
+-%include "gnuradio.i"			// the common stuff
++%include "gnuradio.i"           // the common stuff
+ 
+ //load generated python docstrings
+ %include "osmosdr_swig_doc.i"
+ 
+ %{
+-#include "osmosdr/device.h"
+ #include "osmosdr/source.h"
+ #include "osmosdr/sink.h"
+ %}
+ 
+-// Workaround for a SWIG 2.0.4 bug with templates. Probably needs to be looked in to.
+-%{
+-#if PY_VERSION_HEX >= 0x03020000
+-# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
+-#else
+-# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
+-#endif
+-%}
+-
+-%template(string_vector_t) std::vector<std::string>;
+-
+-//%template(size_vector_t) std::vector<size_t>;
+-
+-%include <osmosdr/pimpl.h>
+-
+-%ignore osmosdr::device_t::operator[]; //ignore warnings about %extend
+-
+-%template(string_string_dict_t) std::map<std::string, std::string>; //define before device
+-%template(devices_t) std::vector<osmosdr::device_t>;
+-%include <osmosdr/device.h>
+-
+-//%extend std::map<std::string, std::string>{
+-//    std::string __getitem__(std::string key) {return (*self)[key];}
+-//    void __setitem__(std::string key, std::string val) {(*self)[key] = val;}
+-//};
+-
+-%template(range_vector_t) std::vector<osmosdr::range_t>; //define before range
+-%include <osmosdr/ranges.h>
+-
+-%include <osmosdr/time_spec.h>
+-
+-%extend osmosdr::time_spec_t{
+-    osmosdr::time_spec_t __add__(const osmosdr::time_spec_t &what)
+-    {
+-        osmosdr::time_spec_t temp = *self;
+-        temp += what;
+-        return temp;
+-    }
+-    osmosdr::time_spec_t __sub__(const osmosdr::time_spec_t &what)
+-    {
+-        osmosdr::time_spec_t temp = *self;
+-        temp -= what;
+-        return temp;
+-    }
+-};
+-
+-%define OSMOSDR_SWIG_BLOCK_MAGIC2(PKG, BASE_NAME)
+-%template(BASE_NAME ## _sptr) boost::shared_ptr<PKG ## :: ## BASE_NAME>;
+-%pythoncode %{
+-BASE_NAME ## _sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
+-BASE_NAME = BASE_NAME.make;
+-%}
+-%enddef
+-
+ %include "osmosdr/source.h"
++GR_SWIG_BLOCK_MAGIC2(osmosdr, source);
+ %include "osmosdr/sink.h"
+-
+-OSMOSDR_SWIG_BLOCK_MAGIC2(osmosdr,source);
+-OSMOSDR_SWIG_BLOCK_MAGIC2(osmosdr,sink);
+-
+-%{
+-static const size_t ALL_MBOARDS = osmosdr::ALL_MBOARDS;
+-%}
+-//static const size_t ALL_MBOARDS;
++GR_SWIG_BLOCK_MAGIC2(osmosdr, sink);
+-- 
+2.20.1
+
+From 8a4a3a76ed6d1b52d41dd9966b985e68e9b05b3e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Wed, 3 Apr 2019 20:57:52 +0200
+Subject: [PATCH 2/7] YML files genererated yet blocks not showing up.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ README                    |   4 +-
+ grc/gen_osmosdr_blocks.py | 841 +++++++++++++++++---------------------
+ 2 files changed, 378 insertions(+), 467 deletions(-)
+
+diff --git a/README b/README
+index 67fa475..193656f 100644
+--- README
++++ README
+@@ -1,8 +1,6 @@
+ While primarily being developed for the OsmoSDR hardware, this block
+ as well supports:
+ 
+- * FUNcube Dongle through libgnuradio-fcd
+- * FUNcube Dongle Pro+ through gr-fcdproplus
+  * sysmocom OsmoSDR Devices through libosmosdr
+  * RTL2832U based DVB-T dongles through librtlsdr
+  * RTL-TCP spectrum server (see librtlsdr project)
+@@ -22,7 +20,7 @@ as well supports:
+ By using the OsmoSDR block you can take advantage of a common software api in
+ your application(s) independent of the underlying radio hardware.
+ 
+-For installation and usage guidelines please read the documentation available
++Ftor installation and usage guidelines please read the documentation available
+ at http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
+ 
+ For the impatient :) a short excerpt:
+diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
+index 9bef7b8..8f7244d 100644
+--- grc/gen_osmosdr_blocks.py
++++ grc/gen_osmosdr_blocks.py
+@@ -19,478 +19,391 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ """
+ 
+ MAIN_TMPL = """\
+-<?xml version="1.0"?>
+-<block>
+-  <name>$(title) $sourk.title()</name>
+-  <key>$(prefix)_$(sourk)</key>
+-  <category>$($sourk.title())s</category>
+-  <throttle>1</throttle>
+-  <import>import osmosdr</import>
+-  <import>import time</import>
+-  <make>osmosdr.$(sourk)( args="numchan=" + str(\$nchan) + " " + \$args )
+-#for $m in range($max_mboards)
+-########################################################################
+-\#if \$num_mboards() > $m and \$clock_source$(m)()
+-self.\$(id).set_clock_source(\$clock_source$(m), $m)
+-\#end if
+-########################################################################
+-\#if \$num_mboards() > $m and \$time_source$(m)()
+-self.\$(id).set_time_source(\$time_source$(m), $m)
+-\#end if
+-########################################################################
+-#end for
+-\#if \$sync() == 'sync'
+-self.\$(id).set_time_unknown_pps(osmosdr.time_spec_t())
+-\#elif \$sync() == 'pc_clock'
+-self.\$(id).set_time_now(osmosdr.time_spec_t(time.time()), osmosdr.ALL_MBOARDS)
+-\#end if
+-self.\$(id).set_sample_rate(\$sample_rate)
+-#for $n in range($max_nchan)
+-\#if \$nchan() > $n
+-self.\$(id).set_center_freq(\$freq$(n), $n)
+-self.\$(id).set_freq_corr(\$corr$(n), $n)
+-#if $sourk == 'source':
+-self.\$(id).set_dc_offset_mode(\$dc_offset_mode$(n), $n)
+-self.\$(id).set_iq_balance_mode(\$iq_balance_mode$(n), $n)
+-self.\$(id).set_gain_mode(\$gain_mode$(n), $n)
+-#end if
+-self.\$(id).set_gain(\$gain$(n), $n)
+-self.\$(id).set_if_gain(\$if_gain$(n), $n)
+-self.\$(id).set_bb_gain(\$bb_gain$(n), $n)
+-self.\$(id).set_antenna(\$ant$(n), $n)
+-self.\$(id).set_bandwidth(\$bw$(n), $n)
+-\#end if
+-#end for
+-  </make>
+-  <callback>set_sample_rate(\$sample_rate)</callback>
+-  #for $n in range($max_nchan)
+-  <callback>set_center_freq(\$freq$(n), $n)</callback>
+-  <callback>set_freq_corr(\$corr$(n), $n)</callback>
+-  #if $sourk == 'source':
+-  <callback>set_dc_offset_mode(\$dc_offset_mode$(n), $n)</callback>
+-  <callback>set_iq_balance_mode(\$iq_balance_mode$(n), $n)</callback>
+-  <callback>set_gain_mode(\$gain_mode$(n), $n)</callback>
+-  #end if
+-  <callback>set_gain(\$gain$(n), $n)</callback>
+-  <callback>set_if_gain(\$if_gain$(n), $n)</callback>
+-  <callback>set_bb_gain(\$bb_gain$(n), $n)</callback>
+-  <callback>set_antenna(\$ant$(n), $n)</callback>
+-  <callback>set_bandwidth(\$bw$(n), $n)</callback>
+-  #end for
+-  <param>
+-    <name>$(dir.title())put Type</name>
+-    <key>type</key>
+-    <type>enum</type>
+-    <option>
+-      <name>Complex float32</name>
+-      <key>fc32</key>
+-      <opt>type:fc32</opt>
+-    </option>
+-  </param>
+-  <param>
+-    <name>Device Arguments</name>
+-    <key>args</key>
+-    <value></value>
+-    <type>string</type>
+-    <hide>
+-      \#if \$args()
+-        none
+-      \#else
+-        part
+-      \#end if
+-    </hide>
+-  </param>
+-  <param>
+-    <name>Sync</name>
+-    <key>sync</key>
+-    <value></value>
+-    <type>enum</type>
+-    <hide>\#if \$sync() then 'none' else 'part'#</hide>
+-    <option>
+-      <name>unknown PPS</name>
+-      <key>sync</key>
+-    </option>
+-    <option>
+-      <name>PC Clock</name>
+-      <key>pc_clock</key>
+-    </option>
+-    <option>
+-      <name>don't sync</name>
+-      <key></key>
+-    </option>
+-  </param>
+-  <param>
+-    <name>Num Mboards</name>
+-    <key>num_mboards</key>
+-    <value>1</value>
+-    <type>int</type>
+-    <hide>part</hide>
+-    #for $m in range(1, $max_mboards+1)
+-    <option>
+-      <name>$(m)</name>
+-      <key>$m</key>
+-    </option>
+-    #end for
+-  </param>
+-  #for $m in range($max_mboards)
+-  <param>
+-    <name>Mb$(m): Clock Source</name>
+-    <key>clock_source$(m)</key>
+-    <value></value>
+-    <type>string</type>
+-    <hide>
+-      \#if not \$num_mboards() > $m
+-        all
+-      \#elif \$clock_source$(m)()
+-        none
+-      \#else
+-        part
+-      \#end if
+-    </hide>
+-    <option><name>Default</name><key></key></option>
+-    <option><name>Internal</name><key>internal</key></option>
+-    <option><name>External</name><key>external</key></option>
+-    <option><name>External 1PPS</name><key>external_1pps</key></option>
+-    <option><name>MIMO Cable</name><key>mimo</key></option>
+-    <option><name>O/B GPSDO</name><key>gpsdo</key></option>
+-  </param>
+-  <param>
+-    <name>Mb$(m): Time Source</name>
+-    <key>time_source$(m)</key>
+-    <value></value>
+-    <type>string</type>
+-    <hide>
+-      \#if not \$num_mboards() > $m
+-        all
+-      \#elif \$time_source$(m)()
+-        none
+-      \#else
+-        part
+-      \#end if
+-    </hide>
+-    <option><name>Default</name><key></key></option>
+-    <option><name>External</name><key>external</key></option>
+-    <option><name>MIMO Cable</name><key>mimo</key></option>
+-    <option><name>O/B GPSDO</name><key>gpsdo</key></option>
+-  </param>
+-  #end for
+-  <param>
+-    <name>Num Channels</name>
+-    <key>nchan</key>
+-    <value>1</value>
+-    <type>int</type>
+-    #for $n in range(1, $max_nchan+1)
+-    <option>
+-      <name>$(n)</name>
+-      <key>$n</key>
+-    </option>
+-    #end for
+-  </param>
+-  <param>
+-    <name>Sample Rate (sps)</name>
+-    <key>sample_rate</key>
+-    <value>samp_rate</value>
+-    <type>real</type>
+-  </param>
+-  $params
+-  <check>$max_nchan >= \$nchan</check>
+-  <check>\$nchan > 0</check>
+-  <check>$max_mboards >= \$num_mboards</check>
+-  <check>\$num_mboards > 0</check>
+-  <check>\$nchan >= \$num_mboards</check>
+-  <$sourk>
+-    <name>$dir</name>
+-    <type>\$type.type</type>
+-    <nports>\$nchan</nports>
+-  </$sourk>
+-  <doc>
+-The osmocom $sourk block:
+-
+-While primarily being developed for the OsmoSDR hardware, this block as well supports:
+-
+-#if $sourk == 'source':
+- * FUNcube Dongle through libgnuradio-fcd
+- * FUNcube Dongle Pro+ through gr-fcdproplus
+- * sysmocom OsmoSDR Devices through libosmosdr
+- * RTL2832U based DVB-T dongles through librtlsdr
+- * RTL-TCP spectrum server (see librtlsdr project)
+- * MSi2500 based DVB-T dongles through libmirisdr
+- * SDRplay RSP devices through SDRplay library
+- * gnuradio .cfile input through libgnuradio-blocks
+- * RFSPACE SDR-IQ, SDR-IP, NetSDR (incl. X2 option)
+- * AirSpy Wideband Receiver through libairspy
+-#end if
+-#if $sourk == 'sink':
+- * gnuradio .cfile output through libgnuradio-blocks
+-#end if
+- * CCCamp 2015 rad1o Badge through libhackrf
+- * Great Scott Gadgets HackRF through libhackrf
+- * Nuand LLC bladeRF through libbladeRF library
+- * Ettus USRP Devices through Ettus UHD library
+- * Fairwaves UmTRX through Fairwaves' fork of UHD
+- * Red Pitaya SDR transceiver (http://bazaar.redpitaya.com)
+- * FreeSRP through libfreesrp library
+-
+-By using the osmocom $sourk block you can take advantage of a common software api in your application(s) independent of the underlying radio hardware.
+-
+-Output Type:
+-This parameter controls the data type of the stream in gnuradio. Only complex float32 samples are supported at the moment.
+-
+-Device Arguments:
+-The device argument is a comma delimited string used to locate devices on your system. Device arguments for multiple devices may be given by separating them with a space.
+-Use the device id or name/serial (if applicable) to specify a certain device or list of devices. If left blank, the first device found will be used.
+-
+-Examples:
+-
+-Optional arguments are placed into [] brackets, remove the brackets before using them! Specific variable values are separated with a |, choose one of them. Variable values containing spaces shall be enclosed in '' as demonstrated in examples section below.
+-Lines ending with ... mean it's possible to bind devices together by specifying multiple device arguments separated with a space.
+-
+-#if $sourk == 'source':
+-  fcd=0[,device=hw:2][,type=2]
+-  miri=0[,buffers=32] ...
+-  rtl=serial_number ...
+-  rtl=0[,rtl_xtal=28.8e6][,tuner_xtal=28.8e6] ...
+-  rtl=1[,buffers=32][,buflen=N*512] ...
+-  rtl=2[,direct_samp=0|1|2][,offset_tune=0|1][,bias=0|1] ...
+-  rtl_tcp=127.0.0.1:1234[,psize=16384][,direct_samp=0|1|2][,offset_tune=0|1][,bias=0|1] ...
+-  osmosdr=0[,buffers=32][,buflen=N*512] ...
+-  file='/path/to/your file',rate=1e6[,freq=100e6][,repeat=true][,throttle=true] ...
+-  netsdr=127.0.0.1[:50000][,nchan=2]
+-  sdr-ip=127.0.0.1[:50000]
+-  cloudiq=127.0.0.1[:50000]
+-  sdr-iq=/dev/ttyUSB0
+-  airspy=0[,bias=0|1][,linearity][,sensitivity]
+-#end if
+-#if $sourk == 'sink':
+-  file='/path/to/your file',rate=1e6[,freq=100e6][,append=true][,throttle=true] ...
+-#end if
+-  redpitaya=192.168.1.100[:1001]
+-  freesrp=0[,fx3='path/to/fx3.img',fpga='path/to/fpga.bin',loopback]
+-  hackrf=0[,buffers=32][,bias=0|1][,bias_tx=0|1]
+-  bladerf=0[,tamer=internal|external|external_1pps][,smb=25e6]
+-  uhd[,serial=...][,lo_offset=0][,mcr=52e6][,nchan=2][,subdev='\\\\'B:0 A:0\\\\''] ...
+-
+-Num Channels:
+-Selects the total number of channels in this multi-device configuration. Required when specifying multiple device arguments.
+-
+-Sample Rate:
+-The sample rate is the number of samples per second output by this block on each channel.
+-
+-Frequency:
+-The center frequency is the frequency the RF chain is tuned to.
+-
+-Freq. Corr.:
+-The frequency correction factor in parts per million (ppm). Set to 0 if unknown.
+-
+-#if $sourk == 'source':
+-DC Offset Mode:
+-Controls the behavior of hardware DC offset corrrection.
+-  Off: Disable correction algorithm (pass through).
+-  Manual: Keep last estimated correction when switched from Automatic to Manual.
+-  Automatic: Periodicallly find the best solution to compensate for DC offset.
+-
+-This functionality is available for USRP devices only.
+-
+-IQ Balance Mode:
+-Controls the behavior of software IQ imbalance corrrection.
+-  Off: Disable correction algorithm (pass through).
+-  Manual: Keep last estimated correction when switched from Automatic to Manual.
+-  Automatic: Periodicallly find the best solution to compensate for image signals.
+-
+-This functionality depends on http://cgit.osmocom.org/cgit/gr-iqbal/
+-
+-Gain Mode:
+-Chooses between the manual (default) and automatic gain mode where appropriate.
+-To allow manual control of RF/IF/BB gain stages, manual gain mode must be configured.
+-Currently, only RTL-SDR devices support automatic gain mode.
+-
+-#end if
+-RF Gain:
+-Overall RF gain of the device.
+-
+-IF Gain:
+-Overall intermediate frequency gain of the device.
+-This setting is available for RTL-SDR and OsmoSDR devices with E4000 tuners and HackRF in receive and transmit mode. Observations lead to a reasonable gain range from 15 to 30dB.
+-
+-BB Gain:
+-Overall baseband gain of the device.
+-This setting is available for HackRF in receive mode. Observations lead to a reasonable gain range from 15 to 30dB.
+-
+-Antenna:
+-For devices with only one antenna, this may be left blank.
+-Otherwise, the user should specify one of the possible antenna choices.
+-
+-Bandwidth:
+-Set the bandpass filter on the radio frontend. To use the default (automatic) bandwidth filter setting, this should be zero.
+-
+-See the OsmoSDR project page for more detailed documentation:
+-http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
+-http://sdr.osmocom.org/trac/wiki/rtl-sdr
+-http://sdr.osmocom.org/trac/
+-  </doc>
+-</block>
++id: ${prefix}_${sourk}
++label: '${title} ${sourk.title()}'
++category: '[OsmoSDR]'
++flags: throttle
++
++parameters:
++- id: type
++  label: '${direction.title()}put Type'
++  dtype: enum
++  options: [fc32]
++  options_labels: [Complex Float32]
++  options_attributes:
++      type: [fc32]
++  hide: part
++- id: dev_args
++  label: 'Device Arguments'
++  dtype: string
++  default: '""'
++  hide: ${'$'}{ 'none' if dev_args else 'part'}
++- id: sync
++  label: Sync
++  dtype: enum
++  options: [sync, pc_clock, none]
++  options_labels: [Unknown PPS, PC Clock, Don't Sync]
++  hide: ${'$'}{ 'none' if sync else 'part'}
++- id: num_mboards
++  label: 'Number MBoards'
++  type: int
++  default: 1
++  options: [ ${", ".join([str(n) for n in range(1, max_mboards+1)])} ]
++  hide: part
++% for m in range(max_mboards):
++- id: clock_source${m}
++  label: 'MB${m}: Clock Source'
++  dtype: string
++  options: ['', internal, external, external_1pps, mimo, gpsdo]
++  options_labels: [Default, Internal, External, External 1PPS, MIMO Cable, O/B GPSDO]
++  hide: ${'$'}{ 'all' if not (num_mboards > ${m}) else ( 'none' if clock_source${m} else 'part' )}
++- id: time_source${m}
++  label: 'MB${m}: Time Source'
++  dtype: string
++  options: ['', external, mimo, gpsdo]
++  options_labels: [Default, External, MIMO Cable, O/B GPSDO]
++  hide: ${'$'}{ 'all' if not (num_mboards > ${m}) else ( 'none' if time_source${m} else 'part' )}  
++% endfor
++- id: nchan
++  label: 'Number Channels'
++  type: int
++  default: 1
++  options: [ ${", ".join([str(n) for n in range(1, max_nchan+1)])} ]
++- id: sample_rate
++  label: 'Sample Rate (sps)'
++  dtype: real
++  default: samp_rate
++${params}
++
++inputs:
++- domain: message
++  id: command
++  optional: true
++% if sourk == 'source':
++
++outputs:
++% endif
++- domain: stream
++  dtype: ${'$'}{type.type}
++  multiplicity: ${'$'}{nchan}
++% if sourk == 'sink':
++
++outputs:
++- domain: message
++  id: async_msgs
++  optional: true
++% endif
++
++templates:
++  imports: |-
++     import osmosdr
++     import time
++  make: |
++    osmosdr.${sourk}(
++        args="numchan=" + str(${'$'}{nchan}) + " " + ${'$'}{args}
++    )
++    % for m in range(max_mboards):
++    ${'%'} if context.get('num_mboards')() > ${m}:
++    ${'%'} if context.get('clock_source${m}')():
++    self.${'$'}{id}.set_clock_source(${'$'}{${'clock_source' + str(m)}}, ${m})
++    ${'%'} endif
++    ${'%'} if context.get('time_source${m}')():
++    self.${'$'}{id}.set_time_source(${'$'}{${'time_source' + str(m)}}, ${m})
++    ${'%'} endif
++    ${'%'} endif
++    % endfor
++    ${'%'} if sync == 'sync':
++    self.${'$'}{id}.set_time_unknown_pps(osmosdr.time_spec_t())
++    ${'%'} elif sync == 'pc_clock':
++    self.${'$'}{id}.set_time_now(osmosdr.time_spec_t(time.time()), osmosdr.ALL_MBOARDS)
++    ${'%'} endif
++    self.${'$'}{id}.set_sample_rate(${'$'}{sample_rate})
++    % for n in range(max_nchan):
++    ${'%'} if context.get('nchan')() > ${n}:
++    self.${'$'}{id}.set_center_freq(${'$'}{${'freq' + str(n)}}, ${n})
++    self.${'$'}{id}.set_freq_corr(${'$'}{${'corr' + str(n)}}, ${n})
++    ${'%'} if context.get('sourk') == 'source':
++    self.${'$'}{id}.set_dc_offset_mode(${'$'}{${'dc_offset_mode' + str(n)}}, ${n})
++    self.${'$'}{id}.set_iq_balance_mode(${'$'}{${'iq_balance_mode' + str(n)}}, ${n})
++    self.${'$'}{id}.set_gain_mode(${'$'}{${'gain_mode' + str(n)}}, ${n})
++    ${'%'} endif
++    self.${'$'}{id}.set_gain(${'$'}{${'gain' + str(n)}}, ${n})
++    self.${'$'}{id}.set_if_gain(${'$'}{${'if_gain' + str(n)}}, ${n})
++    self.${'$'}{id}.set_bb_gain(${'$'}{${'bb_gain' + str(n)}}, ${n})
++    self.${'$'}{id}.set_antenna(${'$'}{${'ant' + str(n)}}, ${n})
++    self.${'$'}{id}.set_bandwidth(${'$'}{${'bw' + str(n)}}, ${n})
++    ${'%'} endif
++    % endfor
++  callbacks:
++    - set_sample_rate(${'$'}{sample_rate})
++    % for n in range(max_nchan):
++    - set_centre_freq(${'$'}{${'freq' + str(n)}}, ${n})
++    - set_freq_corr(${'$'}{${'corr' + str(n)}}, ${n})
++    % if sourk == 'source':
++    - set_dc_offset_mode(${'$'}{${'dc_offset_mode' + str(n)}}, ${n})
++    - set_iq_balance_mode(${'$'}{${'iq_balance_mode' + str(n)}}, ${n})
++    - set_gain_mode(${'$'}{${'gain_mode' + str(n)}}, ${n})
++    % endif
++    - set_gain(${'$'}{${'gain' + str(n)}}, ${n})
++    - set_if_gain(${'$'}{${'if_gain' + str(n)}}, ${n})
++    - set_bb_gain(${'$'}{${'bb_gain' + str(n)}}, ${n})
++    - set_antenna(${'$'}{${'ant' + str(n)}}, ${n})
++    - set_bandwidth(${'$'}{${'bw' + str(n)}}, ${n})
++    % endfor
++
++documentation: |-
++  The osmocom ${sourk} block:
++
++  While primarily being developed for the OsmoSDR hardware, this block as well supports:
++
++  % if sourk == 'source':
++   * sysmocom OsmoSDR Devices through libosmosdr
++   * RTL2832U based DVB-T dongles through librtlsdr
++   * RTL-TCP spectrum server (see librtlsdr project)
++   * MSi2500 based DVB-T dongles through libmirisdr
++   * SDRplay RSP devices through SDRplay library
++   * gnuradio .cfile input through libgnuradio-blocks
++   * RFSPACE SDR-IQ, SDR-IP, NetSDR (incl. X2 option)
++   * AirSpy Wideband Receiver through libairspy
++  % endif
++  % if sourk == 'sink':
++   * gnuradio .cfile output through libgnuradio-blocks
++  % endif
++   * CCCamp 2015 rad1o Badge through libhackrf
++   * Great Scott Gadgets HackRF through libhackrf
++   * Nuand LLC bladeRF through libbladeRF library
++   * Ettus USRP Devices through Ettus UHD library
++   * Fairwaves UmTRX through Fairwaves' fork of UHD
++   * Red Pitaya SDR transceiver (http://bazaar.redpitaya.com)
++   * FreeSRP through libfreesrp library
++
++  By using the osmocom $sourk block you can take advantage of a common software api in your application(s) independent of the underlying radio hardware.
++
++  Output Type:
++  This parameter controls the data type of the stream in gnuradio. Only complex float32 samples are supported at the moment.
++
++  Device Arguments:
++  The device argument is a comma delimited string used to locate devices on your system. Device arguments for multiple devices may be given by separating them with a space.
++  Use the device id or name/serial (if applicable) to specify a certain device or list of devices. If left blank, the first device found will be used.
++
++  Examples:
++
++  Optional arguments are placed into [] brackets, remove the brackets before using them! Specific variable values are separated with a |, choose one of them. Variable values containing spaces shall be enclosed in '' as demonstrated in examples section below.
++  Lines ending with ... mean it's possible to bind devices together by specifying multiple device arguments separated with a space.
++
++  % if sourk == 'source':
++    miri=0[,buffers=32] ...
++    rtl=serial_number ...
++    rtl=0[,rtl_xtal=28.8e6][,tuner_xtal=28.8e6] ...
++    rtl=1[,buffers=32][,buflen=N*512] ...
++    rtl=2[,direct_samp=0|1|2][,offset_tune=0|1][,bias=0|1] ...
++    rtl_tcp=127.0.0.1:1234[,psize=16384][,direct_samp=0|1|2][,offset_tune=0|1][,bias=0|1] ...
++    osmosdr=0[,buffers=32][,buflen=N*512] ...
++    file='/path/to/your file',rate=1e6[,freq=100e6][,repeat=true][,throttle=true] ...
++    netsdr=127.0.0.1[:50000][,nchan=2]
++    sdr-ip=127.0.0.1[:50000]
++    cloudiq=127.0.0.1[:50000]
++    sdr-iq=/dev/ttyUSB0
++    airspy=0[,bias=0|1][,linearity][,sensitivity]
++  % endif
++  % if sourk == 'sink':
++    file='/path/to/your file',rate=1e6[,freq=100e6][,append=true][,throttle=true] ...
++  % endif
++    redpitaya=192.168.1.100[:1001]
++    freesrp=0[,fx3='path/to/fx3.img',fpga='path/to/fpga.bin',loopback]
++    hackrf=0[,buffers=32][,bias=0|1][,bias_tx=0|1]
++    bladerf=0[,tamer=internal|external|external_1pps][,smb=25e6]
++    uhd[,serial=...][,lo_offset=0][,mcr=52e6][,nchan=2][,subdev='\\\\'B:0 A:0\\\\''] ...
++
++  Num Channels:
++  Selects the total number of channels in this multi-device configuration. Required when specifying multiple device arguments.
++
++  Sample Rate:
++  The sample rate is the number of samples per second output by this block on each channel.
++
++  Frequency:
++  The center frequency is the frequency the RF chain is tuned to.
++
++  Freq. Corr.:
++  The frequency correction factor in parts per million (ppm). Set to 0 if unknown.
++
++  % if sourk == 'source':
++  DC Offset Mode:
++  Controls the behavior of hardware DC offset corrrection.
++    Off: Disable correction algorithm (pass through).
++    Manual: Keep last estimated correction when switched from Automatic to Manual.
++    Automatic: Periodicallly find the best solution to compensate for DC offset.
++
++  This functionality is available for USRP devices only.
++
++  IQ Balance Mode:
++  Controls the behavior of software IQ imbalance corrrection.
++    Off: Disable correction algorithm (pass through).
++    Manual: Keep last estimated correction when switched from Automatic to Manual.
++    Automatic: Periodicallly find the best solution to compensate for image signals.
++
++  This functionality depends on http://cgit.osmocom.org/cgit/gr-iqbal/
++
++  Gain Mode:
++  Chooses between the manual (default) and automatic gain mode where appropriate.
++  To allow manual control of RF/IF/BB gain stages, manual gain mode must be configured.
++  Currently, only RTL-SDR devices support automatic gain mode.
++
++  % endif
++  RF Gain:
++  Overall RF gain of the device.
++
++  IF Gain:
++  Overall intermediate frequency gain of the device.
++  This setting is available for RTL-SDR and OsmoSDR devices with E4000 tuners and HackRF in receive and transmit mode. Observations lead to a reasonable gain range from 15 to 30dB.
++
++  BB Gain:
++  Overall baseband gain of the device.
++  This setting is available for HackRF in receive mode. Observations lead to a reasonable gain range from 15 to 30dB.
++
++  Antenna:
++  For devices with only one antenna, this may be left blank.
++  Otherwise, the user should specify one of the possible antenna choices.
++
++  Bandwidth:
++  Set the bandpass filter on the radio frontend. To use the default (automatic) bandwidth filter setting, this should be zero.
++
++  See the OsmoSDR project page for more detailed documentation:
++  http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
++  http://sdr.osmocom.org/trac/wiki/rtl-sdr
++  http://sdr.osmocom.org/trac/
++  
++file_format: 1
+ """
+ 
++# MAIN_TMPL = """\
++# <block>
++#   <check>$max_nchan >= \$nchan</check>
++#   <check>\$nchan > 0</check>
++#   <check>$max_mboards >= \$num_mboards</check>
++#   <check>\$num_mboards > 0</check>
++#   <check>\$nchan >= \$num_mboards</check>
++# </block>
++# """
++
+ PARAMS_TMPL = """
+-  <param>
+-    <name>Ch$(n): Frequency (Hz)</name>
+-    <key>freq$(n)</key>
+-    <value>100e6</value>
+-    <type>real</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-  </param>
+-  <param>
+-  <name>Ch$(n): Freq. Corr. (ppm)</name>
+-    <key>corr$(n)</key>
+-    <value>0</value>
+-    <type>real</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-  </param>
+-#if $sourk == 'source':
+-  <param>
+-    <name>Ch$(n): DC Offset Mode</name>
+-    <key>dc_offset_mode$(n)</key>
+-    <value>0</value>
+-    <type>int</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-    <option>
+-      <name>Off</name>
+-      <key>0</key>
+-    </option>
+-    <option>
+-      <name>Manual</name>
+-      <key>1</key>
+-    </option>
+-    <option>
+-      <name>Automatic</name>
+-      <key>2</key>
+-    </option>
+-  </param>
+-  <param>
+-    <name>Ch$(n): IQ Balance Mode</name>
+-    <key>iq_balance_mode$(n)</key>
+-    <value>0</value>
+-    <type>int</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-    <option>
+-      <name>Off</name>
+-      <key>0</key>
+-    </option>
+-    <option>
+-      <name>Manual</name>
+-      <key>1</key>
+-    </option>
+-    <option>
+-      <name>Automatic</name>
+-      <key>2</key>
+-    </option>
+-  </param>
+-  <param>
+-    <name>Ch$(n): Gain Mode</name>
+-    <key>gain_mode$(n)</key>
+-    <value>False</value>
+-    <type>bool</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-    <option>
+-      <name>Manual</name>
+-      <key>False</key>
+-    </option>
+-    <option>
+-      <name>Automatic</name>
+-      <key>True</key>
+-    </option>
+-  </param>
+-#end if
+-  <param>
+-    <name>Ch$(n): RF Gain (dB)</name>
+-    <key>gain$(n)</key>
+-    <value>10</value>
+-    <type>real</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-  </param>
+-  <param>
+-    <name>Ch$(n): IF Gain (dB)</name>
+-    <key>if_gain$(n)</key>
+-    <value>20</value>
+-    <type>real</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-  </param>
+-  <param>
+-    <name>Ch$(n): BB Gain (dB)</name>
+-    <key>bb_gain$(n)</key>
+-    <value>20</value>
+-    <type>real</type>
+-    <hide>\#if \$nchan() > $n then 'none' else 'all'#</hide>
+-  </param>
+-  <param>
+-    <name>Ch$(n): Antenna</name>
+-    <key>ant$(n)</key>
+-    <value></value>
+-    <type>string</type>
+-    <hide>
+-      \#if not \$nchan() > $n
+-        all
+-      \#elif \$ant$(n)()
+-        none
+-      \#else
+-        part
+-      \#end if
+-    </hide>
+-  </param>
+-  <param>
+-    <name>Ch$(n): Bandwidth (Hz)</name>
+-    <key>bw$(n)</key>
+-    <value>0</value>
+-    <type>real</type>
+-    <hide>
+-      \#if not \$nchan() > $n
+-        all
+-      \#elif \$bw$(n)()
+-        none
+-      \#else
+-        part
+-      \#end if
+-    </hide>
+-  </param>
++- id: freq${n}
++  label: 'Ch${n}: Frequency (Hz)'
++  dtype: real
++  default: 100e6
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: corr${n}
++  label: 'Ch${n}: Frequency Correction (ppm)'
++  dtype: real
++  default: 0
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++% if sourk == 'source':
++- id: dc_offset_mode${n}
++  label: 'Ch${n}: DC Offset Mode'
++  dtype: int
++  default: 0
++  options: [0, 1, 2]
++  options_labels: [Off, Manual, Automatic]
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: iq_balance_mode${n}
++  label: 'Ch${n}: IQ Balance Mode'
++  dtype: int
++  default: 0
++  options: [0, 1, 2]
++  options_labels: [Off, Manual, Automatic]
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: gain_mode${n}
++  label: 'Ch${n}: Gain Mode'
++  dtype: bool
++  default: False
++  options: [False, True]
++  options_labels: [Manual, Automatic]
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++% endif
++- id: gain${n}
++  label: 'Ch${n}: RF Gain (dB)'
++  dtype: real
++  default: 10
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: if_gain${n}
++  label: 'Ch${n}: IF Gain (dB)'
++  dtype: real
++  default: 20
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: bb_gain${n}
++  label: 'Ch${n}: BB Gain (dB)'
++  dtype: real
++  default: 20
++  hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
++- id: ant${n}
++  label: 'Ch${n}: Antenna'
++  dtype: string
++  default: ""
++  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('ant' + str(n)) else 'part')}
++- id: bw${n}
++  label: 'Ch${n}: Bandwidth (Hz)'
++  dtype: real
++  default: 0
++  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('bw' + str(n)) else 'part')}
+ """
+ 
++# def parse_tmpl(_tmpl, **kwargs):
++#     from Cheetah import Template
++#     return str(Template.Template(_tmpl, kwargs))
++
+ def parse_tmpl(_tmpl, **kwargs):
+-  from Cheetah import Template
+-  return str(Template.Template(_tmpl, kwargs))
++    from mako.template import Template
++    from mako import exceptions
++
++    try:
++        block_template = Template(_tmpl)
++        return str(block_template.render(**kwargs))
++    except:
++        print(exceptions.text_error_template().render())
+ 
+-max_num_mboards = 8
+-max_num_channels = max_num_mboards*4
++MAX_NUM_MBOARDS = 8
++MAX_NUM_CHANNELS = MAX_NUM_MBOARDS * 4
+ 
+ import os.path
+ 
+ if __name__ == '__main__':
+-  import sys
+-  for file in sys.argv[1:]:
+-    head, tail = os.path.split(file)
+-
+-    if tail.startswith('rtlsdr'):
+-      title = 'RTL-SDR'
+-      prefix = 'rtlsdr'
+-    elif tail.startswith('osmosdr'):
+-      title = 'osmocom'
+-      prefix = 'osmosdr'
+-    else: raise Exception("file {} has wrong syntax!".format(tail))
+-
+-    if tail.endswith ('source.yml'):
+-      sourk = 'source'
+-      dir = 'out'
+-    elif tail.endswith ('sink.yml'):
+-      sourk = 'sink'
+-      dir = 'in'
+-    else: raise Exception("is {} a source or sink?".format(file))
+-
+-    params = ''.join([parse_tmpl(PARAMS_TMPL, n=n, sourk=sourk) for n in range(max_num_channels)])
+-    open(file, 'w').write(parse_tmpl(MAIN_TMPL,
+-      max_nchan=max_num_channels,
+-      max_mboards=max_num_mboards,
+-      params=params,
+-      title=title,
+-      prefix=prefix,
+-      sourk=sourk,
+-      dir=dir,
+-    ))
++    import sys
++
++    for file in sys.argv[1:]:
++        head, tail = os.path.split(file)
++
++        if tail.startswith('rtlsdr'):
++            title = 'RTL-SDR'
++            prefix = 'rtlsdr'
++        elif tail.startswith('osmosdr'):
++            title = 'osmocom'
++            prefix = 'osmosdr'
++        else:
++            raise Exception("file {} has wrong syntax!".format(tail))
++
++        if tail.endswith('source.yml'):
++            sourk = 'source'
++            direction = 'out'
++        elif tail.endswith('sink.yml'):
++            sourk = 'sink'
++            direction = 'in'
++        else:
++            raise Exception("is {} a source or sink?".format(file))
++
++        params = ''.join([
++            parse_tmpl(PARAMS_TMPL, n=n, sourk=sourk)
++            for n in range(MAX_NUM_CHANNELS)
++        ])
++
++        open(file, 'w').write(
++            parse_tmpl(
++                MAIN_TMPL,
++                max_nchan=MAX_NUM_CHANNELS,
++                max_mboards=MAX_NUM_MBOARDS,
++                params=params,
++                title=title,
++                prefix=prefix,
++                sourk=sourk,
++                direction=direction,
++            )
++        )
+-- 
+2.20.1
+
+From 9615c8f154ef6362b05b37a1a751380046257c78 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Wed, 3 Apr 2019 23:28:37 +0200
+Subject: [PATCH 3/7] YAML blocks visible and cleaned up of typos.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ grc/CMakeLists.txt        |  6 +++---
+ grc/gen_osmosdr_blocks.py | 28 ++++++++++++++--------------
+ 2 files changed, 17 insertions(+), 17 deletions(-)
+
+diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
+index 26b4d3a..714d88c 100644
+--- grc/CMakeLists.txt
++++ grc/CMakeLists.txt
+@@ -32,9 +32,9 @@ macro(GEN_BLOCK_YAML _generator _yaml_block)
+     )
+ endmacro(GEN_BLOCK_YAML)
+ 
+-GEN_BLOCK_YAML(gen_osmosdr_blocks.py    rtlsdr_source.yml)
+-GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_source.yml)
+-GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_sink.yml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    rtlsdr_source.block.yml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_source.block.yml)
++GEN_BLOCK_YAML(gen_osmosdr_blocks.py    osmosdr_sink.block.yml)
+ 
+ add_custom_target(osmosdr_grc_yaml_blocks ALL DEPENDS ${yaml_blocks})
+ 
+diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
+index 8f7244d..e30cc70 100644
+--- grc/gen_osmosdr_blocks.py
++++ grc/gen_osmosdr_blocks.py
+@@ -29,8 +29,8 @@ parameters:
+   label: '${direction.title()}put Type'
+   dtype: enum
+   options: [fc32]
+-  options_labels: [Complex Float32]
+-  options_attributes:
++  option_labels: [Complex Float32]
++  option_attributes:
+       type: [fc32]
+   hide: part
+ - id: dev_args
+@@ -42,11 +42,11 @@ parameters:
+   label: Sync
+   dtype: enum
+   options: [sync, pc_clock, none]
+-  options_labels: [Unknown PPS, PC Clock, Don't Sync]
++  option_labels: [Unknown PPS, PC Clock, Don't Sync]
+   hide: ${'$'}{ 'none' if sync else 'part'}
+ - id: num_mboards
+   label: 'Number MBoards'
+-  type: int
++  dtype: int
+   default: 1
+   options: [ ${", ".join([str(n) for n in range(1, max_mboards+1)])} ]
+   hide: part
+@@ -55,18 +55,18 @@ parameters:
+   label: 'MB${m}: Clock Source'
+   dtype: string
+   options: ['', internal, external, external_1pps, mimo, gpsdo]
+-  options_labels: [Default, Internal, External, External 1PPS, MIMO Cable, O/B GPSDO]
++  option_labels: [Default, Internal, External, External 1PPS, MIMO Cable, O/B GPSDO]
+   hide: ${'$'}{ 'all' if not (num_mboards > ${m}) else ( 'none' if clock_source${m} else 'part' )}
+ - id: time_source${m}
+   label: 'MB${m}: Time Source'
+   dtype: string
+   options: ['', external, mimo, gpsdo]
+-  options_labels: [Default, External, MIMO Cable, O/B GPSDO]
++  option_labels: [Default, External, MIMO Cable, O/B GPSDO]
+   hide: ${'$'}{ 'all' if not (num_mboards > ${m}) else ( 'none' if time_source${m} else 'part' )}  
+ % endfor
+ - id: nchan
+   label: 'Number Channels'
+-  type: int
++  dtype: int
+   default: 1
+   options: [ ${", ".join([str(n) for n in range(1, max_nchan+1)])} ]
+ - id: sample_rate
+@@ -303,21 +303,21 @@ PARAMS_TMPL = """
+   dtype: int
+   default: 0
+   options: [0, 1, 2]
+-  options_labels: [Off, Manual, Automatic]
++  option_labels: [Off, Manual, Automatic]
+   hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
+ - id: iq_balance_mode${n}
+   label: 'Ch${n}: IQ Balance Mode'
+   dtype: int
+   default: 0
+   options: [0, 1, 2]
+-  options_labels: [Off, Manual, Automatic]
++  option_labels: [Off, Manual, Automatic]
+   hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
+ - id: gain_mode${n}
+   label: 'Ch${n}: Gain Mode'
+   dtype: bool
+   default: False
+   options: [False, True]
+-  options_labels: [Manual, Automatic]
++  option_labels: [Manual, Automatic]
+   hide: ${'$'}{'none' if (nchan > ${n}) else 'all'}
+ % endif
+ - id: gain${n}
+@@ -339,12 +339,12 @@ PARAMS_TMPL = """
+   label: 'Ch${n}: Antenna'
+   dtype: string
+   default: ""
+-  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('ant' + str(n)) else 'part')}
++  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('ant' + str(${n})) else 'part')}
+ - id: bw${n}
+   label: 'Ch${n}: Bandwidth (Hz)'
+   dtype: real
+   default: 0
+-  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('bw' + str(n)) else 'part')}
++  hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('bw' + str(${n})) else 'part')}
+ """
+ 
+ # def parse_tmpl(_tmpl, **kwargs):
+@@ -381,10 +381,10 @@ if __name__ == '__main__':
+         else:
+             raise Exception("file {} has wrong syntax!".format(tail))
+ 
+-        if tail.endswith('source.yml'):
++        if tail.endswith('source.block.yml'):
+             sourk = 'source'
+             direction = 'out'
+-        elif tail.endswith('sink.yml'):
++        elif tail.endswith('sink.block.yml'):
+             sourk = 'sink'
+             direction = 'in'
+         else:
+-- 
+2.20.1
+
+From ba70b235d56bd8770d708e5953b295aed8ab028f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Sun, 7 Apr 2019 19:44:33 +0200
+Subject: [PATCH 4/7] Fixed version which should build and run on gr3.8.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ CMakeLists.txt                            |  44 +-
+ README                                    |   2 +-
+ apps/CMakeLists.txt                       |   5 +-
+ apps/osmocom_siggen_base.py               |  86 +--
+ cmake/Modules/FindGnuradioFCD.cmake       |  34 +
+ cmake/Modules/FindGnuradioFCDPP.cmake     |  34 +
+ cmake/Modules/FindGnuradioIQBalance.cmake |  29 +
+ cmake/Modules/FindGnuradioUHD.cmake       |  34 +
+ cmake/Modules/FindUHD.cmake               |  28 +
+ cmake/Modules/GrComponent.cmake           | 115 ++++
+ cmake/Modules/GrMiscUtils.cmake           | 519 +++++++++++++++
+ cmake/Modules/GrPlatform.cmake            |  54 ++
+ cmake/Modules/GrPython.cmake              | 242 +++++++
+ cmake/Modules/GrTest.cmake                | 143 ++++
+ cmake/Modules/GrVersion.cmake             |  82 +++
+ grc/gen_osmosdr_blocks.py                 |   6 +-
+ include/osmosdr/CMakeLists.txt            |  12 +-
+ include/osmosdr/api.h                     |   3 +-
+ include/osmosdr/sink.h                    | 689 ++++++++++----------
+ include/osmosdr/source.h                  | 755 +++++++++++-----------
+ lib/CMakeLists.txt                        |  15 +-
+ python/CMakeLists.txt                     |   3 +-
+ python/__init__.py                        |   7 +-
+ swig/CMakeLists.txt                       |  14 +-
+ swig/osmosdr_swig.i                       |  70 +-
+ 25 files changed, 2201 insertions(+), 824 deletions(-)
+ create mode 100644 cmake/Modules/FindGnuradioFCD.cmake
+ create mode 100644 cmake/Modules/FindGnuradioFCDPP.cmake
+ create mode 100644 cmake/Modules/FindGnuradioIQBalance.cmake
+ create mode 100644 cmake/Modules/FindGnuradioUHD.cmake
+ create mode 100644 cmake/Modules/FindUHD.cmake
+ create mode 100644 cmake/Modules/GrComponent.cmake
+ create mode 100644 cmake/Modules/GrMiscUtils.cmake
+ create mode 100644 cmake/Modules/GrPlatform.cmake
+ create mode 100644 cmake/Modules/GrPython.cmake
+ create mode 100644 cmake/Modules/GrTest.cmake
+ create mode 100644 cmake/Modules/GrVersion.cmake
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e932d70..f836233 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -1,7 +1,6 @@
+-# Copyright 2011,2012,2014,2016,2018 Free Software Foundation, Inc.
++# Copyright 2012 Free Software Foundation, Inc.
+ #
+-# This file was generated by gr_modtool, a tool from the GNU Radio framework
+-# This file is a part of gr-osmosdr
++# This file is part of GNU Radio
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -47,6 +46,8 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
+ #make sure our local CMake Modules path comes first
+ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
+ 
++set(ENABLE_NONFREE FALSE CACHE BOOL "Enable or disable nonfree components.")
++
+ # Set the version information here
+ set(VERSION_INFO_MAJOR_VERSION 0)
+ set(VERSION_INFO_API_COMPAT    1)
+@@ -107,17 +108,12 @@ ELSEIF(MSVC)
+     ENDIF()
+ ENDIF()
+ 
+-#if((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
+-#    CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+-#    AND NOT WIN32)
+-#    #http://gcc.gnu.org/wiki/Visibility
+-#    add_definitions(-fvisibility=hidden)
+-#endif()
+ 
+ ########################################################################
+ # Install directories
+ ########################################################################
+-find_package(Gnuradio "3.8" REQUIRED) # Side effect of MODULE_PATH getting prepended with system components
++find_package(Gnuradio REQUIRED) # Side effect of MODULE_PATH getting prepended with system components
++list(REVERSE CMAKE_MODULE_PATH)
+ set(MIN_GR_VERSION "3.8")
+ if("${Gnuradio_VERSION}" VERSION_LESS MIN_GR_VERSION)
+     MESSAGE(FATAL_ERROR "GnuRadio version required: >=\"" ${MIN_GR_VERSION} "\" found: \"" ${Gnuradio_VERSION} "\"")
+@@ -130,18 +126,19 @@ if(NOT CMAKE_MODULES_DIR)
+     set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
+ endif(NOT CMAKE_MODULES_DIR)
+ 
+-#set(GR_RUNTIME_DIR      bin)
++set(GR_CMAKE_DIR        ${CMAKE_MODULES_DIR}/osmosdr)
++set(GR_RUNTIME_DIR      bin)
+ set(GR_LIBRARY_DIR      lib${LIB_SUFFIX})
+-#set(GR_INCLUDE_DIR      include)
+-#set(GR_DATA_DIR         share)
++set(GR_INCLUDE_DIR      include)
++set(GR_DATA_DIR         share)
+ set(GR_PKG_DATA_DIR     ${GR_DATA_DIR}/${CMAKE_PROJECT_NAME})
+-#set(GR_DOC_DIR          ${GR_DATA_DIR}/doc)
++set(GR_DOC_DIR          ${GR_DATA_DIR}/doc)
+ if (NOT GR_PKG_DOC_DIR)
+     set(GR_PKG_DOC_DIR      ${GR_DOC_DIR}/${CMAKE_PROJECT_NAME})
+ endif()
+-#set(GR_CONF_DIR         etc)
++set(GR_CONF_DIR         etc)
+ set(GR_PKG_CONF_DIR     ${GR_CONF_DIR}/${CMAKE_PROJECT_NAME}/conf.d)
+-#set(GR_LIBEXEC_DIR      libexec)
++set(GR_LIBEXEC_DIR      libexec)
+ set(GR_PKG_LIBEXEC_DIR  ${GR_LIBEXEC_DIR}/${CMAKE_PROJECT_NAME})
+ set(GRC_BLOCKS_DIR      ${GR_PKG_DATA_DIR}/grc/blocks)
+ 
+@@ -166,11 +163,11 @@ if(APPLE)
+ endif(APPLE)
+ 
+ ########################################################################
+-# Find gnuradio build dependencies
++# Find build dependencies
+ ########################################################################
+ set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS)
+ 
+-find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++#[[find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
+ message(STATUS "Found Block Block: ${gnuradio-blocks_FOUND}")
+ 
+ find_package(gnuradio-pmt PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
+@@ -198,9 +195,11 @@ message (STATUS "Found UHD Block: ${gnuradio-uhd_FOUND}")
+ message(STATUS " Searching for Volk...")
+ #find_package(Gnuradio COMPONENTS Volk REQUIRED)
+ find_package(volk PATHS ${GR_PREFIX}/lib/cmake/volk)
+-message (STATUS "Found Volk: ${volk_FOUND}")
++message (STATUS "Found Volk: ${volk_FOUND}") ]]#
+ 
+-# Hardware Drivers from here on out -- These may fail as the user hasn't installed them
++find_package(GnuradioIQBalance)
++find_package(UHD)
++find_package(GnuradioUHD)
+ find_package(LibOsmoSDR)
+ find_package(LibRTLSDR)
+ find_package(LibMiriSDR)
+@@ -209,11 +208,10 @@ if(ENABLE_NONFREE)
+ endif(ENABLE_NONFREE)
+ find_package(LibHackRF)
+ find_package(LibAIRSPY)
++find_package(Volk)
+ find_package(LibbladeRF)
+ find_package(SoapySDR NO_MODULE)
+ find_package(LibFreeSRP)
+-
+-# Documentation System
+ find_package(Doxygen)
+ 
+ #get_cmake_property(_variableNames VARIABLES)
+@@ -267,7 +265,7 @@ add_custom_target(uninstall
+ ########################################################################
+ # Enable python component
+ ########################################################################
+-find_package(PythonLibs 2)
++find_package(PythonLibs)
+ find_package(SWIG)
+ 
+ if(SWIG_FOUND)
+diff --git a/README b/README
+index 193656f..4d8363b 100644
+--- README
++++ README
+@@ -20,7 +20,7 @@ as well supports:
+ By using the OsmoSDR block you can take advantage of a common software api in
+ your application(s) independent of the underlying radio hardware.
+ 
+-Ftor installation and usage guidelines please read the documentation available
++For installation and usage guidelines please read the documentation available
+ at http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
+ 
+ For the impatient :) a short excerpt:
+diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
+index ee966bb..9c30a4b 100644
+--- apps/CMakeLists.txt
++++ apps/CMakeLists.txt
+@@ -1,7 +1,6 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file was generated by gr_modtool, a tool from the GNU Radio framework
+-# This file is a part of gr-osmosdr
++# This file is part of GNU Radio
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -21,7 +20,7 @@
+ include(GrPython)
+ 
+ GR_PYTHON_INSTALL(
+-    PROGRAMS
++    FILES
+     osmocom_siggen_base.py
+     DESTINATION ${GR_PYTHON_DIR}/osmosdr
+ )
+diff --git a/apps/osmocom_siggen_base.py b/apps/osmocom_siggen_base.py
+index b6e9a0c..f07f3f6 100644
+--- apps/osmocom_siggen_base.py
++++ apps/osmocom_siggen_base.py
+@@ -109,9 +109,9 @@ class gsm_source_c(gr.hier_block2):
+             [0,0,0],
+         ]
+         burst = sum(chunks,[])
+-        burst = sum(map(list, zip(burst, (1,) * len(burst))), [])
++        burst = sum(list(map(list, list(zip(burst, (1,) * len(burst))))), [])
+         burst += [1,0] * (l-148)
+-        return map(int, burst)
++        return list(map(int, burst))
+ 
+     def gen_gsm_frame(self):
+         return \
+@@ -186,7 +186,7 @@ class top_block(gr.top_block, pubsub):
+         try:
+             self._sink.get_sample_rates().start()
+         except RuntimeError:
+-            print "Sink has no sample rates (wrong device arguments?)."
++            print("Sink has no sample rates (wrong device arguments?).")
+             sys.exit(1)
+ 
+         # Set the clock source:
+@@ -202,60 +202,60 @@ class top_block(gr.top_block, pubsub):
+         if(options.gain):
+             gain = self._sink.set_gain(options.gain)
+             if self._verbose:
+-                print "Set gain to:", gain
++                print("Set gain to:", gain)
+ 
+         if self._verbose:
+             gain_names = self._sink.get_gain_names()
+             for name in gain_names:
+                 range = self._sink.get_gain_range(name)
+-                print "%s gain range: start %d stop %d step %d" % (name, range.start(), range.stop(), range.step())
++                print("%s gain range: start %d stop %d step %d" % (name, range.start(), range.stop(), range.step()))
+ 
+         if options.gains:
+             for tuple in options.gains.split(","):
+                 name, gain = tuple.split(":")
+                 gain = int(gain)
+-                print "Setting gain %s to %d." % (name, gain)
++                print("Setting gain %s to %d." % (name, gain))
+                 self._sink.set_gain(gain, name)
+ 
+         if self._verbose:
+             rates = self._sink.get_sample_rates()
+-            print 'Supported sample rates %d-%d step %d.' % (rates.start(), rates.stop(), rates.step())
++            print('Supported sample rates %d-%d step %d.' % (rates.start(), rates.stop(), rates.step()))
+ 
+         # Set the antenna
+         if self._verbose:
+-            print "setting antenna..."
++            print("setting antenna...")
+         if(options.antenna):
+             ant = self._sink.set_antenna(options.antenna, 0)
+             if self._verbose:
+-                print "Set antenna to:", ant
++                print("Set antenna to:", ant)
+         try:
+             self.publish(FREQ_RANGE_KEY, self._sink.get_freq_range)
+         except:
+-            print "Couldn't publish %s" % FREQ_RANGE_KEY
++            print("Couldn't publish %s" % FREQ_RANGE_KEY)
+ 
+         try:
+             for name in self.get_gain_names():
+                 self.publish(GAIN_RANGE_KEY(name), (lambda self=self,name=name: self._sink.get_gain_range(name)))
+         except:
+-            print "Couldn't publish %s" % FREQ_RANGE_KEY
++            print("Couldn't publish %s" % FREQ_RANGE_KEY)
+ 
+         try:
+             self.publish(BWIDTH_RANGE_KEY, self._sink.get_bandwidth_range)
+         except:
+             if self._verbose:
+-                print "Couldn't publish %s" % BWIDTH_RANGE_KEY
++                print("Couldn't publish %s" % BWIDTH_RANGE_KEY)
+ 
+         try:
+             for name in self.get_gain_names():
+                 self.publish(GAIN_KEY(name), (lambda self=self,name=name: self._sink.get_gain(name)))
+         except:
+             if self._verbose:
+-                print "Couldn't publish GAIN_KEYs"
++                print("Couldn't publish GAIN_KEYs")
+         try:
+             self.publish(BWIDTH_KEY, self._sink.get_bandwidth)
+         except:
+             if self._verbose:
+-                print "Couldn't publish %s" % BWIDTH_KEY
++                print("Couldn't publish %s" % BWIDTH_KEY)
+ 
+     def get_gain_names(self):
+         return self._sink.get_gain_names()
+@@ -277,7 +277,7 @@ class top_block(gr.top_block, pubsub):
+             return True # Waveform not yet set
+ 
+         if self._verbose:
+-            print "Set sample rate to:", sr
++            print("Set sample rate to:", sr)
+ 
+         return True
+ 
+@@ -286,27 +286,27 @@ class top_block(gr.top_block, pubsub):
+             g = self[GAIN_RANGE_KEY(name)]
+             gain = float(g.start()+g.stop())/2
+             if self._verbose:
+-                print "Using auto-calculated mid-point gain"
++                print("Using auto-calculated mid-point gain")
+             self[GAIN_KEY(name)] = gain
+             return
+ 
+         gain = self._sink.set_gain(gain, name)
+         if self._verbose:
+-            print "Set " + name + " gain to:", gain
++            print("Set " + name + " gain to:", gain)
+ 
+     def set_bandwidth(self, bw):
+         try:
+             clipped_bw = self[BWIDTH_RANGE_KEY].clip(bw)
+         except:
+             if self._verbose:
+-                print "couldn't clip bandwidth"
++                print("couldn't clip bandwidth")
+             return
+ 
+         if self._sink.get_bandwidth() != clipped_bw:
+             bw = self._sink.set_bandwidth(clipped_bw)
+ 
+             if self._verbose:
+-                print "Set bandwidth to:", bw
++                print("Set bandwidth to:", bw)
+ 
+     def set_dc_offset(self, value):
+         correction = complex( self[DC_OFFSET_REAL], self[DC_OFFSET_IMAG] )
+@@ -315,9 +315,9 @@ class top_block(gr.top_block, pubsub):
+             self._sink.set_dc_offset( correction )
+ 
+             if self._verbose:
+-                print "Set DC offset to", correction
++                print("Set DC offset to", correction)
+         except RuntimeError as ex:
+-            print ex
++            print(ex)
+ 
+     def set_iq_balance(self, value):
+         correction = complex( self[IQ_BALANCE_MAG], self[IQ_BALANCE_PHA] )
+@@ -326,16 +326,16 @@ class top_block(gr.top_block, pubsub):
+             self._sink.set_iq_balance( correction )
+ 
+             if self._verbose:
+-                print "Set IQ balance to", correction
++                print("Set IQ balance to", correction)
+         except RuntimeError as ex:
+-            print ex
++            print(ex)
+ 
+     def set_freq(self, freq):
+         if freq is None:
+             f = self[FREQ_RANGE_KEY]
+             freq = float(f.start()+f.stop())/2.0
+             if self._verbose:
+-                print "Using auto-calculated mid-point frequency"
++                print("Using auto-calculated mid-point frequency")
+             self[TX_FREQ_KEY] = freq
+             return
+ 
+@@ -343,22 +343,22 @@ class top_block(gr.top_block, pubsub):
+         if freq is not None:
+             self._freq = freq
+             if self._verbose:
+-                print "Set center frequency to", freq
++                print("Set center frequency to", freq)
+         elif self._verbose:
+-            print "Failed to set freq."
++            print("Failed to set freq.")
+         return freq
+ 
+     def set_freq_corr(self, ppm):
+         if ppm is None:
+             ppm = 0.0
+             if self._verbose:
+-                print "Using frequency corrrection of", ppm
++                print("Using frequency corrrection of", ppm)
+             self[FREQ_CORR_KEY] = ppm
+             return
+ 
+         ppm = self._sink.set_freq_corr(ppm)
+         if self._verbose:
+-            print "Set frequency correction to:", ppm
++            print("Set frequency correction to:", ppm)
+ 
+     def set_waveform_freq(self, freq):
+         if self[TYPE_KEY] == analog.GR_SIN_WAVE:
+@@ -433,24 +433,24 @@ class top_block(gr.top_block, pubsub):
+         self.unlock()
+ 
+         if self._verbose:
+-            print "Set baseband modulation to:", waveforms[type]
++            print("Set baseband modulation to:", waveforms[type])
+             if type == analog.GR_SIN_WAVE:
+-                print "Modulation frequency: %sHz" % (n2s(self[WAVEFORM_FREQ_KEY]),)
+-                print "Initial phase:", self[WAVEFORM_OFFSET_KEY]
++                print("Modulation frequency: %sHz" % (n2s(self[WAVEFORM_FREQ_KEY]),))
++                print("Initial phase:", self[WAVEFORM_OFFSET_KEY])
+             elif type == "2tone":
+-                print "Tone 1: %sHz" % (n2s(self[WAVEFORM_FREQ_KEY]),)
+-                print "Tone 2: %sHz" % (n2s(self[WAVEFORM2_FREQ_KEY]),)
++                print("Tone 1: %sHz" % (n2s(self[WAVEFORM_FREQ_KEY]),))
++                print("Tone 2: %sHz" % (n2s(self[WAVEFORM2_FREQ_KEY]),))
+             elif type == "sweep":
+-                print "Sweeping across %sHz to %sHz" % (n2s(-self[WAVEFORM_FREQ_KEY]/2.0),n2s(self[WAVEFORM_FREQ_KEY]/2.0))
+-                print "Sweep rate: %sHz" % (n2s(self[WAVEFORM2_FREQ_KEY]),)
++                print("Sweeping across %sHz to %sHz" % (n2s(-self[WAVEFORM_FREQ_KEY]/2.0),n2s(self[WAVEFORM_FREQ_KEY]/2.0)))
++                print("Sweep rate: %sHz" % (n2s(self[WAVEFORM2_FREQ_KEY]),))
+             elif type == "gsm":
+-                print "GSM Burst Sequence"
+-            print "TX amplitude:", self[AMPLITUDE_KEY]
++                print("GSM Burst Sequence")
++            print("TX amplitude:", self[AMPLITUDE_KEY])
+ 
+     def set_amplitude(self, amplitude):
+         if amplitude < 0.0 or amplitude > 1.0:
+             if self._verbose:
+-                print "Amplitude out of range:", amplitude
++                print("Amplitude out of range:", amplitude)
+             return False
+ 
+         if self[TYPE_KEY] in (analog.GR_SIN_WAVE, analog.GR_CONST_WAVE, analog.GR_GAUSSIAN, analog.GR_UNIFORM):
+@@ -466,7 +466,7 @@ class top_block(gr.top_block, pubsub):
+             return True # Waveform not yet set
+ 
+         if self._verbose:
+-            print "Set amplitude to:", amplitude
++            print("Set amplitude to:", amplitude)
+         return True
+ 
+ def get_options():
+@@ -525,19 +525,19 @@ def get_options():
+ # the below does not run.
+ def test_main():
+     if gr.enable_realtime_scheduling() != gr.RT_OK:
+-        print "Note: failed to enable realtime scheduling, continuing"
++        print("Note: failed to enable realtime scheduling, continuing")
+ 
+     # Grab command line options and create top block
+     try:
+         (options, args) = get_options()
+         tb = top_block(options, args)
+ 
+-    except RuntimeError, e:
+-        print e
++    except RuntimeError as e:
++        print(e)
+         sys.exit(1)
+ 
+     tb.start()
+-    raw_input('Press Enter to quit: ')
++    input('Press Enter to quit: ')
+     tb.stop()
+     tb.wait()
+ 
+diff --git a/cmake/Modules/FindGnuradioFCD.cmake b/cmake/Modules/FindGnuradioFCD.cmake
+new file mode 100644
+index 0000000..e7d7670
+--- /dev/null
++++ cmake/Modules/FindGnuradioFCD.cmake
+@@ -0,0 +1,34 @@
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_GNURADIO_FCD gnuradio-fcd)
++
++FIND_PATH(
++    GNURADIO_FCD_INCLUDE_DIRS
++    NAMES gnuradio/fcd/api.h
++    HINTS $ENV{GNURADIO_FCD_DIR}/include
++        ${PC_GNURADIO_FCD_INCLUDEDIR}
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    GNURADIO_FCD_LIBRARIES
++    NAMES gnuradio-fcd
++    HINTS $ENV{GNURADIO_FCD_DIR}/lib
++        ${PC_GNURADIO_FCD_LIBDIR}
++    PATHS /usr/local/lib
++          /usr/local/lib64
++          /usr/lib
++          /usr/lib64
++)
++
++if(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
++  set(GNURADIO_FCD_FOUND TRUE CACHE INTERNAL "gnuradio-fcd found")
++  message(STATUS "Found gnuradio-fcd: ${GNURADIO_FCD_INCLUDE_DIRS}, ${GNURADIO_FCD_LIBRARIES}")
++else(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
++  set(GNURADIO_FCD_FOUND FALSE CACHE INTERNAL "gnuradio-fcd found")
++  message(STATUS "gnuradio-fcd not found.")
++endif(GNURADIO_FCD_INCLUDE_DIRS AND GNURADIO_FCD_LIBRARIES)
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_FCD DEFAULT_MSG GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS)
++MARK_AS_ADVANCED(GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioFCDPP.cmake b/cmake/Modules/FindGnuradioFCDPP.cmake
+new file mode 100644
+index 0000000..c6f03f1
+--- /dev/null
++++ cmake/Modules/FindGnuradioFCDPP.cmake
+@@ -0,0 +1,34 @@
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_GNURADIO_FCDPP gnuradio-fcdproplus)
++
++FIND_PATH(
++    GNURADIO_FCDPP_INCLUDE_DIRS
++    NAMES fcdproplus/api.h
++    HINTS $ENV{GNURADIO_FCDPP_DIR}/include
++        ${PC_GNURADIO_FCDPP_INCLUDEDIR}
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    GNURADIO_FCDPP_LIBRARIES
++    NAMES gnuradio-fcdproplus
++    HINTS $ENV{GNURADIO_FCDPP_DIR}/lib
++        ${PC_GNURADIO_FCDPP_LIBDIR}
++    PATHS /usr/local/lib
++          /usr/local/lib64
++          /usr/lib
++          /usr/lib64
++)
++
++if(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
++  set(GNURADIO_FCDPP_FOUND TRUE CACHE INTERNAL "gnuradio-fcdproplus found")
++  message(STATUS "Found gnuradio-fcdproplus: ${GNURADIO_FCDPP_INCLUDE_DIRS}, ${GNURADIO_FCDPP_LIBRARIES}")
++else(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
++  set(GNURADIO_FCDPP_FOUND FALSE CACHE INTERNAL "gnuradio-fcdproplus found")
++  message(STATUS "gnuradio-fcdproplus not found.")
++endif(GNURADIO_FCDPP_INCLUDE_DIRS AND GNURADIO_FCDPP_LIBRARIES)
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_FCDPP DEFAULT_MSG GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
++MARK_AS_ADVANCED(GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioIQBalance.cmake b/cmake/Modules/FindGnuradioIQBalance.cmake
+new file mode 100644
+index 0000000..c381d1c
+--- /dev/null
++++ cmake/Modules/FindGnuradioIQBalance.cmake
+@@ -0,0 +1,29 @@
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_GNURADIO_IQBALANCE gnuradio-iqbalance)
++
++FIND_PATH(
++    GNURADIO_IQBALANCE_INCLUDE_DIRS
++    NAMES gnuradio/iqbalance/api.h
++    HINTS $ENV{GNURADIO_IQBALANCE_DIR}/include
++        ${PC_GNURADIO_IQBALANCE_INCLUDEDIR}
++        ${CMAKE_INSTALL_PREFIX}/include
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    GNURADIO_IQBALANCE_LIBRARIES
++    NAMES gnuradio-iqbalance
++    HINTS $ENV{GNURADIO_IQBALANCE_DIR}/lib
++        ${PC_GNURADIO_IQBALANCE_LIBDIR}
++        ${CMAKE_INSTALL_PREFIX}/lib64
++        ${CMAKE_INSTALL_PREFIX}/lib
++    PATHS /usr/local/lib
++          /usr/local/lib64
++          /usr/lib
++          /usr/lib64
++)
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_IQBALANCE DEFAULT_MSG GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS)
++MARK_AS_ADVANCED(GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioUHD.cmake b/cmake/Modules/FindGnuradioUHD.cmake
+new file mode 100644
+index 0000000..f99daf0
+--- /dev/null
++++ cmake/Modules/FindGnuradioUHD.cmake
+@@ -0,0 +1,34 @@
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_GNURADIO_UHD gnuradio-uhd)
++
++FIND_PATH(
++    GNURADIO_UHD_INCLUDE_DIRS
++    NAMES gnuradio/uhd/api.h
++    HINTS $ENV{GNURADIO_UHD_DIR}/include
++        ${PC_GNURADIO_UHD_INCLUDEDIR}
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    GNURADIO_UHD_LIBRARIES
++    NAMES gnuradio-uhd
++    HINTS $ENV{GNURADIO_UHD_DIR}/lib
++        ${PC_GNURADIO_UHD_LIBDIR}
++    PATHS /usr/local/lib
++          /usr/local/lib64
++          /usr/lib
++          /usr/lib64
++)
++
++if(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
++  set(GNURADIO_UHD_FOUND TRUE CACHE INTERNAL "gnuradio-uhd found")
++  message(STATUS "Found gnuradio-uhd: ${GNURADIO_UHD_INCLUDE_DIRS}, ${GNURADIO_UHD_LIBRARIES}")
++else(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
++  set(GNURADIO_UHD_FOUND FALSE CACHE INTERNAL "gnuradio-uhd found")
++  message(STATUS "gnuradio-uhd not found.")
++endif(GNURADIO_UHD_INCLUDE_DIRS AND GNURADIO_UHD_LIBRARIES)
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_UHD DEFAULT_MSG GNURADIO_UHD_LIBRARIES GNURADIO_UHD_INCLUDE_DIRS)
++MARK_AS_ADVANCED(GNURADIO_UHD_LIBRARIES GNURADIO_UHD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindUHD.cmake b/cmake/Modules/FindUHD.cmake
+new file mode 100644
+index 0000000..b4d12b6
+--- /dev/null
++++ cmake/Modules/FindUHD.cmake
+@@ -0,0 +1,28 @@
++########################################################################
++# Find the library for the USRP Hardware Driver
++########################################################################
++
++INCLUDE(FindPkgConfig)
++PKG_CHECK_MODULES(PC_UHD uhd)
++
++FIND_PATH(
++    UHD_INCLUDE_DIRS
++    NAMES uhd/config.hpp
++    HINTS $ENV{UHD_DIR}/include
++        ${PC_UHD_INCLUDEDIR}
++    PATHS /usr/local/include
++          /usr/include
++)
++
++FIND_LIBRARY(
++    UHD_LIBRARIES
++    NAMES uhd
++    HINTS $ENV{UHD_DIR}/lib
++        ${PC_UHD_LIBDIR}
++    PATHS /usr/local/lib
++          /usr/lib
++)
++
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(UHD DEFAULT_MSG UHD_LIBRARIES UHD_INCLUDE_DIRS)
++MARK_AS_ADVANCED(UHD_LIBRARIES UHD_INCLUDE_DIRS)
+diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
+new file mode 100644
+index 0000000..22b0ea4
+--- /dev/null
++++ cmake/Modules/GrComponent.cmake
+@@ -0,0 +1,115 @@
++# Copyright 2010-2011 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_COMPONENT_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_COMPONENT_CMAKE TRUE)
++
++set(_gr_enabled_components "" CACHE INTERNAL "" FORCE)
++set(_gr_disabled_components "" CACHE INTERNAL "" FORCE)
++
++if(NOT DEFINED ENABLE_DEFAULT)
++    set(ENABLE_DEFAULT ON)
++    message(STATUS "")
++    message(STATUS "The build system will automatically enable all components.")
++    message(STATUS "Use -DENABLE_DEFAULT=OFF to disable components by default.")
++endif()
++
++########################################################################
++# Register a component into the system
++# - name: canonical component name
++# - var: variable for enabled status
++# - argn: list of dependencies
++########################################################################
++function(GR_REGISTER_COMPONENT name var)
++    include(CMakeDependentOption)
++    message(STATUS "")
++    message(STATUS "Configuring ${name} support...")
++    foreach(dep ${ARGN})
++        message(STATUS "  Dependency ${dep} = ${${dep}}")
++    endforeach(dep)
++
++    #if the user set the var to force, we note this
++    if("${${var}}" STREQUAL "FORCE")
++        set(${var} ON)
++        set(var_force TRUE)
++    else()
++        set(var_force FALSE)
++    endif()
++
++    #rewrite the dependency list so that deps that are also components use the cached version
++    unset(comp_deps)
++    foreach(dep ${ARGN})
++        list(FIND _gr_enabled_components ${dep} dep_enb_index)
++        list(FIND _gr_disabled_components ${dep} dep_dis_index)
++        if (${dep_enb_index} EQUAL -1 AND ${dep_dis_index} EQUAL -1)
++            list(APPEND comp_deps ${dep})
++        else()
++            list(APPEND comp_deps ${dep}_cached) #is a component, use cached version
++        endif()
++    endforeach(dep)
++
++    #setup the dependent option for this component
++    CMAKE_DEPENDENT_OPTION(${var} "enable ${name} support" ${ENABLE_DEFAULT} "${comp_deps}" OFF)
++    set(${var} "${${var}}" PARENT_SCOPE)
++    set(${var}_cached "${${var}}" CACHE INTERNAL "" FORCE)
++
++    #force was specified, but the dependencies were not met
++    if(NOT ${var} AND var_force)
++        message(FATAL_ERROR "user force-enabled ${name} but configuration checked failed")
++    endif()
++
++    #append the component into one of the lists
++    if(${var})
++        message(STATUS "  Enabling ${name} support.")
++        list(APPEND _gr_enabled_components ${name})
++    else(${var})
++        message(STATUS "  Disabling ${name} support.")
++        list(APPEND _gr_disabled_components ${name})
++    endif(${var})
++    message(STATUS "  Override with -D${var}=ON/OFF")
++
++    #make components lists into global variables
++    set(_gr_enabled_components ${_gr_enabled_components} CACHE INTERNAL "" FORCE)
++    set(_gr_disabled_components ${_gr_disabled_components} CACHE INTERNAL "" FORCE)
++endfunction(GR_REGISTER_COMPONENT)
++
++########################################################################
++# Print the registered component summary
++########################################################################
++function(GR_PRINT_COMPONENT_SUMMARY)
++    message(STATUS "")
++    message(STATUS "######################################################")
++    message(STATUS "# gr-osmosdr enabled components                         ")
++    message(STATUS "######################################################")
++    foreach(comp ${_gr_enabled_components})
++        message(STATUS "  * ${comp}")
++    endforeach(comp)
++
++    message(STATUS "")
++    message(STATUS "######################################################")
++    message(STATUS "# gr-osmosdr disabled components                        ")
++    message(STATUS "######################################################")
++    foreach(comp ${_gr_disabled_components})
++        message(STATUS "  * ${comp}")
++    endforeach(comp)
++
++    message(STATUS "")
++endfunction(GR_PRINT_COMPONENT_SUMMARY)
+diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake
+new file mode 100644
+index 0000000..747eb1a
+--- /dev/null
++++ cmake/Modules/GrMiscUtils.cmake
+@@ -0,0 +1,519 @@
++# Copyright 2010-2011,2014 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_MISC_UTILS_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_MISC_UTILS_CMAKE TRUE)
++
++########################################################################
++# Set global variable macro.
++# Used for subdirectories to export settings.
++# Example: include and library paths.
++########################################################################
++function(GR_SET_GLOBAL var)
++    set(${var} ${ARGN} CACHE INTERNAL "" FORCE)
++endfunction(GR_SET_GLOBAL)
++
++########################################################################
++# Set the pre-processor definition if the condition is true.
++#  - def the pre-processor definition to set and condition name
++########################################################################
++function(GR_ADD_COND_DEF def)
++    if(${def})
++        add_definitions(-D${def})
++    endif(${def})
++endfunction(GR_ADD_COND_DEF)
++
++########################################################################
++# Check for a header and conditionally set a compile define.
++#  - hdr the relative path to the header file
++#  - def the pre-processor definition to set
++########################################################################
++function(GR_CHECK_HDR_N_DEF hdr def)
++    include(CheckIncludeFileCXX)
++    CHECK_INCLUDE_FILE_CXX(${hdr} ${def})
++    GR_ADD_COND_DEF(${def})
++endfunction(GR_CHECK_HDR_N_DEF)
++
++########################################################################
++# Include subdirectory macro.
++# Sets the CMake directory variables,
++# includes the subdirectory CMakeLists.txt,
++# resets the CMake directory variables.
++#
++# This macro includes subdirectories rather than adding them
++# so that the subdirectory can affect variables in the level above.
++# This provides a work-around for the lack of convenience libraries.
++# This way a subdirectory can append to the list of library sources.
++########################################################################
++macro(GR_INCLUDE_SUBDIRECTORY subdir)
++    #insert the current directories on the front of the list
++    list(INSERT _cmake_source_dirs 0 ${CMAKE_CURRENT_SOURCE_DIR})
++    list(INSERT _cmake_binary_dirs 0 ${CMAKE_CURRENT_BINARY_DIR})
++
++    #set the current directories to the names of the subdirs
++    set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${subdir})
++    set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${subdir})
++
++    #include the subdirectory CMakeLists to run it
++    file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
++    include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
++
++    #reset the value of the current directories
++    list(GET _cmake_source_dirs 0 CMAKE_CURRENT_SOURCE_DIR)
++    list(GET _cmake_binary_dirs 0 CMAKE_CURRENT_BINARY_DIR)
++
++    #pop the subdir names of the front of the list
++    list(REMOVE_AT _cmake_source_dirs 0)
++    list(REMOVE_AT _cmake_binary_dirs 0)
++endmacro(GR_INCLUDE_SUBDIRECTORY)
++
++########################################################################
++# Check if a compiler flag works and conditionally set a compile define.
++#  - flag the compiler flag to check for
++#  - have the variable to set with result
++########################################################################
++macro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE flag have)
++    include(CheckCXXCompilerFlag)
++    CHECK_CXX_COMPILER_FLAG(${flag} ${have})
++    if(${have})
++        add_definitions(${flag})
++    endif(${have})
++endmacro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE)
++
++########################################################################
++# Generates the .la libtool file
++# This appears to generate libtool files that cannot be used by auto*.
++# Usage GR_LIBTOOL(TARGET [target] DESTINATION [dest])
++# Notice: there is not COMPONENT option, these will not get distributed.
++########################################################################
++function(GR_LIBTOOL)
++    if(NOT DEFINED GENERATE_LIBTOOL)
++        set(GENERATE_LIBTOOL OFF) #disabled by default
++    endif()
++
++    if(GENERATE_LIBTOOL)
++        include(CMakeParseArgumentsCopy)
++        CMAKE_PARSE_ARGUMENTS(GR_LIBTOOL "" "TARGET;DESTINATION" "" ${ARGN})
++
++        find_program(LIBTOOL libtool)
++        if(LIBTOOL)
++            include(CMakeMacroLibtoolFile)
++            CREATE_LIBTOOL_FILE(${GR_LIBTOOL_TARGET} /${GR_LIBTOOL_DESTINATION})
++        endif(LIBTOOL)
++    endif(GENERATE_LIBTOOL)
++
++endfunction(GR_LIBTOOL)
++
++########################################################################
++# Do standard things to the library target
++# - set target properties
++# - make install rules
++# Also handle gnuradio custom naming conventions w/ extras mode.
++########################################################################
++function(GR_LIBRARY_FOO target)
++    #parse the arguments for component names
++    include(CMakeParseArgumentsCopy)
++    CMAKE_PARSE_ARGUMENTS(GR_LIBRARY "" "RUNTIME_COMPONENT;DEVEL_COMPONENT" "" ${ARGN})
++
++    #set additional target properties
++    set_target_properties(${target} PROPERTIES SOVERSION ${LIBVER})
++
++    #install the generated files like so...
++    install(TARGETS ${target}
++        LIBRARY DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .so/.dylib file
++        ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_DEVEL_COMPONENT}   # .lib file
++        RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .dll file
++    )
++
++    #extras mode enabled automatically on linux
++    if(NOT DEFINED LIBRARY_EXTRAS)
++        set(LIBRARY_EXTRAS ${LINUX})
++    endif()
++
++    #special extras mode to enable alternative naming conventions
++    if(LIBRARY_EXTRAS)
++
++        #create .la file before changing props
++        GR_LIBTOOL(TARGET ${target} DESTINATION ${GR_LIBRARY_DIR})
++
++        #give the library a special name with ultra-zero soversion
++        set_target_properties(${target} PROPERTIES OUTPUT_NAME ${target}-${LIBVER} SOVERSION "0.0.0")
++        set(target_name lib${target}-${LIBVER}.so.0.0.0)
++
++        #custom command to generate symlinks
++        add_custom_command(
++            TARGET ${target}
++            POST_BUILD
++            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
++            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
++            COMMAND ${CMAKE_COMMAND} -E touch ${target_name} #so the symlinks point to something valid so cmake 2.6 will install
++        )
++
++        #and install the extra symlinks
++        install(
++            FILES
++            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
++            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
++            DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT}
++        )
++
++    endif(LIBRARY_EXTRAS)
++endfunction(GR_LIBRARY_FOO)
++
++########################################################################
++# Create a dummy custom command that depends on other targets.
++# Usage:
++#   GR_GEN_TARGET_DEPS(unique_name target_deps <target1> <target2> ...)
++#   ADD_CUSTOM_COMMAND(<the usual args> ${target_deps})
++#
++# Custom command cant depend on targets, but can depend on executables,
++# and executables can depend on targets. So this is the process:
++########################################################################
++function(GR_GEN_TARGET_DEPS name var)
++    file(
++        WRITE ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
++        "int main(void){return 0;}\n"
++    )
++    execute_process(
++        COMMAND ${CMAKE_COMMAND} -E copy_if_different
++        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
++        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp
++    )
++    add_executable(${name} ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp)
++    if(ARGN)
++        add_dependencies(${name} ${ARGN})
++    endif(ARGN)
++
++    if(CMAKE_CROSSCOMPILING)
++        set(${var} "DEPENDS;${name}" PARENT_SCOPE) #cant call command when cross
++    else()
++        set(${var} "DEPENDS;${name};COMMAND;${name}" PARENT_SCOPE)
++    endif()
++endfunction(GR_GEN_TARGET_DEPS)
++
++########################################################################
++# Control use of gr_logger
++# Usage:
++#   GR_LOGGING()
++#
++# Will set ENABLE_GR_LOG to 1 by default.
++# Can manually set with -DENABLE_GR_LOG=0|1
++########################################################################
++function(GR_LOGGING)
++  find_package(Log4cpp)
++
++  OPTION(ENABLE_GR_LOG "Use gr_logger" ON)
++  if(ENABLE_GR_LOG)
++    # If gr_logger is enabled, make it usable
++    add_definitions( -DENABLE_GR_LOG )
++
++    # also test LOG4CPP; if we have it, use this version of the logger
++    # otherwise, default to the stdout/stderr model.
++    if(LOG4CPP_FOUND)
++      SET(HAVE_LOG4CPP True CACHE INTERNAL "" FORCE)
++      add_definitions( -DHAVE_LOG4CPP )
++    else(not LOG4CPP_FOUND)
++      SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
++      SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
++      SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
++      SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
++    endif(LOG4CPP_FOUND)
++
++    SET(ENABLE_GR_LOG ${ENABLE_GR_LOG} CACHE INTERNAL "" FORCE)
++
++  else(ENABLE_GR_LOG)
++    SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
++    SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
++    SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
++    SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
++  endif(ENABLE_GR_LOG)
++
++  message(STATUS "ENABLE_GR_LOG set to ${ENABLE_GR_LOG}.")
++  message(STATUS "HAVE_LOG4CPP set to ${HAVE_LOG4CPP}.")
++  message(STATUS "LOG4CPP_LIBRARIES set to ${LOG4CPP_LIBRARIES}.")
++
++endfunction(GR_LOGGING)
++
++########################################################################
++# Run GRCC to compile .grc files into .py files.
++#
++# Usage: GRCC(filename, directory)
++#    - filenames: List of file name of .grc file
++#    - directory: directory of built .py file - usually in
++#                 ${CMAKE_CURRENT_BINARY_DIR}
++#    - Sets PYFILES: output converted GRC file names to Python files.
++########################################################################
++function(GRCC)
++  # Extract directory from list of args, remove it for the list of filenames.
++  list(GET ARGV -1 directory)
++  list(REMOVE_AT ARGV -1)
++  set(filenames ${ARGV})
++  file(MAKE_DIRECTORY ${directory})
++
++  SET(GRCC_COMMAND ${CMAKE_SOURCE_DIR}/gr-utils/python/grcc)
++
++  # GRCC uses some stuff in grc and gnuradio-runtime, so we force
++  # the known paths here
++  list(APPEND PYTHONPATHS
++    ${CMAKE_SOURCE_DIR}
++    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/python
++    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/lib/swig
++    ${CMAKE_BINARY_DIR}/gnuradio-runtime/lib/swig
++    )
++
++  if(WIN32)
++    #SWIG generates the python library files into a subdirectory.
++    #Therefore, we must append this subdirectory into PYTHONPATH.
++    #Only do this for the python directories matching the following:
++    foreach(pydir ${PYTHONPATHS})
++      get_filename_component(name ${pydir} NAME)
++      if(name MATCHES "^(swig|lib|src)$")
++        list(APPEND PYTHONPATHS ${pydir}/${CMAKE_BUILD_TYPE})
++      endif()
++    endforeach(pydir)
++  endif(WIN32)
++
++  file(TO_NATIVE_PATH "${PYTHONPATHS}" pypath)
++
++  if(UNIX)
++    list(APPEND pypath "$PYTHONPATH")
++    string(REPLACE ";" ":" pypath "${pypath}")
++    set(ENV{PYTHONPATH} ${pypath})
++  endif(UNIX)
++
++  if(WIN32)
++    list(APPEND pypath "%PYTHONPATH%")
++    string(REPLACE ";" "\\;" pypath "${pypath}")
++    #list(APPEND environs "PYTHONPATH=${pypath}")
++    set(ENV{PYTHONPATH} ${pypath})
++  endif(WIN32)
++
++  foreach(f ${filenames})
++    execute_process(
++      COMMAND ${GRCC_COMMAND} -d ${directory} ${f}
++      )
++    string(REPLACE ".grc" ".py" pyfile "${f}")
++    string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" pyfile "${pyfile}")
++    list(APPEND pyfiles ${pyfile})
++  endforeach(f)
++
++  set(PYFILES ${pyfiles} PARENT_SCOPE)
++endfunction(GRCC)
++
++########################################################################
++# Check if HAVE_PTHREAD_SETSCHEDPARAM and HAVE_SCHED_SETSCHEDULER
++#  should be defined
++########################################################################
++macro(GR_CHECK_LINUX_SCHED_AVAIL)
++set(CMAKE_REQUIRED_LIBRARIES -lpthread)
++    CHECK_CXX_SOURCE_COMPILES("
++        #include <pthread.h>
++        int main(){
++            pthread_t pthread;
++            pthread_setschedparam(pthread,  0, 0);
++            return 0;
++        } " HAVE_PTHREAD_SETSCHEDPARAM
++    )
++    GR_ADD_COND_DEF(HAVE_PTHREAD_SETSCHEDPARAM)
++
++    CHECK_CXX_SOURCE_COMPILES("
++        #include <sched.h>
++        int main(){
++            pid_t pid;
++            sched_setscheduler(pid, 0, 0);
++            return 0;
++        } " HAVE_SCHED_SETSCHEDULER
++    )
++    GR_ADD_COND_DEF(HAVE_SCHED_SETSCHEDULER)
++endmacro(GR_CHECK_LINUX_SCHED_AVAIL)
++
++########################################################################
++# Macros to generate source and header files from template
++########################################################################
++macro(GR_EXPAND_X_H component root)
++
++  include(GrPython)
++
++  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++"#!${PYTHON_EXECUTABLE}
++
++import sys, os, re
++sys.path.append('${GR_RUNTIME_PYTHONPATH}')
++os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
++os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
++
++if __name__ == '__main__':
++    import build_utils
++    root, inp = sys.argv[1:3]
++    for sig in sys.argv[3:]:
++        name = re.sub ('X+', sig, root)
++        d = build_utils.standard_dict2(name, sig, '${component}')
++        build_utils.expand_template(d, inp)
++")
++
++  #make a list of all the generated headers
++  unset(expanded_files_h)
++  foreach(sig ${ARGN})
++    string(REGEX REPLACE "X+" ${sig} name ${root})
++    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
++  endforeach(sig)
++  unset(name)
++
++  #create a command to generate the headers
++  add_custom_command(
++    OUTPUT ${expanded_files_h}
++    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
++    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
++    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++    ${root} ${root}.h.t ${ARGN}
++  )
++
++  #install rules for the generated headers
++  list(APPEND generated_includes ${expanded_files_h})
++
++endmacro(GR_EXPAND_X_H)
++
++macro(GR_EXPAND_X_CC_H component root)
++
++  include(GrPython)
++
++  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++"#!${PYTHON_EXECUTABLE}
++
++import sys, os, re
++sys.path.append('${GR_RUNTIME_PYTHONPATH}')
++os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
++os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
++
++if __name__ == '__main__':
++    import build_utils
++    root, inp = sys.argv[1:3]
++    for sig in sys.argv[3:]:
++        name = re.sub ('X+', sig, root)
++        d = build_utils.standard_impl_dict2(name, sig, '${component}')
++        build_utils.expand_template(d, inp)
++")
++
++  #make a list of all the generated files
++  unset(expanded_files_cc)
++  unset(expanded_files_h)
++  foreach(sig ${ARGN})
++    string(REGEX REPLACE "X+" ${sig} name ${root})
++    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
++    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
++  endforeach(sig)
++  unset(name)
++
++  #create a command to generate the source files
++  add_custom_command(
++    OUTPUT ${expanded_files_cc}
++    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
++    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
++    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++    ${root} ${root}.cc.t ${ARGN}
++  )
++
++  #create a command to generate the header files
++  add_custom_command(
++    OUTPUT ${expanded_files_h}
++    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
++    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
++    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++    ${root} ${root}.h.t ${ARGN}
++  )
++
++  #make source files depends on headers to force generation
++  set_source_files_properties(${expanded_files_cc}
++    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
++  )
++
++  #install rules for the generated files
++  list(APPEND generated_sources ${expanded_files_cc})
++  list(APPEND generated_headers ${expanded_files_h})
++
++endmacro(GR_EXPAND_X_CC_H)
++
++macro(GR_EXPAND_X_CC_H_IMPL component root)
++
++  include(GrPython)
++
++  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++"#!${PYTHON_EXECUTABLE}
++
++import sys, os, re
++sys.path.append('${GR_RUNTIME_PYTHONPATH}')
++os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
++os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
++
++if __name__ == '__main__':
++    import build_utils
++    root, inp = sys.argv[1:3]
++    for sig in sys.argv[3:]:
++        name = re.sub ('X+', sig, root)
++        d = build_utils.standard_dict(name, sig, '${component}')
++        build_utils.expand_template(d, inp, '_impl')
++")
++
++  #make a list of all the generated files
++  unset(expanded_files_cc_impl)
++  unset(expanded_files_h_impl)
++  unset(expanded_files_h)
++  foreach(sig ${ARGN})
++    string(REGEX REPLACE "X+" ${sig} name ${root})
++    list(APPEND expanded_files_cc_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.cc)
++    list(APPEND expanded_files_h_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.h)
++    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/../include/gnuradio/${component}/${name}.h)
++  endforeach(sig)
++  unset(name)
++
++  #create a command to generate the _impl.cc files
++  add_custom_command(
++    OUTPUT ${expanded_files_cc_impl}
++    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.cc.t
++    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
++    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++    ${root} ${root}_impl.cc.t ${ARGN}
++  )
++
++  #create a command to generate the _impl.h files
++  add_custom_command(
++    OUTPUT ${expanded_files_h_impl}
++    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.h.t
++    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
++    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
++    ${root} ${root}_impl.h.t ${ARGN}
++  )
++
++  #make _impl.cc source files depend on _impl.h to force generation
++  set_source_files_properties(${expanded_files_cc_impl}
++    PROPERTIES OBJECT_DEPENDS "${expanded_files_h_impl}"
++  )
++
++  #make _impl.h source files depend on headers to force generation
++  set_source_files_properties(${expanded_files_h_impl}
++    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
++  )
++
++  #install rules for the generated files
++  list(APPEND generated_sources ${expanded_files_cc_impl})
++  list(APPEND generated_headers ${expanded_files_h_impl})
++
++endmacro(GR_EXPAND_X_CC_H_IMPL)
+diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake
+new file mode 100644
+index 0000000..fbbea5f
+--- /dev/null
++++ cmake/Modules/GrPlatform.cmake
+@@ -0,0 +1,54 @@
++# Copyright 2011 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_PLATFORM_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_PLATFORM_CMAKE TRUE)
++
++########################################################################
++# Setup additional defines for OS types
++########################################################################
++if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++    set(LINUX TRUE)
++endif()
++
++if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version")
++    set(DEBIAN TRUE)
++endif()
++
++if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release")
++    set(REDHAT TRUE)
++endif()
++
++if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/slackware-version")
++    set(SLACKWARE TRUE)
++endif()
++
++########################################################################
++# when the library suffix should be 64 (applies to redhat linux family)
++########################################################################
++if (REDHAT OR SLACKWARE)
++    set(LIB64_CONVENTION TRUE)
++endif()
++
++if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$")
++    set(LIB_SUFFIX 64)
++endif()
++set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix")
+diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
+new file mode 100644
+index 0000000..395faff
+--- /dev/null
++++ cmake/Modules/GrPython.cmake
+@@ -0,0 +1,242 @@
++# Copyright 2010-2011 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_PYTHON_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_PYTHON_CMAKE TRUE)
++
++########################################################################
++# Setup the python interpreter:
++# This allows the user to specify a specific interpreter,
++# or finds the interpreter via the built-in cmake module.
++########################################################################
++#this allows the user to override PYTHON_EXECUTABLE
++if(PYTHON_EXECUTABLE)
++
++    set(PYTHONINTERP_FOUND TRUE)
++
++#otherwise if not set, try to automatically find it
++else(PYTHON_EXECUTABLE)
++
++    #use the built-in find script
++    find_package(PythonInterp 2)
++
++    #and if that fails use the find program routine
++    if(NOT PYTHONINTERP_FOUND)
++        find_program(PYTHON_EXECUTABLE NAMES python python2 python2.7 python2.6 python2.5)
++        if(PYTHON_EXECUTABLE)
++            set(PYTHONINTERP_FOUND TRUE)
++        endif(PYTHON_EXECUTABLE)
++    endif(NOT PYTHONINTERP_FOUND)
++
++endif(PYTHON_EXECUTABLE)
++
++if (CMAKE_CROSSCOMPILING)
++    set(QA_PYTHON_EXECUTABLE "/usr/bin/python")
++else (CMAKE_CROSSCOMPILING)
++    set(QA_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
++endif(CMAKE_CROSSCOMPILING)
++
++#make the path to the executable appear in the cmake gui
++set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter")
++set(QA_PYTHON_EXECUTABLE ${QA_PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter for QA tests")
++
++#make sure we can use -B with python (introduced in 2.6)
++if(PYTHON_EXECUTABLE)
++    execute_process(
++        COMMAND ${PYTHON_EXECUTABLE} -B -c ""
++        OUTPUT_QUIET ERROR_QUIET
++        RESULT_VARIABLE PYTHON_HAS_DASH_B_RESULT
++    )
++    if(PYTHON_HAS_DASH_B_RESULT EQUAL 0)
++        set(PYTHON_DASH_B "-B")
++    endif()
++endif(PYTHON_EXECUTABLE)
++
++########################################################################
++# Check for the existence of a python module:
++# - desc a string description of the check
++# - mod the name of the module to import
++# - cmd an additional command to run
++# - have the result variable to set
++########################################################################
++macro(GR_PYTHON_CHECK_MODULE desc mod cmd have)
++    message(STATUS "")
++    message(STATUS "Python checking for ${desc}")
++    execute_process(
++        COMMAND ${PYTHON_EXECUTABLE} -c "
++#########################################
++try:
++    import ${mod}
++    assert ${cmd}
++except ImportError, AssertionError: exit(-1)
++except: pass
++#########################################"
++        RESULT_VARIABLE ${have}
++    )
++    if(${have} EQUAL 0)
++        message(STATUS "Python checking for ${desc} - found")
++        set(${have} TRUE)
++    else(${have} EQUAL 0)
++        message(STATUS "Python checking for ${desc} - not found")
++        set(${have} FALSE)
++    endif(${have} EQUAL 0)
++endmacro(GR_PYTHON_CHECK_MODULE)
++
++########################################################################
++# Sets the python installation directory GR_PYTHON_DIR
++########################################################################
++if(NOT DEFINED GR_PYTHON_DIR)
++execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "
++from distutils import sysconfig
++print sysconfig.get_python_lib(plat_specific=True, prefix='')
++" OUTPUT_VARIABLE GR_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
++)
++endif()
++file(TO_CMAKE_PATH ${GR_PYTHON_DIR} GR_PYTHON_DIR)
++
++########################################################################
++# Create an always-built target with a unique name
++# Usage: GR_UNIQUE_TARGET(<description> <dependencies list>)
++########################################################################
++function(GR_UNIQUE_TARGET desc)
++    file(RELATIVE_PATH reldir ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
++    execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import re, hashlib
++unique = hashlib.md5('${reldir}${ARGN}').hexdigest()[:5]
++print(re.sub('\\W', '_', '${desc} ${reldir} ' + unique))"
++    OUTPUT_VARIABLE _target OUTPUT_STRIP_TRAILING_WHITESPACE)
++    add_custom_target(${_target} ALL DEPENDS ${ARGN})
++endfunction(GR_UNIQUE_TARGET)
++
++########################################################################
++# Install python sources (also builds and installs byte-compiled python)
++########################################################################
++function(GR_PYTHON_INSTALL)
++    include(CMakeParseArgumentsCopy)
++    CMAKE_PARSE_ARGUMENTS(GR_PYTHON_INSTALL "" "DESTINATION;COMPONENT" "FILES;PROGRAMS" ${ARGN})
++
++    ####################################################################
++    if(GR_PYTHON_INSTALL_FILES)
++    ####################################################################
++        install(${ARGN}) #installs regular python files
++
++        #create a list of all generated files
++        unset(pysrcfiles)
++        unset(pycfiles)
++        unset(pyofiles)
++        foreach(pyfile ${GR_PYTHON_INSTALL_FILES})
++            get_filename_component(pyfile ${pyfile} ABSOLUTE)
++            list(APPEND pysrcfiles ${pyfile})
++
++            #determine if this file is in the source or binary directory
++            file(RELATIVE_PATH source_rel_path ${CMAKE_CURRENT_SOURCE_DIR} ${pyfile})
++            string(LENGTH "${source_rel_path}" source_rel_path_len)
++            file(RELATIVE_PATH binary_rel_path ${CMAKE_CURRENT_BINARY_DIR} ${pyfile})
++            string(LENGTH "${binary_rel_path}" binary_rel_path_len)
++
++            #and set the generated path appropriately
++            if(${source_rel_path_len} GREATER ${binary_rel_path_len})
++                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${binary_rel_path})
++            else()
++                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${source_rel_path})
++            endif()
++            list(APPEND pycfiles ${pygenfile}c)
++            list(APPEND pyofiles ${pygenfile}o)
++
++            #ensure generation path exists
++            get_filename_component(pygen_path ${pygenfile} PATH)
++            file(MAKE_DIRECTORY ${pygen_path})
++
++        endforeach(pyfile)
++
++        #the command to generate the pyc files
++        add_custom_command(
++            DEPENDS ${pysrcfiles} OUTPUT ${pycfiles}
++            COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pycfiles}
++        )
++
++        #the command to generate the pyo files
++        add_custom_command(
++            DEPENDS ${pysrcfiles} OUTPUT ${pyofiles}
++            COMMAND ${PYTHON_EXECUTABLE} -O ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pyofiles}
++        )
++
++        #create install rule and add generated files to target list
++        set(python_install_gen_targets ${pycfiles} ${pyofiles})
++        install(FILES ${python_install_gen_targets}
++            DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
++            COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
++        )
++
++
++    ####################################################################
++    elseif(GR_PYTHON_INSTALL_PROGRAMS)
++    ####################################################################
++        file(TO_NATIVE_PATH ${PYTHON_EXECUTABLE} pyexe_native)
++
++        if (CMAKE_CROSSCOMPILING)
++           set(pyexe_native "/usr/bin/env python")
++        endif()
++
++        foreach(pyfile ${GR_PYTHON_INSTALL_PROGRAMS})
++            get_filename_component(pyfile_name ${pyfile} NAME)
++            get_filename_component(pyfile ${pyfile} ABSOLUTE)
++            string(REPLACE "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" pyexefile "${pyfile}.exe")
++            list(APPEND python_install_gen_targets ${pyexefile})
++
++            get_filename_component(pyexefile_path ${pyexefile} PATH)
++            file(MAKE_DIRECTORY ${pyexefile_path})
++
++            add_custom_command(
++                OUTPUT ${pyexefile} DEPENDS ${pyfile}
++                COMMAND ${PYTHON_EXECUTABLE} -c
++                "open('${pyexefile}','w').write('\#!${pyexe_native}\\n'+open('${pyfile}').read())"
++                COMMENT "Shebangin ${pyfile_name}"
++                VERBATIM
++            )
++
++            #on windows, python files need an extension to execute
++            get_filename_component(pyfile_ext ${pyfile} EXT)
++            if(WIN32 AND NOT pyfile_ext)
++                set(pyfile_name "${pyfile_name}.py")
++            endif()
++
++            install(PROGRAMS ${pyexefile} RENAME ${pyfile_name}
++                DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
++                COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
++            )
++        endforeach(pyfile)
++
++    endif()
++
++    GR_UNIQUE_TARGET("pygen" ${python_install_gen_targets})
++
++endfunction(GR_PYTHON_INSTALL)
++
++########################################################################
++# Write the python helper script that generates byte code files
++########################################################################
++file(WRITE ${CMAKE_BINARY_DIR}/python_compile_helper.py "
++import sys, py_compile
++files = sys.argv[1:]
++srcs, gens = files[:len(files)/2], files[len(files)/2:]
++for src, gen in zip(srcs, gens):
++    py_compile.compile(file=src, cfile=gen, doraise=True)
++")
+diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
+new file mode 100644
+index 0000000..62caab4
+--- /dev/null
++++ cmake/Modules/GrTest.cmake
+@@ -0,0 +1,143 @@
++# Copyright 2010-2011 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_TEST_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_TEST_CMAKE TRUE)
++
++########################################################################
++# Add a unit test and setup the environment for a unit test.
++# Takes the same arguments as the ADD_TEST function.
++#
++# Before calling set the following variables:
++# GR_TEST_TARGET_DEPS  - built targets for the library path
++# GR_TEST_LIBRARY_DIRS - directories for the library path
++# GR_TEST_PYTHON_DIRS  - directories for the python path
++# GR_TEST_ENVIRONS  - other environment key/value pairs
++########################################################################
++function(GR_ADD_TEST test_name)
++
++        #Ensure that the build exe also appears in the PATH.
++        list(APPEND GR_TEST_TARGET_DEPS ${ARGN})
++
++        #In the land of windows, all libraries must be in the PATH.
++        #Since the dependent libraries are not yet installed,
++        #we must manually set them in the PATH to run tests.
++        #The following appends the path of a target dependency.
++        foreach(target ${GR_TEST_TARGET_DEPS})
++            get_target_property(location ${target} LOCATION)
++            if(location)
++                get_filename_component(path ${location} PATH)
++                string(REGEX REPLACE "\\$\\(.*\\)" ${CMAKE_BUILD_TYPE} path ${path})
++                list(APPEND GR_TEST_LIBRARY_DIRS ${path})
++            endif(location)
++        endforeach(target)
++
++    if(WIN32)
++        #SWIG generates the python library files into a subdirectory.
++        #Therefore, we must append this subdirectory into PYTHONPATH.
++        #Only do this for the python directories matching the following:
++        foreach(pydir ${GR_TEST_PYTHON_DIRS})
++            get_filename_component(name ${pydir} NAME)
++            if(name MATCHES "^(swig|lib|src)$")
++                list(APPEND GR_TEST_PYTHON_DIRS ${pydir}/${CMAKE_BUILD_TYPE})
++            endif()
++        endforeach(pydir)
++    endif(WIN32)
++
++    file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} srcdir)
++    file(TO_NATIVE_PATH "${GR_TEST_LIBRARY_DIRS}" libpath) #ok to use on dir list?
++    file(TO_NATIVE_PATH "${GR_TEST_PYTHON_DIRS}" pypath) #ok to use on dir list?
++
++    set(environs "VOLK_GENERIC=1" "GR_DONT_LOAD_PREFS=1" "srcdir=${srcdir}")
++    list(APPEND environs ${GR_TEST_ENVIRONS})
++
++    #http://www.cmake.org/pipermail/cmake/2009-May/029464.html
++    #Replaced this add test + set environs code with the shell script generation.
++    #Its nicer to be able to manually run the shell script to diagnose problems.
++    #ADD_TEST(${ARGV})
++    #SET_TESTS_PROPERTIES(${test_name} PROPERTIES ENVIRONMENT "${environs}")
++
++    if(UNIX)
++        set(LD_PATH_VAR "LD_LIBRARY_PATH")
++        if(APPLE)
++            set(LD_PATH_VAR "DYLD_LIBRARY_PATH")
++        endif()
++
++        set(binpath "${CMAKE_CURRENT_BINARY_DIR}:$PATH")
++        list(APPEND libpath "$${LD_PATH_VAR}")
++        list(APPEND pypath "$PYTHONPATH")
++
++        #replace list separator with the path separator
++        string(REPLACE ";" ":" libpath "${libpath}")
++        string(REPLACE ";" ":" pypath "${pypath}")
++        list(APPEND environs "PATH=${binpath}" "${LD_PATH_VAR}=${libpath}" "PYTHONPATH=${pypath}")
++
++        #generate a bat file that sets the environment and runs the test
++	if (CMAKE_CROSSCOMPILING)
++                set(SHELL "/bin/sh")
++        else(CMAKE_CROSSCOMPILING)
++                find_program(SHELL sh)
++        endif(CMAKE_CROSSCOMPILING)
++        set(sh_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.sh)
++        file(WRITE ${sh_file} "#!${SHELL}\n")
++        #each line sets an environment variable
++        foreach(environ ${environs})
++            file(APPEND ${sh_file} "export ${environ}\n")
++        endforeach(environ)
++        #load the command to run with its arguments
++        foreach(arg ${ARGN})
++            file(APPEND ${sh_file} "${arg} ")
++        endforeach(arg)
++        file(APPEND ${sh_file} "\n")
++
++        #make the shell file executable
++        execute_process(COMMAND chmod +x ${sh_file})
++
++        add_test(${test_name} ${SHELL} ${sh_file})
++
++    endif(UNIX)
++
++    if(WIN32)
++        list(APPEND libpath ${DLL_PATHS} "%PATH%")
++        list(APPEND pypath "%PYTHONPATH%")
++
++        #replace list separator with the path separator (escaped)
++        string(REPLACE ";" "\\;" libpath "${libpath}")
++        string(REPLACE ";" "\\;" pypath "${pypath}")
++        list(APPEND environs "PATH=${libpath}" "PYTHONPATH=${pypath}")
++
++        #generate a bat file that sets the environment and runs the test
++        set(bat_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.bat)
++        file(WRITE ${bat_file} "@echo off\n")
++        #each line sets an environment variable
++        foreach(environ ${environs})
++            file(APPEND ${bat_file} "SET ${environ}\n")
++        endforeach(environ)
++        #load the command to run with its arguments
++        foreach(arg ${ARGN})
++            file(APPEND ${bat_file} "${arg} ")
++        endforeach(arg)
++        file(APPEND ${bat_file} "\n")
++
++        add_test(${test_name} ${bat_file})
++    endif(WIN32)
++
++endfunction(GR_ADD_TEST)
+diff --git a/cmake/Modules/GrVersion.cmake b/cmake/Modules/GrVersion.cmake
+new file mode 100644
+index 0000000..bafd0a7
+--- /dev/null
++++ cmake/Modules/GrVersion.cmake
+@@ -0,0 +1,82 @@
++# Copyright 2011,2013 Free Software Foundation, Inc.
++#
++# This file is part of GNU Radio
++#
++# GNU Radio is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GNU Radio is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GNU Radio; see the file COPYING.  If not, write to
++# the Free Software Foundation, Inc., 51 Franklin Street,
++# Boston, MA 02110-1301, USA.
++
++if(DEFINED __INCLUDED_GR_VERSION_CMAKE)
++    return()
++endif()
++set(__INCLUDED_GR_VERSION_CMAKE TRUE)
++
++#eventually, replace version.sh and fill in the variables below
++set(MAJOR_VERSION ${VERSION_INFO_MAJOR_VERSION})
++set(API_COMPAT    ${VERSION_INFO_API_COMPAT})
++set(MINOR_VERSION ${VERSION_INFO_MINOR_VERSION})
++set(MAINT_VERSION ${VERSION_INFO_MAINT_VERSION})
++
++########################################################################
++# Extract the version string from git describe.
++########################################################################
++find_package(Git)
++
++if(GIT_FOUND AND EXISTS ${CMAKE_SOURCE_DIR}/.git)
++    message(STATUS "Extracting version information from git describe...")
++    execute_process(
++        COMMAND ${GIT_EXECUTABLE} describe --always --abbrev=8 --long
++        OUTPUT_VARIABLE GIT_DESCRIBE OUTPUT_STRIP_TRAILING_WHITESPACE
++        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
++    )
++else()
++    set(GIT_DESCRIBE "v${MAJOR_VERSION}.${API_COMPAT}.x-xxx-xunknown")
++endif()
++
++########################################################################
++# Use the logic below to set the version constants
++########################################################################
++if("${MINOR_VERSION}" STREQUAL "git")
++    # VERSION: 3.3git-xxx-gxxxxxxxx
++    # DOCVER:  3.3git
++    # LIBVER:  3.3git
++    set(VERSION "${GIT_DESCRIBE}")
++    set(DOCVER  "${MAJOR_VERSION}.${API_COMPAT}${MINOR_VERSION}")
++    set(LIBVER  "${MAJOR_VERSION}.${API_COMPAT}${MINOR_VERSION}")
++    set(RC_MINOR_VERSION "0")
++    set(RC_MAINT_VERSION "0")
++elseif("${MAINT_VERSION}" STREQUAL "git")
++    # VERSION: 3.3.1git-xxx-gxxxxxxxx
++    # DOCVER:  3.3.1git
++    # LIBVER:  3.3.1git
++    set(VERSION "${GIT_DESCRIBE}")
++    set(DOCVER  "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}${MAINT_VERSION}")
++    set(LIBVER  "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}${MAINT_VERSION}")
++    math(EXPR RC_MINOR_VERSION "${MINOR_VERSION} - 1")
++    set(RC_MAINT_VERSION "0")
++else()
++    # This is a numbered release.
++    # VERSION: 3.3.1{.x}
++    # DOCVER:  3.3.1{.x}
++    # LIBVER:  3.3.1{.x}
++    if("${MAINT_VERSION}" STREQUAL "0")
++        set(VERSION "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}")
++    else()
++        set(VERSION "${MAJOR_VERSION}.${API_COMPAT}.${MINOR_VERSION}.${MAINT_VERSION}")
++    endif()
++    set(DOCVER "${VERSION}")
++    set(LIBVER "${VERSION}")
++    set(RC_MINOR_VERSION ${MINOR_VERSION})
++    set(RC_MAINT_VERSION ${MAINT_VERSION})
++endif()
+diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
+index e30cc70..a4a7f96 100644
+--- grc/gen_osmosdr_blocks.py
++++ grc/gen_osmosdr_blocks.py
+@@ -33,11 +33,11 @@ parameters:
+   option_attributes:
+       type: [fc32]
+   hide: part
+-- id: dev_args
++- id: args
+   label: 'Device Arguments'
+   dtype: string
+   default: '""'
+-  hide: ${'$'}{ 'none' if dev_args else 'part'}
++  hide: ${'$'}{ 'none' if args else 'part'}
+ - id: sync
+   label: Sync
+   dtype: enum
+@@ -137,7 +137,7 @@ templates:
+   callbacks:
+     - set_sample_rate(${'$'}{sample_rate})
+     % for n in range(max_nchan):
+-    - set_centre_freq(${'$'}{${'freq' + str(n)}}, ${n})
++    - set_center_freq(${'$'}{${'freq' + str(n)}}, ${n})
+     - set_freq_corr(${'$'}{${'corr' + str(n)}}, ${n})
+     % if sourk == 'source':
+     - set_dc_offset_mode(${'$'}{${'dc_offset_mode' + str(n)}}, ${n})
+diff --git a/include/osmosdr/CMakeLists.txt b/include/osmosdr/CMakeLists.txt
+index 19ca3bc..d185ee6 100644
+--- include/osmosdr/CMakeLists.txt
++++ include/osmosdr/CMakeLists.txt
+@@ -1,7 +1,6 @@
+-# Copyright 2011,2012 Free Software Foundation, Inc.
++# Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file was generated by gr_modtool, a tool from the GNU Radio framework
+-# This file is a part of gr-osmosdr
++# This file is part of GNU Radio
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -23,6 +22,11 @@
+ ########################################################################
+ install(FILES
+     api.h
++    pimpl.h
++    ranges.h
++    time_spec.h
++    device.h
+     source.h
+-    sink.h DESTINATION include/osmosdr
++    sink.h
++    DESTINATION include/osmosdr
+ )
+diff --git a/include/osmosdr/api.h b/include/osmosdr/api.h
+index 43f2e28..d3adbf0 100644
+--- include/osmosdr/api.h
++++ include/osmosdr/api.h
+@@ -1,8 +1,7 @@
+ /*
+  * Copyright 2011 Free Software Foundation, Inc.
+  *
+- * This file was generated by gr_modtool, a tool from the GNU Radio framework
+- * This file is a part of gr-osmosdr
++ * This file is part of GNU Radio
+  *
+  * GNU Radio is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+diff --git a/include/osmosdr/sink.h b/include/osmosdr/sink.h
+index 85f41e2..906976e 100644
+--- include/osmosdr/sink.h
++++ include/osmosdr/sink.h
+@@ -1,23 +1,22 @@
+ /* -*- c++ -*- */
+ /*
+- * Copyright 2019 gr-osmosdr author.
++ * Copyright 2012 Dimitri Stolnikov <horiz0n@gmx.net>
+  *
+- * This is free software; you can redistribute it and/or modify
++ * GNU Radio is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 3, or (at your option)
+  * any later version.
+  *
+- * This software is distributed in the hope that it will be useful,
++ * GNU Radio is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+- * along with this software; see the file COPYING.  If not, write to
++ * along with GNU Radio; see the file COPYING.  If not, write to
+  * the Free Software Foundation, Inc., 51 Franklin Street,
+  * Boston, MA 02110-1301, USA.
+  */
+-
+ #ifndef INCLUDED_OSMOSDR_SINK_H
+ #define INCLUDED_OSMOSDR_SINK_H
+ 
+@@ -28,352 +27,352 @@
+ 
+ namespace osmosdr {
+ 
+-  class sink;
++class sink;
+ 
+-  /*!
+- * \brief <+description of block+>
+- * \ingroup osmosdr
++/*!
++ * \brief Takes a stream of complex samples.
++ * \ingroup block
+  *
++ * This uses the preferred technique: subclassing gr::hier_block2.
+  */
+ class OSMOSDR_API sink : virtual public gr::hier_block2
+ {
+- public:
+-  typedef boost::shared_ptr<sink> sptr;
+-
+-    /*!
+-      * \brief Return a shared_ptr to a new instance of sink.
+-      *
+-      * To avoid accidental use of raw pointers, sink's
+-      * constructor is private.  osmosdr::sink::make is the public
+-      * interface for creating new instances.
+-      *
+-      * \param args the address to identify the hardware
+-      * \return a new osmosdr sink block object
+-      */
+-    static sptr make( const std::string & args = "" );
+-
+-    /*!
+-     * Get the number of channels the underlying radio hardware offers.
+-     * \return the number of available channels
+-     */
+-    virtual size_t get_num_channels( void ) = 0;
+-
+-    /*!
+-     * Get the possible sample rates for the underlying radio hardware.
+-     * \return a range of rates in Sps
+-     */
+-    virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
+-
+-    /*!
+-     * Set the sample rate for the underlying radio hardware.
+-     * This also will select the appropriate IF bandpass, if applicable.
+-     * \param rate a new rate in Sps
+-     */
+-    virtual double set_sample_rate( double rate ) = 0;
+-
+-    /*!
+-     * Get the sample rate for the underlying radio hardware.
+-     * This is the actual sample rate and may differ from the rate set.
+-     * \return the actual rate in Sps
+-     */
+-    virtual double get_sample_rate( void ) = 0;
+-
+-    /*!
+-     * Get the tunable frequency range for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the frequency range in Hz
+-     */
+-    virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Tune the underlying radio hardware to the desired center frequency.
+-     * This also will select the appropriate RF bandpass.
+-     * \param freq the desired frequency in Hz
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual frequency in Hz
+-     */
+-    virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the center frequency the underlying radio hardware is tuned to.
+-     * This is the actual frequency and may differ from the frequency set.
+-     * \param chan the channel index 0 to N-1
+-     * \return the frequency in Hz
+-     */
+-    virtual double get_center_freq( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the frequency correction value in parts per million.
+-     * \param ppm the desired correction value in parts per million
+-     * \param chan the channel index 0 to N-1
+-     * \return correction value in parts per million
+-     */
+-    virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the frequency correction value.
+-     * \param chan the channel index 0 to N-1
+-     * \return correction value in parts per million
+-     */
+-    virtual double get_freq_corr( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the gain stage names of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return a vector of strings containing the names of gain stages
+-     */
+-    virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the settable overall gain range for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the gain range in dB
+-     */
+-    virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the settable gain range for a specific gain stage.
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the gain range in dB
+-     */
+-    virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
+-                                                  size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the gain mode for the underlying radio hardware.
+-     * This might be supported only for certain hardware types.
+-     * \param automatic the gain mode (true means automatic gain mode)
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain mode
+-     */
+-    virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the gain mode selected for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain mode (true means automatic gain mode)
+-     */
+-    virtual bool get_gain_mode( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the named gain on the underlying radio hardware.
+-     * \param gain the gain in dB
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_gain( double gain,
+-                             const std::string & name,
+-                             size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual gain setting of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double get_gain( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual gain setting of a named stage.
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the IF gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available IF gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the BB gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available BB gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the available antennas of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return a vector of strings containing the names of available antennas
+-     */
+-    virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Select the active antenna of the underlying radio hardware.
+-     * \param antenna name of the antenna to be selected
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual antenna's name
+-     */
+-    virtual std::string set_antenna( const std::string & antenna,
+-                                     size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual underlying radio hardware antenna setting.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual antenna's name
+-     */
+-    virtual std::string get_antenna( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the TX frontend DC offset value.
+-     * The value is complex to control both I and Q.
+-     *
+-     * \param offset the dc offset (1.0 is full-scale)
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the TX frontend IQ balance correction.
+-     * Use this to adjust the magnitude and phase of I and Q.
+-     *
+-     * \param balance the complex correction value
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the bandpass filter on the radio frontend.
+-     * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual filter bandwidth in Hz
+-     */
+-    virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual bandpass filter setting on the radio frontend.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual filter bandwidth in Hz
+-     */
+-    virtual double get_bandwidth( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the possible bandpass filter settings on the radio frontend.
+-     * \param chan the channel index 0 to N-1
+-     * \return a range of bandwidths in Hz
+-     */
+-    virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the time source for the device.
+-     * This sets the method of time synchronization,
+-     * typically a pulse per second or an encoded time.
+-     * Typical options for source: external, MIMO.
+-     * \param source a string representing the time source
+-     * \param mboard which motherboard to set the config
+-     */
+-    virtual void set_time_source(const std::string &source,
+-                                 const size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the currently set time source.
+-     * \param mboard which motherboard to get the config
+-     * \return the string representing the time source
+-     */
+-    virtual std::string get_time_source(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get a list of possible time sources.
+-     * \param mboard which motherboard to get the list
+-     * \return a vector of strings for possible settings
+-     */
+-    virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
+-
+-    /*!
+-     * Set the clock source for the device.
+-     * This sets the source for a 10 Mhz reference clock.
+-     * Typical options for source: internal, external, MIMO.
+-     * \param source a string representing the clock source
+-     * \param mboard which motherboard to set the config
+-     */
+-    virtual void set_clock_source(const std::string &source,
+-                                  const size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the currently set clock source.
+-     * \param mboard which motherboard to get the config
+-     * \return the string representing the clock source
+-     */
+-    virtual std::string get_clock_source(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get a list of possible clock sources.
+-     * \param mboard which motherboard to get the list
+-     * \return a vector of strings for possible settings
+-     */
+-    virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get the master clock rate.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the clock rate in Hz
+-     */
+-    virtual double get_clock_rate(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Set the master clock rate.
+-     * \param rate the new rate in Hz
+-     * \param mboard the motherboard index 0 to M-1
+-     */
+-    virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the current time registers.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the current device time
+-     */
+-    virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the time when the last pps pulse occured.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the current device time
+-     */
+-    virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Sets the time registers immediately.
+-     * \param time_spec the new time
+-     * \param mboard the motherboard index 0 to M-1
+-     */
+-    virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
+-                              size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Set the time registers at the next pps.
+-     * \param time_spec the new time
+-     */
+-    virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+-
+-    /*!
+-     * Sync the time registers with an unknown pps edge.
+-     * \param time_spec the new time
+-     */
+-    virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++public:
++  typedef boost::shared_ptr< sink > sptr;
++
++  /*!
++   * \brief Return a shared_ptr to a new instance of sink.
++   *
++   * To avoid accidental use of raw pointers, sink's
++   * constructor is private.  osmosdr::sink::make is the public
++   * interface for creating new instances.
++   *
++   * \param args the address to identify the hardware
++   * \return a new osmosdr sink block object
++   */
++  static sptr make( const std::string & args = "" );
++
++  /*!
++   * Get the number of channels the underlying radio hardware offers.
++   * \return the number of available channels
++   */
++  virtual size_t get_num_channels( void ) = 0;
++
++  /*!
++   * Get the possible sample rates for the underlying radio hardware.
++   * \return a range of rates in Sps
++   */
++  virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
++
++  /*!
++   * Set the sample rate for the underlying radio hardware.
++   * This also will select the appropriate IF bandpass, if applicable.
++   * \param rate a new rate in Sps
++   */
++  virtual double set_sample_rate( double rate ) = 0;
++
++  /*!
++   * Get the sample rate for the underlying radio hardware.
++   * This is the actual sample rate and may differ from the rate set.
++   * \return the actual rate in Sps
++   */
++  virtual double get_sample_rate( void ) = 0;
++
++  /*!
++   * Get the tunable frequency range for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the frequency range in Hz
++   */
++  virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Tune the underlying radio hardware to the desired center frequency.
++   * This also will select the appropriate RF bandpass.
++   * \param freq the desired frequency in Hz
++   * \param chan the channel index 0 to N-1
++   * \return the actual frequency in Hz
++   */
++  virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the center frequency the underlying radio hardware is tuned to.
++   * This is the actual frequency and may differ from the frequency set.
++   * \param chan the channel index 0 to N-1
++   * \return the frequency in Hz
++   */
++  virtual double get_center_freq( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the frequency correction value in parts per million.
++   * \param ppm the desired correction value in parts per million
++   * \param chan the channel index 0 to N-1
++   * \return correction value in parts per million
++   */
++  virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the frequency correction value.
++   * \param chan the channel index 0 to N-1
++   * \return correction value in parts per million
++   */
++  virtual double get_freq_corr( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the gain stage names of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return a vector of strings containing the names of gain stages
++   */
++  virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the settable overall gain range for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the gain range in dB
++   */
++  virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the settable gain range for a specific gain stage.
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the gain range in dB
++   */
++  virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
++                                                size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the gain mode for the underlying radio hardware.
++   * This might be supported only for certain hardware types.
++   * \param automatic the gain mode (true means automatic gain mode)
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain mode
++   */
++  virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the gain mode selected for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain mode (true means automatic gain mode)
++   */
++  virtual bool get_gain_mode( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the named gain on the underlying radio hardware.
++   * \param gain the gain in dB
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_gain( double gain,
++                           const std::string & name,
++                           size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual gain setting of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double get_gain( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual gain setting of a named stage.
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the IF gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available IF gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the BB gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available BB gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the available antennas of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return a vector of strings containing the names of available antennas
++   */
++  virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
++
++  /*!
++   * Select the active antenna of the underlying radio hardware.
++   * \param antenna name of the antenna to be selected
++   * \param chan the channel index 0 to N-1
++   * \return the actual antenna's name
++   */
++  virtual std::string set_antenna( const std::string & antenna,
++                                   size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual underlying radio hardware antenna setting.
++   * \param chan the channel index 0 to N-1
++   * \return the actual antenna's name
++   */
++  virtual std::string get_antenna( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the TX frontend DC offset value.
++   * The value is complex to control both I and Q.
++   *
++   * \param offset the dc offset (1.0 is full-scale)
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the TX frontend IQ balance correction.
++   * Use this to adjust the magnitude and phase of I and Q.
++   *
++   * \param balance the complex correction value
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the bandpass filter on the radio frontend.
++   * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
++   * \param chan the channel index 0 to N-1
++   * \return the actual filter bandwidth in Hz
++   */
++  virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual bandpass filter setting on the radio frontend.
++   * \param chan the channel index 0 to N-1
++   * \return the actual filter bandwidth in Hz
++   */
++  virtual double get_bandwidth( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the possible bandpass filter settings on the radio frontend.
++   * \param chan the channel index 0 to N-1
++   * \return a range of bandwidths in Hz
++   */
++  virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the time source for the device.
++   * This sets the method of time synchronization,
++   * typically a pulse per second or an encoded time.
++   * Typical options for source: external, MIMO.
++   * \param source a string representing the time source
++   * \param mboard which motherboard to set the config
++   */
++  virtual void set_time_source(const std::string &source,
++                               const size_t mboard = 0) = 0;
++
++  /*!
++   * Get the currently set time source.
++   * \param mboard which motherboard to get the config
++   * \return the string representing the time source
++   */
++  virtual std::string get_time_source(const size_t mboard) = 0;
++
++  /*!
++   * Get a list of possible time sources.
++   * \param mboard which motherboard to get the list
++   * \return a vector of strings for possible settings
++   */
++  virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
++
++  /*!
++   * Set the clock source for the device.
++   * This sets the source for a 10 Mhz reference clock.
++   * Typical options for source: internal, external, MIMO.
++   * \param source a string representing the clock source
++   * \param mboard which motherboard to set the config
++   */
++  virtual void set_clock_source(const std::string &source,
++                                const size_t mboard = 0) = 0;
++
++  /*!
++   * Get the currently set clock source.
++   * \param mboard which motherboard to get the config
++   * \return the string representing the clock source
++   */
++  virtual std::string get_clock_source(const size_t mboard) = 0;
++
++  /*!
++   * Get a list of possible clock sources.
++   * \param mboard which motherboard to get the list
++   * \return a vector of strings for possible settings
++   */
++  virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
++
++  /*!
++   * Get the master clock rate.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the clock rate in Hz
++   */
++  virtual double get_clock_rate(size_t mboard = 0) = 0;
++
++  /*!
++   * Set the master clock rate.
++   * \param rate the new rate in Hz
++   * \param mboard the motherboard index 0 to M-1
++   */
++  virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
++
++  /*!
++   * Get the current time registers.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the current device time
++   */
++  virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
++
++  /*!
++   * Get the time when the last pps pulse occured.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the current device time
++   */
++  virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
++
++  /*!
++   * Sets the time registers immediately.
++   * \param time_spec the new time
++   * \param mboard the motherboard index 0 to M-1
++   */
++  virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
++                            size_t mboard = 0) = 0;
++
++  /*!
++   * Set the time registers at the next pps.
++   * \param time_spec the new time
++   */
++  virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++
++  /*!
++   * Sync the time registers with an unknown pps edge.
++   * \param time_spec the new time
++   */
++  virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+ };
+ 
+-} // namespace osmosdr
++} /* namespace osmosdr */
+ 
+ #endif /* INCLUDED_OSMOSDR_SINK_H */
+-
+diff --git a/include/osmosdr/source.h b/include/osmosdr/source.h
+index c83c2fd..88f8385 100644
+--- include/osmosdr/source.h
++++ include/osmosdr/source.h
+@@ -1,23 +1,22 @@
+ /* -*- c++ -*- */
+ /*
+- * Copyright 2019 gr-osmosdr author.
++ * Copyright 2012 Dimitri Stolnikov <horiz0n@gmx.net>
+  *
+- * This is free software; you can redistribute it and/or modify
++ * GNU Radio is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 3, or (at your option)
+  * any later version.
+  *
+- * This software is distributed in the hope that it will be useful,
++ * GNU Radio is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+- * along with this software; see the file COPYING.  If not, write to
++ * along with GNU Radio; see the file COPYING.  If not, write to
+  * the Free Software Foundation, Inc., 51 Franklin Street,
+  * Boston, MA 02110-1301, USA.
+  */
+-
+ #ifndef INCLUDED_OSMOSDR_SOURCE_H
+ #define INCLUDED_OSMOSDR_SOURCE_H
+ 
+@@ -30,17 +29,18 @@ namespace osmosdr {
+ 
+ class source;
+ 
+-    /*!
+- * \brief <+description of block+>
+- * \ingroup osmosdr
++/*!
++ * \brief Provides a stream of complex samples.
++ * \ingroup block
+  *
++ * This uses the preferred technique: subclassing gr::hier_block2.
+  */
+ class OSMOSDR_API source : virtual public gr::hier_block2
+ {
+- public:
+-  typedef boost::shared_ptr<source> sptr;
++public:
++  typedef boost::shared_ptr< source > sptr;
+ 
+-/*!
++  /*!
+    * \brief Return a shared_ptr to a new instance of source.
+    *
+    * To avoid accidental use of raw pointers, source's
+@@ -50,374 +50,373 @@ class OSMOSDR_API source : virtual public gr::hier_block2
+    * \param args the address to identify the hardware
+    * \return a new osmosdr source block object
+    */
+-    static sptr make( const std::string & args = "" );
+-
+-    /*!
+-     * Get the number of channels the underlying radio hardware offers.
+-     * \return the number of available channels
+-     */
+-    virtual size_t get_num_channels( void ) = 0;
+-
+-    /*!
+-     * \brief seek file to \p seek_point relative to \p whence
+-     *
+-     * \param seek_point	sample offset in file
+-     * \param whence	one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)
+-     * \return true on success
+-     */
+-    virtual bool seek( long seek_point, int whence, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the possible sample rates for the underlying radio hardware.
+-     * \return a range of rates in Sps
+-     */
+-    virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
+-
+-    /*!
+-     * Set the sample rate for the underlying radio hardware.
+-     * This also will select the appropriate IF bandpass, if applicable.
+-     * \param rate a new rate in Sps
+-     */
+-    virtual double set_sample_rate( double rate ) = 0;
+-
+-    /*!
+-     * Get the sample rate for the underlying radio hardware.
+-     * This is the actual sample rate and may differ from the rate set.
+-     * \return the actual rate in Sps
+-     */
+-    virtual double get_sample_rate( void ) = 0;
+-
+-    /*!
+-     * Get the tunable frequency range for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the frequency range in Hz
+-     */
+-    virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Tune the underlying radio hardware to the desired center frequency.
+-     * This also will select the appropriate RF bandpass.
+-     * \param freq the desired frequency in Hz
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual frequency in Hz
+-     */
+-    virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the center frequency the underlying radio hardware is tuned to.
+-     * This is the actual frequency and may differ from the frequency set.
+-     * \param chan the channel index 0 to N-1
+-     * \return the frequency in Hz
+-     */
+-    virtual double get_center_freq( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the frequency correction value in parts per million.
+-     * \param ppm the desired correction value in parts per million
+-     * \param chan the channel index 0 to N-1
+-     * \return correction value in parts per million
+-     */
+-    virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the frequency correction value.
+-     * \param chan the channel index 0 to N-1
+-     * \return correction value in parts per million
+-     */
+-    virtual double get_freq_corr( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the gain stage names of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return a vector of strings containing the names of gain stages
+-     */
+-    virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the settable overall gain range for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the gain range in dB
+-     */
+-    virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the settable gain range for a specific gain stage.
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the gain range in dB
+-     */
+-    virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
+-                                                  size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the gain mode for the underlying radio hardware.
+-     * This might be supported only for certain hardware types.
+-     * \param automatic the gain mode (true means automatic gain mode)
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain mode
+-     */
+-    virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the gain mode selected for the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain mode (true means automatic gain mode)
+-     */
+-    virtual bool get_gain_mode( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the named gain on the underlying radio hardware.
+-     * \param gain the gain in dB
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_gain( double gain,
+-                             const std::string & name,
+-                             size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual gain setting of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double get_gain( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual gain setting of a named stage.
+-     * \param name the name of the gain stage
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the IF gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available IF gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the BB gain for the underlying radio hardware.
+-     * This function will automatically distribute the desired gain value over
+-     * available BB gain stages in an appropriate way and return the actual value.
+-     * \param gain the gain in dB
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual gain in dB
+-     */
+-    virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the available antennas of the underlying radio hardware.
+-     * \param chan the channel index 0 to N-1
+-     * \return a vector of strings containing the names of available antennas
+-     */
+-    virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Select the active antenna of the underlying radio hardware.
+-     * \param antenna name of the antenna to be selected
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual antenna's name
+-     */
+-    virtual std::string set_antenna( const std::string & antenna,
+-                                     size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual underlying radio hardware antenna setting.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual antenna's name
+-     */
+-    virtual std::string get_antenna( size_t chan = 0 ) = 0;
+-
+-    enum DCOffsetMode {
+-        DCOffsetOff = 0,
+-        DCOffsetManual,
+-        DCOffsetAutomatic
+-    };
+-
+-    /*!
+-     * Set the RX frontend DC correction mode.
+-     * The automatic correction subtracts out the long-run average.
+-     *
+-     * When disabled, the averaging option operation is reset.
+-     * Once in Manual mode, the average value will be held constant until
+-     * the user re-enables the automatic correction or overrides the
+-     * value by manually setting the offset.
+-     *
+-     * \param mode dc offset correction mode: 0 = Off, 1 = Manual, 2 = Automatic
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_dc_offset_mode( int mode, size_t chan = 0) = 0;
+-
+-    /*!
+-     * Set the RX frontend DC offset value.
+-     * The value is complex to control both I and Q.
+-     * Only set this when automatic correction is disabled.
+-     *
+-     * \param offset the dc offset (1.0 is full-scale)
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
+-
+-    enum IQBalanceMode {
+-        IQBalanceOff = 0,
+-        IQBalanceManual,
+-        IQBalanceAutomatic
+-    };
+-
+-    /*!
+-     * Set the RX frontend IQ balance mode.
+-     *
+-     * \param mode iq balance correction mode: 0 = Off, 1 = Manual, 2 = Automatic
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_iq_balance_mode( int mode, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the RX frontend IQ balance correction.
+-     * Use this to adjust the magnitude and phase of I and Q.
+-     *
+-     * \param balance the complex correction value
+-     * \param chan the channel index 0 to N-1
+-     */
+-    virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the bandpass filter on the radio frontend.
+-     * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual filter bandwidth in Hz
+-     */
+-    virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the actual bandpass filter setting on the radio frontend.
+-     * \param chan the channel index 0 to N-1
+-     * \return the actual filter bandwidth in Hz
+-     */
+-    virtual double get_bandwidth( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Get the possible bandpass filter settings on the radio frontend.
+-     * \param chan the channel index 0 to N-1
+-     * \return a range of bandwidths in Hz
+-     */
+-    virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
+-
+-    /*!
+-     * Set the time source for the device.
+-     * This sets the method of time synchronization,
+-     * typically a pulse per second or an encoded time.
+-     * Typical options for source: external, MIMO.
+-     * \param source a string representing the time source
+-     * \param mboard which motherboard to set the config
+-     */
+-    virtual void set_time_source(const std::string &source,
+-                                 const size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the currently set time source.
+-     * \param mboard which motherboard to get the config
+-     * \return the string representing the time source
+-     */
+-    virtual std::string get_time_source(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get a list of possible time sources.
+-     * \param mboard which motherboard to get the list
+-     * \return a vector of strings for possible settings
+-     */
+-    virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
+-
+-    /*!
+-     * Set the clock source for the device.
+-     * This sets the source for a 10 Mhz reference clock.
+-     * Typical options for source: internal, external, MIMO.
+-     * \param source a string representing the clock source
+-     * \param mboard which motherboard to set the config
+-     */
+-    virtual void set_clock_source(const std::string &source,
+-                                  const size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the currently set clock source.
+-     * \param mboard which motherboard to get the config
+-     * \return the string representing the clock source
+-     */
+-    virtual std::string get_clock_source(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get a list of possible clock sources.
+-     * \param mboard which motherboard to get the list
+-     * \return a vector of strings for possible settings
+-     */
+-    virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
+-
+-    /*!
+-     * Get the master clock rate.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the clock rate in Hz
+-     */
+-    virtual double get_clock_rate(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Set the master clock rate.
+-     * \param rate the new rate in Hz
+-     * \param mboard the motherboard index 0 to M-1
+-     */
+-    virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the current time registers.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the current device time
+-     */
+-    virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Get the time when the last pps pulse occured.
+-     * \param mboard the motherboard index 0 to M-1
+-     * \return the current device time
+-     */
+-    virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Sets the time registers immediately.
+-     * \param time_spec the new time
+-     * \param mboard the motherboard index 0 to M-1
+-     */
+-    virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
+-                              size_t mboard = 0) = 0;
+-
+-    /*!
+-     * Set the time registers at the next pps.
+-     * \param time_spec the new time
+-     */
+-    virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+-
+-    /*!
+-     * Sync the time registers with an unknown pps edge.
+-     * \param time_spec the new time
+-     */
+-    virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++  static sptr make( const std::string & args = "" );
++
++  /*!
++   * Get the number of channels the underlying radio hardware offers.
++   * \return the number of available channels
++   */
++  virtual size_t get_num_channels( void ) = 0;
++
++  /*!
++   * \brief seek file to \p seek_point relative to \p whence
++   *
++   * \param seek_point	sample offset in file
++   * \param whence	one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)
++   * \return true on success
++   */
++  virtual bool seek( long seek_point, int whence, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the possible sample rates for the underlying radio hardware.
++   * \return a range of rates in Sps
++   */
++  virtual osmosdr::meta_range_t get_sample_rates( void ) = 0;
++
++  /*!
++   * Set the sample rate for the underlying radio hardware.
++   * This also will select the appropriate IF bandpass, if applicable.
++   * \param rate a new rate in Sps
++   */
++  virtual double set_sample_rate( double rate ) = 0;
++
++  /*!
++   * Get the sample rate for the underlying radio hardware.
++   * This is the actual sample rate and may differ from the rate set.
++   * \return the actual rate in Sps
++   */
++  virtual double get_sample_rate( void ) = 0;
++
++  /*!
++   * Get the tunable frequency range for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the frequency range in Hz
++   */
++  virtual osmosdr::freq_range_t get_freq_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Tune the underlying radio hardware to the desired center frequency.
++   * This also will select the appropriate RF bandpass.
++   * \param freq the desired frequency in Hz
++   * \param chan the channel index 0 to N-1
++   * \return the actual frequency in Hz
++   */
++  virtual double set_center_freq( double freq, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the center frequency the underlying radio hardware is tuned to.
++   * This is the actual frequency and may differ from the frequency set.
++   * \param chan the channel index 0 to N-1
++   * \return the frequency in Hz
++   */
++  virtual double get_center_freq( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the frequency correction value in parts per million.
++   * \param ppm the desired correction value in parts per million
++   * \param chan the channel index 0 to N-1
++   * \return correction value in parts per million
++   */
++  virtual double set_freq_corr( double ppm, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the frequency correction value.
++   * \param chan the channel index 0 to N-1
++   * \return correction value in parts per million
++   */
++  virtual double get_freq_corr( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the gain stage names of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return a vector of strings containing the names of gain stages
++   */
++  virtual std::vector<std::string> get_gain_names( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the settable overall gain range for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the gain range in dB
++   */
++  virtual osmosdr::gain_range_t get_gain_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the settable gain range for a specific gain stage.
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the gain range in dB
++   */
++  virtual osmosdr::gain_range_t get_gain_range( const std::string & name,
++                                                size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the gain mode for the underlying radio hardware.
++   * This might be supported only for certain hardware types.
++   * \param automatic the gain mode (true means automatic gain mode)
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain mode
++   */
++  virtual bool set_gain_mode( bool automatic, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the gain mode selected for the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain mode (true means automatic gain mode)
++   */
++  virtual bool get_gain_mode( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the named gain on the underlying radio hardware.
++   * \param gain the gain in dB
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_gain( double gain,
++                           const std::string & name,
++                           size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual gain setting of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double get_gain( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual gain setting of a named stage.
++   * \param name the name of the gain stage
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the IF gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available IF gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the BB gain for the underlying radio hardware.
++   * This function will automatically distribute the desired gain value over
++   * available BB gain stages in an appropriate way and return the actual value.
++   * \param gain the gain in dB
++   * \param chan the channel index 0 to N-1
++   * \return the actual gain in dB
++   */
++  virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the available antennas of the underlying radio hardware.
++   * \param chan the channel index 0 to N-1
++   * \return a vector of strings containing the names of available antennas
++   */
++  virtual std::vector< std::string > get_antennas( size_t chan = 0 ) = 0;
++
++  /*!
++   * Select the active antenna of the underlying radio hardware.
++   * \param antenna name of the antenna to be selected
++   * \param chan the channel index 0 to N-1
++   * \return the actual antenna's name
++   */
++  virtual std::string set_antenna( const std::string & antenna,
++                                   size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual underlying radio hardware antenna setting.
++   * \param chan the channel index 0 to N-1
++   * \return the actual antenna's name
++   */
++  virtual std::string get_antenna( size_t chan = 0 ) = 0;
++
++  enum DCOffsetMode {
++    DCOffsetOff = 0,
++    DCOffsetManual,
++    DCOffsetAutomatic
++  };
++
++  /*!
++   * Set the RX frontend DC correction mode.
++   * The automatic correction subtracts out the long-run average.
++   *
++   * When disabled, the averaging option operation is reset.
++   * Once in Manual mode, the average value will be held constant until
++   * the user re-enables the automatic correction or overrides the
++   * value by manually setting the offset.
++   *
++   * \param mode dc offset correction mode: 0 = Off, 1 = Manual, 2 = Automatic
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_dc_offset_mode( int mode, size_t chan = 0) = 0;
++
++  /*!
++   * Set the RX frontend DC offset value.
++   * The value is complex to control both I and Q.
++   * Only set this when automatic correction is disabled.
++   *
++   * \param offset the dc offset (1.0 is full-scale)
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_dc_offset( const std::complex<double> &offset, size_t chan = 0 ) = 0;
++
++  enum IQBalanceMode {
++    IQBalanceOff = 0,
++    IQBalanceManual,
++    IQBalanceAutomatic
++  };
++
++  /*!
++   * Set the RX frontend IQ balance mode.
++   *
++   * \param mode iq balance correction mode: 0 = Off, 1 = Manual, 2 = Automatic
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_iq_balance_mode( int mode, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the RX frontend IQ balance correction.
++   * Use this to adjust the magnitude and phase of I and Q.
++   *
++   * \param balance the complex correction value
++   * \param chan the channel index 0 to N-1
++   */
++  virtual void set_iq_balance( const std::complex<double> &balance, size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the bandpass filter on the radio frontend.
++   * \param bandwidth the filter bandwidth in Hz, set to 0 for automatic selection
++   * \param chan the channel index 0 to N-1
++   * \return the actual filter bandwidth in Hz
++   */
++  virtual double set_bandwidth( double bandwidth, size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the actual bandpass filter setting on the radio frontend.
++   * \param chan the channel index 0 to N-1
++   * \return the actual filter bandwidth in Hz
++   */
++  virtual double get_bandwidth( size_t chan = 0 ) = 0;
++
++  /*!
++   * Get the possible bandpass filter settings on the radio frontend.
++   * \param chan the channel index 0 to N-1
++   * \return a range of bandwidths in Hz
++   */
++  virtual osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 ) = 0;
++
++  /*!
++   * Set the time source for the device.
++   * This sets the method of time synchronization,
++   * typically a pulse per second or an encoded time.
++   * Typical options for source: external, MIMO.
++   * \param source a string representing the time source
++   * \param mboard which motherboard to set the config
++   */
++  virtual void set_time_source(const std::string &source,
++                               const size_t mboard = 0) = 0;
++
++  /*!
++   * Get the currently set time source.
++   * \param mboard which motherboard to get the config
++   * \return the string representing the time source
++   */
++  virtual std::string get_time_source(const size_t mboard) = 0;
++
++  /*!
++   * Get a list of possible time sources.
++   * \param mboard which motherboard to get the list
++   * \return a vector of strings for possible settings
++   */
++  virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
++
++  /*!
++   * Set the clock source for the device.
++   * This sets the source for a 10 Mhz reference clock.
++   * Typical options for source: internal, external, MIMO.
++   * \param source a string representing the clock source
++   * \param mboard which motherboard to set the config
++   */
++  virtual void set_clock_source(const std::string &source,
++                                const size_t mboard = 0) = 0;
++
++  /*!
++   * Get the currently set clock source.
++   * \param mboard which motherboard to get the config
++   * \return the string representing the clock source
++   */
++  virtual std::string get_clock_source(const size_t mboard) = 0;
++
++  /*!
++   * Get a list of possible clock sources.
++   * \param mboard which motherboard to get the list
++   * \return a vector of strings for possible settings
++   */
++  virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
++
++  /*!
++   * Get the master clock rate.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the clock rate in Hz
++   */
++  virtual double get_clock_rate(size_t mboard = 0) = 0;
++
++  /*!
++   * Set the master clock rate.
++   * \param rate the new rate in Hz
++   * \param mboard the motherboard index 0 to M-1
++   */
++  virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
++
++  /*!
++   * Get the current time registers.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the current device time
++   */
++  virtual ::osmosdr::time_spec_t get_time_now(size_t mboard = 0) = 0;
++
++  /*!
++   * Get the time when the last pps pulse occured.
++   * \param mboard the motherboard index 0 to M-1
++   * \return the current device time
++   */
++  virtual ::osmosdr::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
++
++  /*!
++   * Sets the time registers immediately.
++   * \param time_spec the new time
++   * \param mboard the motherboard index 0 to M-1
++   */
++  virtual void set_time_now(const ::osmosdr::time_spec_t &time_spec,
++                            size_t mboard = 0) = 0;
++
++  /*!
++   * Set the time registers at the next pps.
++   * \param time_spec the new time
++   */
++  virtual void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
++
++  /*!
++   * Sync the time registers with an unknown pps edge.
++   * \param time_spec the new time
++   */
++  virtual void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec) = 0;
+ };
+ 
+-} // namespace osmosdr
++} /* namespace osmosdr */
+ 
+ #endif /* INCLUDED_OSMOSDR_SOURCE_H */
+-
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index d05da32..29fd6d0 100644
+--- lib/CMakeLists.txt
++++ lib/CMakeLists.txt
+@@ -21,7 +21,6 @@
+ # Setup library
+ ########################################################################
+ INCLUDE(GrPlatform) #define LIB_SUFFIX
+-INCLUDE(OsmoSDRMiscUtils)
+ INCLUDE(GrMiscUtils)
+ INCLUDE(GrComponent)
+ 
+@@ -119,11 +118,11 @@ SET_SOURCE_FILES_PROPERTIES(
+ ########################################################################
+ # Setup IQBalance component
+ ########################################################################
+-GR_REGISTER_COMPONENT("Osmocom IQ Imbalance Correction" ENABLE_IQBALANCE gnuradio-iqbalance_FOUND)
++GR_REGISTER_COMPONENT("Osmocom IQ Imbalance Correction" ENABLE_IQBALANCE GNURADIO_IQBALANCE_FOUND)
+ if(ENABLE_IQBALANCE)
+ add_definitions(-DHAVE_IQBALANCE=1)
+-include_directories(${IQBALANCE_INCLUDE_DIRS})
+-GR_OSMOSDR_APPEND_LIBS(${IQBALANCE_LIBRARIES})
++include_directories(${GNURADIO_IQBALANCE_INCLUDE_DIRS})
++GR_OSMOSDR_APPEND_LIBS(${GNURADIO_IQBALANCE_LIBRARIES})
+ endif(ENABLE_IQBALANCE)
+ 
+ ########################################################################
+@@ -137,7 +136,7 @@ endif(ENABLE_OSMOSDR)
+ ########################################################################
+ # Setup File component
+ ########################################################################
+-GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE gnuradio-blocks_FOUND)
++GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE GNURADIO_BLOCKS_FOUND)
+ if(ENABLE_FILE)
+ GR_INCLUDE_SUBDIRECTORY(file)
+ endif(ENABLE_FILE)
+@@ -153,7 +152,7 @@ endif(ENABLE_RTL)
+ ########################################################################
+ # Setup RTL_TCP component
+ ########################################################################
+-GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP gnuradio-blocks_FOUND)
++GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP GNURADIO_BLOCKS_FOUND)
+ if(ENABLE_RTL_TCP)
+ GR_INCLUDE_SUBDIRECTORY(rtl_tcp)
+ endif(ENABLE_RTL_TCP)
+@@ -161,7 +160,7 @@ endif(ENABLE_RTL_TCP)
+ ########################################################################
+ # Setup UHD component
+ ########################################################################
+-GR_REGISTER_COMPONENT("Ettus USRP Devices" ENABLE_UHD UHD_FOUND gnuradio-uhd_FOUND)
++GR_REGISTER_COMPONENT("Ettus USRP Devices" ENABLE_UHD UHD_FOUND GNURADIO_UHD_FOUND)
+ if(ENABLE_UHD)
+ GR_INCLUDE_SUBDIRECTORY(uhd)
+ endif(ENABLE_UHD)
+@@ -270,4 +269,4 @@ ENDIF(MSVC)
+ ADD_LIBRARY(gnuradio-osmosdr SHARED ${gr_osmosdr_srcs})
+ TARGET_LINK_LIBRARIES(gnuradio-osmosdr ${gr_osmosdr_libs})
+ SET_TARGET_PROPERTIES(gnuradio-osmosdr PROPERTIES DEFINE_SYMBOL "gnuradio_osmosdr_EXPORTS")
+-GR_LIBRARY_FOO_V2(gnuradio-osmosdr)
++GR_LIBRARY_FOO(gnuradio-osmosdr)
+diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
+index 883f119..8841f36 100644
+--- python/CMakeLists.txt
++++ python/CMakeLists.txt
+@@ -1,7 +1,6 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file was generated by gr_modtool, a tool from the GNU Radio framework
+-# This file is a part of gr-osmosdr
++# This file is part of GNU Radio
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/python/__init__.py b/python/__init__.py
+index bc8240f..70c469d 100644
+--- python/__init__.py
++++ python/__init__.py
+@@ -19,16 +19,17 @@
+ # The presence of this file turns this directory into a Python package
+ 
+ '''
+-This is the GNU Radio OSMOSDR module. Place your Python package
+-description here (python/__init__.py).
++This is the GNU Radio OsmoSDR module.
+ '''
++
+ from __future__ import unicode_literals
+ 
+ # import swig generated symbols into the osmosdr namespace
+ try:
+     # this might fail if the module is python-only
+     from .osmosdr_swig import *
+-except ImportError:
++except ImportError as ie:
++    print(ie)
+     pass
+ 
+ # import any pure python here
+diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
+index aabc555..d01d029 100644
+--- swig/CMakeLists.txt
++++ swig/CMakeLists.txt
+@@ -1,7 +1,6 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file was generated by gr_modtool, a tool from the GNU Radio framework
+-# This file is a part of gr-osmosdr
++# This file is part of GNU Radio
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -21,10 +20,10 @@
+ ########################################################################
+ # Check if there is C++ code at all
+ ########################################################################
+-if(NOT osmosdr_sources)
+-    MESSAGE(STATUS "No C++ sources... skipping swig/")
+-    return()
+-endif(NOT osmosdr_sources)
++#if(NOT osmosdr_sources)
++#    MESSAGE(STATUS "No C++ sources... skipping swig/")
++#    return()
++#endif(NOT osmosdr_sources)
+ 
+ ########################################################################
+ # Include swig generation macros
+@@ -40,6 +39,9 @@ include(GrPython)
+ ########################################################################
+ # Setup swig generation
+ ########################################################################
++foreach(incdir ${GNURADIO_ALL_INCLUDE_DIRS})
++    list(APPEND GR_SWIG_INCLUDE_DIRS ${incdir}/gnuradio/swig)
++endforeach(incdir)
+ set(GR_SWIG_INCLUDE_DIRS $<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>)
+ set(GR_SWIG_TARGET_DEPS gnuradio::runtime_swig)
+ 
+diff --git a/swig/osmosdr_swig.i b/swig/osmosdr_swig.i
+index 5e38c0a..550008b 100644
+--- swig/osmosdr_swig.i
++++ swig/osmosdr_swig.i
+@@ -2,17 +2,81 @@
+ 
+ #define OSMOSDR_API
+ 
+-%include "gnuradio.i"           // the common stuff
++// suppress Warning 319: No access specifier given for base class 'boost::noncopyable' (ignored).
++#pragma SWIG nowarn=319
++
++%include "gnuradio.i"			// the common stuff
+ 
+ //load generated python docstrings
+ %include "osmosdr_swig_doc.i"
+ 
+ %{
++#include "osmosdr/device.h"
+ #include "osmosdr/source.h"
+ #include "osmosdr/sink.h"
+ %}
+ 
++// Workaround for a SWIG 2.0.4 bug with templates. Probably needs to be looked in to.
++%{
++#if PY_VERSION_HEX >= 0x03020000
++# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
++#else
++# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
++#endif
++%}
++
++%template(string_vector_t) std::vector<std::string>;
++
++//%template(size_vector_t) std::vector<size_t>;
++
++%include <osmosdr/pimpl.h>
++
++%ignore osmosdr::device_t::operator[]; //ignore warnings about %extend
++
++%template(string_string_dict_t) std::map<std::string, std::string>; //define before device
++%template(devices_t) std::vector<osmosdr::device_t>;
++%include <osmosdr/device.h>
++
++//%extend std::map<std::string, std::string>{
++//    std::string __getitem__(std::string key) {return (*self)[key];}
++//    void __setitem__(std::string key, std::string val) {(*self)[key] = val;}
++//};
++
++%template(range_vector_t) std::vector<osmosdr::range_t>; //define before range
++%include <osmosdr/ranges.h>
++
++%include <osmosdr/time_spec.h>
++
++%extend osmosdr::time_spec_t{
++    osmosdr::time_spec_t __add__(const osmosdr::time_spec_t &what)
++    {
++        osmosdr::time_spec_t temp = *self;
++        temp += what;
++        return temp;
++    }
++    osmosdr::time_spec_t __sub__(const osmosdr::time_spec_t &what)
++    {
++        osmosdr::time_spec_t temp = *self;
++        temp -= what;
++        return temp;
++    }
++};
++
++%define OSMOSDR_SWIG_BLOCK_MAGIC2(PKG, BASE_NAME)
++%template(BASE_NAME ## _sptr) boost::shared_ptr<PKG ## :: ## BASE_NAME>;
++%pythoncode %{
++BASE_NAME ## _sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
++BASE_NAME = BASE_NAME.make;
++%}
++%enddef
++
+ %include "osmosdr/source.h"
+-GR_SWIG_BLOCK_MAGIC2(osmosdr, source);
+ %include "osmosdr/sink.h"
+-GR_SWIG_BLOCK_MAGIC2(osmosdr, sink);
++
++OSMOSDR_SWIG_BLOCK_MAGIC2(osmosdr,source);
++OSMOSDR_SWIG_BLOCK_MAGIC2(osmosdr,sink);
++
++%{
++static const size_t ALL_MBOARDS = osmosdr::ALL_MBOARDS;
++%}
++//static const size_t ALL_MBOARDS;
+-- 
+2.20.1
+
+From acddfbcd3b2fccbf98f07641679b148849882f27 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Tue, 16 Apr 2019 14:48:24 +0200
+Subject: [PATCH 5/7] Small cleanup.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ grc/gen_osmosdr_blocks.py | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py
+index a4a7f96..840320a 100644
+--- grc/gen_osmosdr_blocks.py
++++ grc/gen_osmosdr_blocks.py
+@@ -347,9 +347,6 @@ PARAMS_TMPL = """
+   hide: ${'$'}{'all' if not (nchan > ${n}) else ('none' if eval('bw' + str(${n})) else 'part')}
+ """
+ 
+-# def parse_tmpl(_tmpl, **kwargs):
+-#     from Cheetah import Template
+-#     return str(Template.Template(_tmpl, kwargs))
+ 
+ def parse_tmpl(_tmpl, **kwargs):
+     from mako.template import Template
+-- 
+2.20.1
+
+From 512aeda2cc6a217d543c00f5b00fea571c85e473 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mickey=20V=C3=A4nsk=C3=A4?= <mvaenskae@gmail.com>
+Date: Tue, 16 Apr 2019 14:55:27 +0200
+Subject: [PATCH 6/7] Update .gitignore for IDEA exceptions.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Mickey Vänskä <mvaenskae@gmail.com>
+---
+ .gitignore | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 68 insertions(+)
+
+diff --git a/.gitignore b/.gitignore
+index 4505df8..05e004f 100644
+--- .gitignore
++++ .gitignore
+@@ -4,3 +4,71 @@
+ build*/
+ cmake-*
+ libosmo-dsp/*
++
++# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
++# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
++
++# User-specific stuff
++.idea
++.idea/**/workspace.xml
++.idea/**/tasks.xml
++.idea/**/usage.statistics.xml
++.idea/**/dictionaries
++.idea/**/shelf
++
++# Generated files
++.idea/**/contentModel.xml
++
++# Sensitive or high-churn files
++.idea/**/dataSources/
++.idea/**/dataSources.ids
++.idea/**/dataSources.local.xml
++.idea/**/sqlDataSources.xml
++.idea/**/dynamic.xml
++.idea/**/uiDesigner.xml
++.idea/**/dbnavigator.xml
++
++# Gradle
++.idea/**/gradle.xml
++.idea/**/libraries
++
++# Gradle and Maven with auto-import
++# When using Gradle or Maven with auto-import, you should exclude module files,
++# since they will be recreated, and may cause churn.  Uncomment if using
++# auto-import.
++# .idea/modules.xml
++# .idea/*.iml
++# .idea/modules
++
++# CMake
++cmake-build-*/
++
++# Mongo Explorer plugin
++.idea/**/mongoSettings.xml
++
++# File-based project format
++*.iws
++
++# IntelliJ
++out/
++
++# mpeltonen/sbt-idea plugin
++.idea_modules/
++
++# JIRA plugin
++atlassian-ide-plugin.xml
++
++# Cursive Clojure plugin
++.idea/replstate.xml
++
++# Crashlytics plugin (for Android Studio and IntelliJ)
++com_crashlytics_export_strings.xml
++crashlytics.properties
++crashlytics-build.properties
++fabric.properties
++
++# Editor-based Rest Client
++.idea/httpRequests
++
++# Android studio 3.1+ serialized cache file
++.idea/caches/build_file_checksums.ser
+-- 
+2.20.1
+
+From f3905d3510dfb3851f946f097a9e2ddaa5fb333b Mon Sep 17 00:00:00 2001
+From: Igor Freire <igor.auad@gmail.com>
+Date: Mon, 13 May 2019 16:00:07 -0300
+Subject: [PATCH 7/7] Include gnuradio-blocks on the cmake build
+
+---
+ CMakeLists.txt     | 4 ++--
+ lib/CMakeLists.txt | 1 +
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f836233..76375dc 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -167,10 +167,10 @@ endif(APPLE)
+ ########################################################################
+ set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS)
+ 
+-#[[find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
+ message(STATUS "Found Block Block: ${gnuradio-blocks_FOUND}")
+ 
+-find_package(gnuradio-pmt PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++#[[find_package(gnuradio-pmt PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
+ message(STATUS "Found PMT Block: ${gnuradio-pmt_FOUND}")
+ 
+ find_package(gnuradio-runtime PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 29fd6d0..2171df2 100644
+--- lib/CMakeLists.txt
++++ lib/CMakeLists.txt
+@@ -51,6 +51,7 @@ endif()
+ 
+ GR_OSMOSDR_APPEND_LIBS(
+     ${Boost_LIBRARIES}
++    gnuradio::gnuradio-blocks
+     ${GNURADIO_ALL_LIBRARIES}
+ )
+ 
+-- 
+2.20.1
+
diff --git a/srcpkgs/gnuradio-osmosdr/patches/0002-find-gr38-blocks.patch b/srcpkgs/gnuradio-osmosdr/patches/0002-find-gr38-blocks.patch
new file mode 100644
index 00000000000..2ed51b82379
--- /dev/null
+++ b/srcpkgs/gnuradio-osmosdr/patches/0002-find-gr38-blocks.patch
@@ -0,0 +1,65 @@
+From f054c63bd56704b5dd6b144622be9de95ba2ed72 Mon Sep 17 00:00:00 2001
+From: "A. Maitland Bottoms" <bottoms@debian.org>
+Date: Sun, 1 Dec 2019 17:23:43 -0500
+Subject: [PATCH 2/2] find gr38 blocks
+
+---
+ CMakeLists.txt     | 8 ++++----
+ lib/CMakeLists.txt | 4 ++--
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 76375dc..0cb94d5 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -112,7 +112,7 @@ ENDIF()
+ ########################################################################
+ # Install directories
+ ########################################################################
+-find_package(Gnuradio REQUIRED) # Side effect of MODULE_PATH getting prepended with system components
++find_package(Gnuradio REQUIRED COMPONENTS blocks) # Side effect of MODULE_PATH getting prepended with system components
+ list(REVERSE CMAKE_MODULE_PATH)
+ set(MIN_GR_VERSION "3.8")
+ if("${Gnuradio_VERSION}" VERSION_LESS MIN_GR_VERSION)
+@@ -167,13 +167,13 @@ endif(APPLE)
+ ########################################################################
+ set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS)
+ 
+-find_package(gnuradio-blocks PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++find_package(gnuradio-blocks PATHS ${Gnuradio_DIR})
+ message(STATUS "Found Block Block: ${gnuradio-blocks_FOUND}")
+ 
+-#[[find_package(gnuradio-pmt PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++#[[find_package(gnuradio-pmt PATHS ${Gnuradio_DIR})
+ message(STATUS "Found PMT Block: ${gnuradio-pmt_FOUND}")
+ 
+-find_package(gnuradio-runtime PATHS ${GR_PREFIX}/lib/cmake/gnuradio/)
++find_package(gnuradio-runtime PATHS ${Gnuradio_DIR})
+ message(STATUS "Found Runtime Block: ${gnuradio-runtime_FOUND}")
+ 
+ # Software Components part of GNU Radio - These should all be present for a default install
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 2171df2..5e3098d 100644
+--- lib/CMakeLists.txt
++++ lib/CMakeLists.txt
+@@ -137,7 +137,7 @@ endif(ENABLE_OSMOSDR)
+ ########################################################################
+ # Setup File component
+ ########################################################################
+-GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE GNURADIO_BLOCKS_FOUND)
++GR_REGISTER_COMPONENT("IQ File Source & Sink" ENABLE_FILE gnuradio-blocks_FOUND)
+ if(ENABLE_FILE)
+ GR_INCLUDE_SUBDIRECTORY(file)
+ endif(ENABLE_FILE)
+@@ -153,7 +153,7 @@ endif(ENABLE_RTL)
+ ########################################################################
+ # Setup RTL_TCP component
+ ########################################################################
+-GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP GNURADIO_BLOCKS_FOUND)
++GR_REGISTER_COMPONENT("RTLSDR TCP Client" ENABLE_RTL_TCP gnuradio-blocks_FOUND)
+ if(ENABLE_RTL_TCP)
+ GR_INCLUDE_SUBDIRECTORY(rtl_tcp)
+ endif(ENABLE_RTL_TCP)
+-- 
+2.20.1
+
diff --git a/srcpkgs/gnuradio-osmosdr/template b/srcpkgs/gnuradio-osmosdr/template
index 579e7ad0a69..fb5dfa0823f 100644
--- a/srcpkgs/gnuradio-osmosdr/template
+++ b/srcpkgs/gnuradio-osmosdr/template
@@ -1,19 +1,18 @@
 # Template file for 'gnuradio-osmosdr'
 pkgname=gnuradio-osmosdr
-version=0.1.4
-revision=7
+version=0.1.5
+revision=1
 wrksrc="gr-osmosdr-${version}"
 build_style=cmake
-pycompile_module="osmosdr"
-hostmakedepends="pkg-config python-cheetah swig"
+hostmakedepends="pkg-config swig"
 makedepends="boost-devel gnuradio-devel libairspy-devel libhackrf-devel librtlsdr-devel
- python-devel uhd-devel"
+ python3-devel uhd-devel log4cpp-devel mpir-devel SoapySDR-devel volk-devel"
 short_desc="GNU Radio source block for rtlsdr, hackrf and airspy"
-maintainer="bra1nwave <brainwave@openmailbox.org>"
+maintainer="bra1nwave <bra1nwave@protonmail.com>"
 license="GPL-3.0-or-later"
 homepage="https://sdr.osmocom.org/trac/"
 distfiles="https://github.com/osmocom/gr-osmosdr/archive/v${version}.tar.gz"
-checksum=bcf9a9b1760e667c41a354e8cd41ef911d0929d5e4a18e0594ccb3320d735066
+checksum=a5820e80465d895a9b4b73e0ff01924d6b612a9a390bbd3488177379a9539d00
 
 gnuradio-osmosdr-devel_package() {
 	short_desc+=" - development files"
@@ -21,6 +20,7 @@ gnuradio-osmosdr-devel_package() {
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.so"
+		vmove usr/lib/cmake
 		vmove usr/lib/pkgconfig
 	}
 }

From 098bf3ef77bdf334ec8acf88ad996448b8f7be9d Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sun, 2 Feb 2020 08:37:48 +0100
Subject: [PATCH 06/10] gqrx: update to 2.12.1.

[skip ci]
---
 srcpkgs/gqrx/template | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/gqrx/template b/srcpkgs/gqrx/template
index 968d118506d..9cb91659bd1 100644
--- a/srcpkgs/gqrx/template
+++ b/srcpkgs/gqrx/template
@@ -1,20 +1,21 @@
 # Template file for 'gqrx'
 pkgname=gqrx
-version=2.11.5
-revision=6
-wrksrc="gqrx-sdr-${version}"
+version=2.12.1
+revision=1
 build_style=cmake
 configure_args="$(vopt_if gr_audio -DLINUX_AUDIO_BACKEND=Gr-audio)
  $(vopt_if portaudio -DLINUX_AUDIO_BACKEND=Portaudio)"
 hostmakedepends="pkg-config"
 makedepends="boost-devel gnuradio-devel gnuradio-osmosdr-devel pulseaudio-devel
- qt5-svg-devel $(vopt_if portaudio portaudio-devel)"
+ qt5-svg-devel log4cpp-devel mpir-devel volk-devel fftw-devel python3-devel
+ alsa-lib-devel jack-devel $(vopt_if portaudio portaudio-devel)"
 short_desc="Software defined radio receiver powered by GNU Radio and Qt"
-maintainer="bra1nwave <brainwave@openmailbox.org>"
+maintainer="bra1nwave <bra1nwave@protonmail.com>"
 license="GPL-3.0-or-later"
 homepage="http://gqrx.dk/"
-distfiles="https://github.com/csete/gqrx/releases/download/v${version}/gqrx-sdr-${version}-src.tar.xz"
-checksum=793062ef7b49a3f986b82a255f949cdda42333107fc5fcea10fd13db74157744
+changelog="https://raw.githubusercontent.com/csete/gqrx/master/resources/news.txt"
+distfiles="https://github.com/csete/gqrx/archive/v${version}.tar.gz"
+checksum=7c626db9f22c3edbe30299a08f7f549b4f30dd83c883595468029a27c3e8fda9
 
 build_options="gr_audio portaudio"
 vopt_conflict gr_audio portaudio

From d38ef45ba0e7bf853d392ebf296e16c4097c82a9 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sun, 2 Feb 2020 08:42:36 +0100
Subject: [PATCH 07/10] gnuradio-rds: update to 3.8.0.

[skip ci]
---
 common/shlibs                 |  2 +-
 srcpkgs/gnuradio-rds/template | 10 ++++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index e4adca95388..e4cfdd8baaf 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3505,7 +3505,7 @@ libllhttp.so.1 llhttp-1.0.1_1
 libpinyin.so.13 libpinyin-2.2.1_1
 libuhd.so.3.15.0 uhd-3.15.0.0_1
 libeditline.so.1 editline-1.16.0_1
-libgnuradio-rds-3.7.0git.so.0.0.0 gnuradio-rds-1.1.0_1
+libgnuradio-rds.so.1 gnuradio-rds-3.8.0_1
 libgnuradio-nrsc5-1.0.0git.so.0.0.0 gnuradio-nrsc5-1.0.0_1
 libvkd3d-utils.so.1 vkd3d-1.1_1
 libvkd3d.so.1 vkd3d-1.1_1
diff --git a/srcpkgs/gnuradio-rds/template b/srcpkgs/gnuradio-rds/template
index 08947d1a975..82f1c289e80 100644
--- a/srcpkgs/gnuradio-rds/template
+++ b/srcpkgs/gnuradio-rds/template
@@ -1,23 +1,25 @@
 # Template file for 'gnuradio-rds'
 pkgname=gnuradio-rds
-version=1.1.0
-revision=2
+version=3.8.0
+revision=1
 wrksrc="gr-rds-${version}"
 build_style=cmake
 hostmakedepends="pkg-config swig"
-makedepends="gnuradio-devel python-devel boost-devel"
+makedepends="gnuradio-devel python3-devel boost-devel log4cpp-devel
+ mpir-devel volk-devel"
 short_desc="GNUradio FM RDS/TMC Transceiver"
 maintainer="Remi Pommarel <repk@triplefau.lt>"
 license="GPL-2.0-or-later"
 homepage="https://github.com/bastibl/gr-rds/"
 distfiles="https://github.com/bastibl/gr-rds/archive/v${version}.tar.gz"
-checksum=503574ed44e00caba1fb2aed7722fac487c318e57cb438d3af7833cd91dffb22
+checksum=39cada996eca9f362fb07548c5f4f7b95c9d138c3859aa7a673a58cc105f563a
 
 gnuradio-rds-devel_package() {
 	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
+		vmove usr/lib/cmake
 		vmove "usr/lib/*.so"
 	}
 }

From 78b3652f01a8974db82d2c003d28e255da53decd Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sun, 2 Feb 2020 10:07:35 +0100
Subject: [PATCH 08/10] gnuradio-nrsc5: rebuild against gnuradio-3.8.0.0_1

[skip ci]
---
 srcpkgs/gnuradio-nrsc5/patches/py3.8.patch | 13121 +++++++++++++++++++
 srcpkgs/gnuradio-nrsc5/template            |     7 +-
 2 files changed, 13125 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/gnuradio-nrsc5/patches/py3.8.patch

diff --git a/srcpkgs/gnuradio-nrsc5/patches/py3.8.patch b/srcpkgs/gnuradio-nrsc5/patches/py3.8.patch
new file mode 100644
index 00000000000..54f3bb59b33
--- /dev/null
+++ b/srcpkgs/gnuradio-nrsc5/patches/py3.8.patch
@@ -0,0 +1,13121 @@
+https://github.com/argilo/gr-nrsc5/commit/4f5fe69e69dd2dcef99582f7d4393660f78308bf.patch
+
+From 4f5fe69e69dd2dcef99582f7d4393660f78308bf Mon Sep 17 00:00:00 2001
+From: Clayton Smith <argilo@gmail.com>
+Date: Sat, 27 Jul 2019 10:34:29 -0400
+Subject: [PATCH] GNU Radio 3.8 support.
+
+---
+ CMakeLists.txt                                |  147 +-
+ README.md                                     |    1 -
+ apps/CMakeLists.txt                           |    3 +-
+ apps/hd_tx_hackrf.grc                         | 2679 -------------
+ apps/hd_tx_hackrf.py                          |  157 -
+ apps/hd_tx_rtl_file.grc                       | 1908 +++-------
+ apps/hd_tx_rtl_file.py                        |   52 +-
+ apps/hd_tx_usrp.grc                           | 3333 +++++------------
+ apps/hd_tx_usrp.py                            |   90 +-
+ cmake/Modules/CMakeParseArgumentsCopy.cmake   |    2 +-
+ cmake/Modules/FindCppUnit.cmake               |   39 -
+ cmake/Modules/FindGnuradioRuntime.cmake       |   36 -
+ cmake/Modules/GrMiscUtils.cmake               |  528 ---
+ cmake/Modules/GrPlatform.cmake                |   62 -
+ cmake/Modules/GrPython.cmake                  |  241 --
+ cmake/Modules/GrSwig.cmake                    |  256 --
+ cmake/Modules/GrTest.cmake                    |  143 -
+ cmake/Modules/UseSWIG.cmake                   |  304 --
+ cmake/Modules/nrsc5Config.cmake               |    5 +-
+ .../Modules/targetConfig.cmake.in             |   40 +-
+ docs/CMakeLists.txt                           |    3 +-
+ docs/doxygen/CMakeLists.txt                   |    3 +-
+ docs/doxygen/Doxyfile.in                      |   10 +-
+ docs/doxygen/Doxyfile.swig_doc.in             |    8 +-
+ docs/doxygen/doxyxml/__init__.py              |    6 +-
+ docs/doxygen/doxyxml/base.py                  |   21 +-
+ docs/doxygen/doxyxml/doxyindex.py             |   11 +-
+ docs/doxygen/doxyxml/generated/__init__.py    |    1 +
+ docs/doxygen/doxyxml/generated/compound.py    |    8 +-
+ .../doxyxml/generated/compoundsuper.py        |   40 +-
+ docs/doxygen/doxyxml/generated/index.py       |    6 +-
+ docs/doxygen/doxyxml/generated/indexsuper.py  |   21 +-
+ docs/doxygen/doxyxml/text.py                  |    8 +-
+ docs/doxygen/swig_doc.py                      |   26 +-
+ grc/CMakeLists.txt                            |   27 +-
+ grc/nrsc5_hdc_encoder.block.yml               |   33 +
+ grc/nrsc5_hdc_encoder.xml                     |   31 -
+ grc/nrsc5_l1_fm_encoder_mp1.block.yml         |   26 +
+ grc/nrsc5_l1_fm_encoder_mp1.xml               |   23 -
+ grc/nrsc5_l1_fm_encoder_mp11.block.yml        |   34 +
+ grc/nrsc5_l1_fm_encoder_mp11.xml              |   33 -
+ grc/nrsc5_l1_fm_encoder_mp2.block.yml         |   30 +
+ grc/nrsc5_l1_fm_encoder_mp2.xml               |   28 -
+ grc/nrsc5_l1_fm_encoder_mp3.block.yml         |   30 +
+ grc/nrsc5_l1_fm_encoder_mp3.xml               |   28 -
+ grc/nrsc5_l1_fm_encoder_mp5.block.yml         |   34 +
+ grc/nrsc5_l1_fm_encoder_mp5.xml               |   33 -
+ grc/nrsc5_l1_fm_encoder_mp5_ms1.block.yml     |   46 +
+ grc/nrsc5_l1_fm_encoder_mp5_ms1.xml           |   48 -
+ grc/nrsc5_l1_fm_encoder_mp6.block.yml         |   30 +
+ grc/nrsc5_l1_fm_encoder_mp6.xml               |   28 -
+ grc/nrsc5_l1_fm_encoder_mp6_ms1.block.yml     |   42 +
+ grc/nrsc5_l1_fm_encoder_mp6_ms1.xml           |   43 -
+ grc/nrsc5_l2_encoder.block.yml                |   44 +
+ grc/nrsc5_l2_encoder.xml                      |   71 -
+ grc/nrsc5_psd_encoder.block.yml               |   31 +
+ grc/nrsc5_psd_encoder.xml                     |   31 -
+ grc/nrsc5_sis_encoder.block.yml               |   24 +
+ grc/nrsc5_sis_encoder.xml                     |   20 -
+ include/nrsc5/CMakeLists.txt                  |    9 +-
+ include/nrsc5/api.h                           |    3 +-
+ include/nrsc5/hdc_encoder.h                   |    1 -
+ include/nrsc5/l1_fm_encoder.h                 |    1 -
+ include/nrsc5/l2_encoder.h                    |    1 -
+ include/nrsc5/psd_encoder.h                   |    1 -
+ include/nrsc5/sis_encoder.h                   |    1 -
+ lib/CMakeLists.txt                            |   64 +-
+ lib/hdc_encoder_impl.cc                       |    1 +
+ lib/hdc_encoder_impl.h                        |    1 +
+ lib/l1_fm_encoder_impl.cc                     |    1 +
+ lib/l1_fm_encoder_impl.h                      |    1 +
+ lib/l2_encoder_impl.cc                        |    1 +
+ lib/l2_encoder_impl.h                         |    1 +
+ lib/psd_encoder_impl.cc                       |    1 +
+ lib/qa_nrsc5.cc                               |   36 -
+ lib/qa_nrsc5.h                                |   38 -
+ lib/sis_encoder_impl.cc                       |    1 +
+ lib/test_nrsc5.cc                             |   48 -
+ python/CMakeLists.txt                         |    7 +-
+ python/__init__.py                            |    7 +-
+ python/build_utils.py                         |  226 --
+ python/qa_hdc_encoder.py                      |   14 +-
+ python/qa_l1_fm_encoder.py                    |   14 +-
+ python/qa_l2_encoder.py                       |   14 +-
+ python/qa_psd_encoder.py                      |   14 +-
+ python/qa_sis_encoder.py                      |   14 +-
+ swig/CMakeLists.txt                           |   15 +-
+ swig/nrsc5_swig.i                             |   15 +-
+ 88 files changed, 2112 insertions(+), 9485 deletions(-)
+ delete mode 100644 apps/hd_tx_hackrf.grc
+ delete mode 100755 apps/hd_tx_hackrf.py
+ delete mode 100644 cmake/Modules/FindCppUnit.cmake
+ delete mode 100644 cmake/Modules/FindGnuradioRuntime.cmake
+ delete mode 100644 cmake/Modules/GrMiscUtils.cmake
+ delete mode 100644 cmake/Modules/GrPlatform.cmake
+ delete mode 100644 cmake/Modules/GrPython.cmake
+ delete mode 100644 cmake/Modules/GrSwig.cmake
+ delete mode 100644 cmake/Modules/GrTest.cmake
+ delete mode 100644 cmake/Modules/UseSWIG.cmake
+ rename python/build_utils_codes.py => cmake/Modules/targetConfig.cmake.in (52%)
+ create mode 100644 grc/nrsc5_hdc_encoder.block.yml
+ delete mode 100644 grc/nrsc5_hdc_encoder.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp1.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp1.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp11.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp11.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp2.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp2.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp3.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp3.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp5.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp5.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp5_ms1.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp5_ms1.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp6.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp6.xml
+ create mode 100644 grc/nrsc5_l1_fm_encoder_mp6_ms1.block.yml
+ delete mode 100644 grc/nrsc5_l1_fm_encoder_mp6_ms1.xml
+ create mode 100644 grc/nrsc5_l2_encoder.block.yml
+ delete mode 100644 grc/nrsc5_l2_encoder.xml
+ create mode 100644 grc/nrsc5_psd_encoder.block.yml
+ delete mode 100644 grc/nrsc5_psd_encoder.xml
+ create mode 100644 grc/nrsc5_sis_encoder.block.yml
+ delete mode 100644 grc/nrsc5_sis_encoder.xml
+ delete mode 100644 lib/qa_nrsc5.cc
+ delete mode 100644 lib/qa_nrsc5.h
+ delete mode 100644 lib/test_nrsc5.cc
+ delete mode 100644 python/build_utils.py
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1beb55f..dd5c257 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -1,6 +1,7 @@
+-# Copyright 2011,2012,2014,2016 Free Software Foundation, Inc.
++# Copyright 2011,2012,2014,2016,2018 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -20,94 +21,86 @@
+ ########################################################################
+ # Project setup
+ ########################################################################
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.8)
+ project(gr-nrsc5 CXX C)
+ enable_testing()
+ 
+-#install to PyBOMBS target prefix if defined
++# Install to PyBOMBS target prefix if defined
+ if(DEFINED ENV{PYBOMBS_PREFIX})
+     set(CMAKE_INSTALL_PREFIX $ENV{PYBOMBS_PREFIX})
+     message(STATUS "PyBOMBS installed GNU Radio. Setting CMAKE_INSTALL_PREFIX to $ENV{PYBOMBS_PREFIX}")
+ endif()
+ 
+-#select the release build type by default to get optimization flags
++# Select the release build type by default to get optimization flags
+ if(NOT CMAKE_BUILD_TYPE)
+    set(CMAKE_BUILD_TYPE "Release")
+    message(STATUS "Build type not specified: defaulting to release.")
+ endif(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
+ 
+-#make sure our local CMake Modules path comes first
++# Make sure our local CMake Modules path comes first
+ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
+ 
+ # Set the version information here
+-set(VERSION_INFO_MAJOR_VERSION 1)
+-set(VERSION_INFO_API_COMPAT    0)
+-set(VERSION_INFO_MINOR_VERSION 0)
+-set(VERSION_INFO_MAINT_VERSION git)
++set(VERSION_MAJOR 1)
++set(VERSION_API    0)
++set(VERSION_ABI 0)
++set(VERSION_PATCH git)
+ 
+-# Set cmake policies.
+-# This will suppress developer warnings during the cmake process that can occur
+-# if a newer cmake version than the minimum is used.
++cmake_policy(SET CMP0011 NEW)
+ 
+-if(POLICY CMP0026)
+-    cmake_policy(SET CMP0026 OLD)
+-endif()
+-if(POLICY CMP0043)
+-    cmake_policy(SET CMP0043 OLD)
+-endif()
+-if(POLICY CMP0045)
+-    cmake_policy(SET CMP0045 OLD)
+-endif()
+-if(POLICY CMP0046)
+-    cmake_policy(SET CMP0046 OLD)
+-endif()
++# Enable generation of compile_commands.json for code completion engines
++set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+ 
+ ########################################################################
+ # Compiler specific setup
+ ########################################################################
+-if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
++if((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
++    CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++    AND NOT WIN32)
+     #http://gcc.gnu.org/wiki/Visibility
+     add_definitions(-fvisibility=hidden)
+ endif()
+ 
+-########################################################################
+-# Find boost
+-########################################################################
+-if(UNIX AND EXISTS "/usr/lib64")
+-    list(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix
+-endif(UNIX AND EXISTS "/usr/lib64")
+-set(Boost_ADDITIONAL_VERSIONS
+-    "1.35.0" "1.35" "1.36.0" "1.36" "1.37.0" "1.37" "1.38.0" "1.38" "1.39.0" "1.39"
+-    "1.40.0" "1.40" "1.41.0" "1.41" "1.42.0" "1.42" "1.43.0" "1.43" "1.44.0" "1.44"
+-    "1.45.0" "1.45" "1.46.0" "1.46" "1.47.0" "1.47" "1.48.0" "1.48" "1.49.0" "1.49"
+-    "1.50.0" "1.50" "1.51.0" "1.51" "1.52.0" "1.52" "1.53.0" "1.53" "1.54.0" "1.54"
+-    "1.55.0" "1.55" "1.56.0" "1.56" "1.57.0" "1.57" "1.58.0" "1.58" "1.59.0" "1.59"
+-    "1.60.0" "1.60" "1.61.0" "1.61" "1.62.0" "1.62" "1.63.0" "1.63" "1.64.0" "1.64"
+-    "1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" "1.69"
+-)
+-find_package(Boost "1.35" COMPONENTS filesystem system)
+-
+-if(NOT Boost_FOUND)
+-    message(FATAL_ERROR "Boost required to compile nrsc5")
+-endif()
++IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++    SET(CMAKE_CXX_STANDARD 11)
++ELSEIF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
++    SET(CMAKE_CXX_STANDARD 11)
++ELSEIF(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
++    SET(CMAKE_CXX_STANDARD 11)
++ELSE()
++    message(WARNING "C++ standard could not be set because compiler is not GNU, Clang or MSVC.")
++ENDIF()
++
++IF(CMAKE_C_COMPILER_ID STREQUAL "GNU")
++    SET(CMAKE_C_STANDARD 11)
++ELSEIF(CMAKE_C_COMPILER_ID MATCHES "Clang")
++    SET(CMAKE_C_STANDARD 11)
++ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
++    SET(CMAKE_C_STANDARD 11)
++ELSE()
++    message(WARNING "C standard could not be set because compiler is not GNU, Clang or MSVC.")
++ENDIF()
+ 
+ ########################################################################
+ # Install directories
+ ########################################################################
++find_package(Gnuradio "3.8" REQUIRED COMPONENTS blocks fec)
++find_package(GSL)
++include(GrVersion)
++
+ include(GrPlatform) #define LIB_SUFFIX
+-set(GR_RUNTIME_DIR      bin)
+-set(GR_LIBRARY_DIR      lib${LIB_SUFFIX})
++
++if(NOT CMAKE_MODULES_DIR)
++  set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
++endif(NOT CMAKE_MODULES_DIR)
++
+ set(GR_INCLUDE_DIR      include/nrsc5)
+-set(GR_DATA_DIR         share)
++set(GR_CMAKE_DIR        ${CMAKE_MODULES_DIR}/nrsc5)
+ set(GR_PKG_DATA_DIR     ${GR_DATA_DIR}/${CMAKE_PROJECT_NAME})
+-set(GR_DOC_DIR          ${GR_DATA_DIR}/doc)
+ set(GR_PKG_DOC_DIR      ${GR_DOC_DIR}/${CMAKE_PROJECT_NAME})
+-set(GR_CONF_DIR         etc)
+ set(GR_PKG_CONF_DIR     ${GR_CONF_DIR}/${CMAKE_PROJECT_NAME}/conf.d)
+-set(GR_LIBEXEC_DIR      libexec)
+ set(GR_PKG_LIBEXEC_DIR  ${GR_LIBEXEC_DIR}/${CMAKE_PROJECT_NAME})
+-set(GRC_BLOCKS_DIR      ${GR_PKG_DATA_DIR}/grc/blocks)
+ 
+ ########################################################################
+ # On Apple only, set install name and use rpath correctly, if not already set
+@@ -132,54 +125,17 @@ endif(APPLE)
+ ########################################################################
+ # Find gnuradio build dependencies
+ ########################################################################
+-find_package(CppUnit)
+ find_package(Doxygen)
+ 
+-# Search for GNU Radio and its components and versions. Add any
+-# components required to the list of GR_REQUIRED_COMPONENTS (in all
+-# caps such as FILTER or FFT) and change the version to the minimum
+-# API compatible version required.
+-set(GR_REQUIRED_COMPONENTS RUNTIME FEC PMT)
+-find_package(Gnuradio "3.7.2" REQUIRED)
+-list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
+-include(GrVersion)
+-
+-if(NOT CPPUNIT_FOUND)
+-    message(FATAL_ERROR "CppUnit required to compile nrsc5")
+-endif()
+-
+ ########################################################################
+ # Setup doxygen option
+ ########################################################################
+ if(DOXYGEN_FOUND)
+-	option(ENABLE_DOXYGEN "Build docs using Doxygen" ON)
++    option(ENABLE_DOXYGEN "Build docs using Doxygen" ON)
+ else(DOXYGEN_FOUND)
+-	option(ENABLE_DOXYGEN "Build docs using Doxygen" OFF)
++    option(ENABLE_DOXYGEN "Build docs using Doxygen" OFF)
+ endif(DOXYGEN_FOUND)
+ 
+-########################################################################
+-# Setup the include and linker paths
+-########################################################################
+-include_directories(
+-    ${CMAKE_SOURCE_DIR}/lib
+-    ${CMAKE_SOURCE_DIR}/include
+-    ${CMAKE_BINARY_DIR}/lib
+-    ${CMAKE_BINARY_DIR}/include
+-    ${Boost_INCLUDE_DIRS}
+-    ${CPPUNIT_INCLUDE_DIRS}
+-    ${GNURADIO_ALL_INCLUDE_DIRS}
+-)
+-
+-link_directories(
+-    ${Boost_LIBRARY_DIRS}
+-    ${CPPUNIT_LIBRARY_DIRS}
+-    ${GNURADIO_RUNTIME_LIBRARY_DIRS}
+-)
+-
+-# Set component parameters
+-set(GR_NRSC5_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE INTERNAL "" FORCE)
+-set(GR_NRSC5_SWIG_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/swig CACHE INTERNAL "" FORCE)
+-
+ ########################################################################
+ # Create uninstall target
+ ########################################################################
+@@ -226,18 +182,15 @@ endif()
+ ########################################################################
+ add_subdirectory(include/nrsc5)
+ add_subdirectory(lib)
++add_subdirectory(apps)
++add_subdirectory(docs)
+ add_subdirectory(swig)
+ add_subdirectory(python)
+ add_subdirectory(grc)
+-add_subdirectory(apps)
+-add_subdirectory(docs)
+ 
+ ########################################################################
+ # Install cmake search helper for this library
+ ########################################################################
+-if(NOT CMAKE_MODULES_DIR)
+-  set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
+-endif(NOT CMAKE_MODULES_DIR)
+ 
+ install(FILES cmake/Modules/nrsc5Config.cmake
+     DESTINATION ${CMAKE_MODULES_DIR}/nrsc5
+diff --git a/README.md b/README.md
+index 366f5a7..c11286a 100644
+--- README.md
++++ README.md
+@@ -84,7 +84,6 @@ The output bytes map to symbols as follows:
+ Several sample flowgraphs are available in the apps folder:
+ 
+ * hd_tx_usrp.grc, hd_tx_usrp.py: tested on a USRP B200
+-* hd_tx_hackrf.grc, hd_tx_hackrf.py: tested on a HackRF One
+ * hd_tx_rtl_file.grc, hd_tx_rtl_file.py: produces an output file in the format used by https://github.com/theori-io/nrsc5/
+ 
+ These flowgraphs read a WAV file named sample.wav, which must be encoded at 44,100 samples per second. The license for the supplied sample.wav file is as follows:
+diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
+index c837d77..408bf6a 100644
+--- apps/CMakeLists.txt
++++ apps/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/apps/hd_tx_hackrf.grc b/apps/hd_tx_hackrf.grc
+deleted file mode 100644
+index 7f93279..0000000
+--- apps/hd_tx_hackrf.grc
++++ /dev/null
+@@ -1,2679 +0,0 @@
+-<?xml version='1.0' encoding='utf-8'?>
+-<?grc format='1' created='3.7.12'?>
+-<flow_graph>
+-  <timestamp>Fri Sep 16 01:35:53 2016</timestamp>
+-  <block>
+-    <key>options</key>
+-    <param>
+-      <key>author</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>window_size</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>category</key>
+-      <value>[GRC Hier Blocks]</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>description</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 12)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>generate_options</key>
+-      <value>no_gui</value>
+-    </param>
+-    <param>
+-      <key>hier_block_src_path</key>
+-      <value>.:</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>hd_tx_hackrf</value>
+-    </param>
+-    <param>
+-      <key>max_nouts</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>qt_qss_theme</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>realtime_scheduling</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>run_command</key>
+-      <value>{python} -u {filename}</value>
+-    </param>
+-    <param>
+-      <key>run_options</key>
+-      <value>prompt</value>
+-    </param>
+-    <param>
+-      <key>run</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>thread_safe_setters</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value></value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>variable</key>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 164)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>freq</value>
+-    </param>
+-    <param>
+-      <key>value</key>
+-      <value>95.7e6</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>variable</key>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 100)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>value</key>
+-      <value>2000000</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>analog_sig_source_x</key>
+-    <param>
+-      <key>amp</key>
+-      <value>0.1</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>freq</key>
+-      <value>1000</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(896, 584)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>analog_sig_source_x_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>offset</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>float</value>
+-    </param>
+-    <param>
+-      <key>samp_rate</key>
+-      <value>50000</value>
+-    </param>
+-    <param>
+-      <key>waveform</key>
+-      <value>analog.GR_COS_WAVE</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>analog_wfm_tx</key>
+-    <param>
+-      <key>audio_rate</key>
+-      <value>50000</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(640, 584)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>analog_wfm_tx_0</value>
+-    </param>
+-    <param>
+-      <key>max_dev</key>
+-      <value>75e3</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>fh</key>
+-      <value>-1.0</value>
+-    </param>
+-    <param>
+-      <key>quad_rate</key>
+-      <value>200000</value>
+-    </param>
+-    <param>
+-      <key>tau</key>
+-      <value>75e-6</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_add_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(424, 472)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_add_xx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_inputs</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_conjugate_cc</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(624, 376)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_conjugate_cc_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_keep_m_in_n</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 340)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_keep_m_in_n_0</value>
+-    </param>
+-    <param>
+-      <key>m</key>
+-      <value>2160</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>n</key>
+-      <value>4096</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>offset</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>0.001</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(248, 468)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_const_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>0.1</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(104, 612)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_const_vxx_1</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(816, 360)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_xx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_inputs</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_repeat</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_repeat_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>2048</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_stream_to_vector</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_stream_to_vector_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_source_x</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 428)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_source_x_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>tags</key>
+-      <value>[]</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>vector</key>
+-      <value>[math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112) + [math.cos(math.pi / 2 * i / 112) for i in range(112)]</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 356)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(288, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_1</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>1048576</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_wavfile_source</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>file</key>
+-      <value>sample.wav</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(328, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_wavfile_source_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nchan</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>True</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>digital_chunks_to_symbols_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>dimension</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(472, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>digital_chunks_to_symbols_xx_0</value>
+-    </param>
+-    <param>
+-      <key>in_type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_ports</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>out_type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>symbol_table</key>
+-      <value>-1-1j, -1+1j, 1-1j, 1+1j, 0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>fft_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fft_size</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>forward</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(880, 224)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>fft_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nthreads</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>shift</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>window</key>
+-      <value>window.rectangular(2048)</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>import</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 236)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>import_0</value>
+-    </param>
+-    <param>
+-      <key>import</key>
+-      <value>import math</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>low_pass_filter</key>
+-    <param>
+-      <key>beta</key>
+-      <value>6.76</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>cutoff_freq</key>
+-      <value>80000</value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>fir_filter_ccf</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(264, 568)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>gain</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>low_pass_filter_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>samp_rate</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>width</key>
+-      <value>20000</value>
+-    </param>
+-    <param>
+-      <key>win</key>
+-      <value>firdes.WIN_HAMMING</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_hdc_encoder</key>
+-    <param>
+-      <key>bitrate</key>
+-      <value>64000</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>channels</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(512, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_hdc_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l1_fm_encoder_mp1</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(888, 48)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l1_fm_encoder_mp1_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l2_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>first_prog</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>size</key>
+-      <value>146176</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 32)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l2_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_progs</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_sis_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(688, 108)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_sis_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>short_name</key>
+-      <value>ABCD</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_psd_encoder</key>
+-    <param>
+-      <key>artist</key>
+-      <value>Artist</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(488, 92)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_psd_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>prog_num</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value>Title</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>osmosdr_sink</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>ant0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain0</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>bw0</key>
+-      <value>1.5e6</value>
+-    </param>
+-    <param>
+-      <key>corr0</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq0</key>
+-      <value>freq</value>
+-    </param>
+-    <param>
+-      <key>if_gain0</key>
+-      <value>40</value>
+-    </param>
+-    <param>
+-      <key>gain0</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant10</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain10</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw10</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr10</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq10</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain10</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain10</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant11</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain11</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw11</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr11</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq11</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain11</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain11</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant12</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain12</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw12</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr12</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq12</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain12</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain12</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant13</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain13</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw13</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr13</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq13</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain13</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain13</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant14</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain14</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw14</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr14</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq14</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain14</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain14</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant15</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain15</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw15</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr15</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq15</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain15</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain15</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant16</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain16</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw16</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr16</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq16</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain16</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain16</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant17</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain17</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw17</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr17</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq17</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain17</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain17</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant18</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain18</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw18</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr18</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq18</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain18</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain18</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant19</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain19</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw19</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr19</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq19</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain19</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain19</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain1</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw1</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr1</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq1</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain1</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain1</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant20</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain20</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw20</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr20</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq20</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain20</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain20</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant21</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain21</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw21</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr21</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq21</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain21</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain21</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant22</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain22</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw22</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr22</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq22</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain22</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain22</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant23</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain23</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw23</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr23</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq23</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain23</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain23</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant24</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain24</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw24</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr24</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq24</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain24</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain24</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant25</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain25</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw25</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr25</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq25</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain25</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain25</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant26</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain26</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw26</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr26</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq26</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain26</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain26</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant27</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain27</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw27</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr27</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq27</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain27</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain27</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant28</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain28</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw28</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr28</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq28</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain28</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain28</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant29</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain29</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw29</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr29</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq29</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain29</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain29</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain2</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw2</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr2</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq2</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain2</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain2</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant30</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain30</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw30</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr30</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq30</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain30</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain30</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant31</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain31</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw31</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr31</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq31</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain31</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain31</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain3</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw3</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr3</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq3</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain3</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain3</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain4</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw4</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr4</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq4</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain4</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain4</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain5</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw5</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr5</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq5</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain5</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain5</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain6</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw6</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr6</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq6</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain6</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain6</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain7</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw7</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr7</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq7</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain7</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain7</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant8</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain8</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw8</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr8</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq8</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain8</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain8</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>ant9</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bb_gain9</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>bw9</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>corr9</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>freq9</key>
+-      <value>100e6</value>
+-    </param>
+-    <param>
+-      <key>if_gain9</key>
+-      <value>20</value>
+-    </param>
+-    <param>
+-      <key>gain9</key>
+-      <value>10</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>args</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(536, 440)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>osmosdr_sink_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>fc32</value>
+-    </param>
+-    <param>
+-      <key>clock_source0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>nchan</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>num_mboards</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>sample_rate</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>sync</key>
+-      <value></value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(448, 592)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>samp_rate / 200000</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>49</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(432, 352)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_1</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>125</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>243</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(240, 352)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_2</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>256</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <connection>
+-    <source_block_id>analog_sig_source_x_0</source_block_id>
+-    <sink_block_id>analog_wfm_tx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>analog_wfm_tx_0</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_add_xx_0</source_block_id>
+-    <sink_block_id>osmosdr_sink_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_conjugate_cc_0</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_keep_m_in_n_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_const_vxx_0</source_block_id>
+-    <sink_block_id>blocks_add_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_const_vxx_1</source_block_id>
+-    <sink_block_id>blocks_add_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_xx_0</source_block_id>
+-    <sink_block_id>blocks_conjugate_cc_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_repeat_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_stream_to_vector_0</source_block_id>
+-    <sink_block_id>fft_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_source_x_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_0</source_block_id>
+-    <sink_block_id>blocks_keep_m_in_n_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_1</source_block_id>
+-    <sink_block_id>digital_chunks_to_symbols_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>1</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>digital_chunks_to_symbols_xx_0</source_block_id>
+-    <sink_block_id>blocks_stream_to_vector_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>fft_vxx_0</source_block_id>
+-    <sink_block_id>blocks_repeat_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>low_pass_filter_0</source_block_id>
+-    <sink_block_id>blocks_multiply_const_vxx_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_hdc_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l1_fm_encoder_mp1_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l2_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_sis_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_psd_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_0</source_block_id>
+-    <sink_block_id>low_pass_filter_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_1</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_2</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_2</source_block_id>
+-    <sink_block_id>blocks_multiply_const_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-</flow_graph>
+diff --git a/apps/hd_tx_hackrf.py b/apps/hd_tx_hackrf.py
+deleted file mode 100755
+index ab96f73..0000000
+--- apps/hd_tx_hackrf.py
++++ /dev/null
+@@ -1,157 +0,0 @@
+-#!/usr/bin/env python2
+-# -*- coding: utf-8 -*-
+-##################################################
+-# GNU Radio Python Flow Graph
+-# Title: Hd Tx Hackrf
+-# Generated: Sun Oct 15 00:11:49 2017
+-##################################################
+-
+-from gnuradio import analog
+-from gnuradio import blocks
+-from gnuradio import digital
+-from gnuradio import eng_notation
+-from gnuradio import fft
+-from gnuradio import filter
+-from gnuradio import gr
+-from gnuradio.eng_option import eng_option
+-from gnuradio.fft import window
+-from gnuradio.filter import firdes
+-from optparse import OptionParser
+-import math
+-import nrsc5
+-import osmosdr
+-import time
+-
+-
+-class hd_tx_hackrf(gr.top_block):
+-
+-    def __init__(self):
+-        gr.top_block.__init__(self, "Hd Tx Hackrf")
+-
+-        ##################################################
+-        # Variables
+-        ##################################################
+-        self.samp_rate = samp_rate = 2000000
+-        self.freq = freq = 95.7e6
+-
+-        ##################################################
+-        # Blocks
+-        ##################################################
+-        self.rational_resampler_xxx_2 = filter.rational_resampler_ccc(
+-                interpolation=256,
+-                decimation=243,
+-                taps=None,
+-                fractional_bw=None,
+-        )
+-        self.rational_resampler_xxx_1 = filter.rational_resampler_ccc(
+-                interpolation=125,
+-                decimation=49,
+-                taps=None,
+-                fractional_bw=None,
+-        )
+-        self.rational_resampler_xxx_0 = filter.rational_resampler_ccc(
+-                interpolation=samp_rate / 200000,
+-                decimation=1,
+-                taps=None,
+-                fractional_bw=None,
+-        )
+-        self.osmosdr_sink_0 = osmosdr.sink( args="numchan=" + str(1) + " " + '' )
+-        self.osmosdr_sink_0.set_sample_rate(samp_rate)
+-        self.osmosdr_sink_0.set_center_freq(freq, 0)
+-        self.osmosdr_sink_0.set_freq_corr(0, 0)
+-        self.osmosdr_sink_0.set_gain(0, 0)
+-        self.osmosdr_sink_0.set_if_gain(40, 0)
+-        self.osmosdr_sink_0.set_bb_gain(0, 0)
+-        self.osmosdr_sink_0.set_antenna('', 0)
+-        self.osmosdr_sink_0.set_bandwidth(1.5e6, 0)
+-
+-        self.nrsc5_sis_encoder_0 = nrsc5.sis_encoder('ABCD')
+-        self.nrsc5_psd_encoder_0 = nrsc5.psd_encoder(0, 'Title', 'Artist')
+-        self.nrsc5_l2_encoder_0 = nrsc5.l2_encoder(1, 0, 146176)
+-        self.nrsc5_l1_fm_encoder_mp1_0 = nrsc5.l1_fm_encoder(1)
+-        self.nrsc5_hdc_encoder_0 = nrsc5.hdc_encoder(2, 64000)
+-        self.low_pass_filter_0 = filter.fir_filter_ccf(1, firdes.low_pass(
+-        	1, samp_rate, 80000, 20000, firdes.WIN_HAMMING, 6.76))
+-        self.fft_vxx_0 = fft.fft_vcc(2048, False, (window.rectangular(2048)), True, 1)
+-        self.digital_chunks_to_symbols_xx_0 = digital.chunks_to_symbols_bc((-1-1j, -1+1j, 1-1j, 1+1j, 0), 1)
+-        self.blocks_wavfile_source_0 = blocks.wavfile_source('sample.wav', True)
+-        self.blocks_vector_to_stream_1 = blocks.vector_to_stream(gr.sizeof_char*1, 1048576)
+-        self.blocks_vector_to_stream_0 = blocks.vector_to_stream(gr.sizeof_gr_complex*1, 2048)
+-        self.blocks_vector_source_x_0 = blocks.vector_source_c([math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112) + [math.cos(math.pi / 2 * i / 112) for i in range(112)], True, 1, [])
+-        self.blocks_stream_to_vector_0 = blocks.stream_to_vector(gr.sizeof_gr_complex*1, 2048)
+-        self.blocks_repeat_0 = blocks.repeat(gr.sizeof_gr_complex*2048, 2)
+-        self.blocks_multiply_xx_0 = blocks.multiply_vcc(1)
+-        self.blocks_multiply_const_vxx_1 = blocks.multiply_const_vcc((0.1, ))
+-        self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vcc((0.001, ))
+-        self.blocks_keep_m_in_n_0 = blocks.keep_m_in_n(gr.sizeof_gr_complex, 2160, 4096, 0)
+-        self.blocks_conjugate_cc_0 = blocks.conjugate_cc()
+-        self.blocks_add_xx_0 = blocks.add_vcc(1)
+-        self.analog_wfm_tx_0 = analog.wfm_tx(
+-        	audio_rate=50000,
+-        	quad_rate=200000,
+-        	tau=75e-6,
+-        	max_dev=75e3,
+-        	fh=-1.0,
+-        )
+-        self.analog_sig_source_x_0 = analog.sig_source_f(50000, analog.GR_COS_WAVE, 1000, 0.1, 0)
+-
+-        ##################################################
+-        # Connections
+-        ##################################################
+-        self.connect((self.analog_sig_source_x_0, 0), (self.analog_wfm_tx_0, 0))
+-        self.connect((self.analog_wfm_tx_0, 0), (self.rational_resampler_xxx_0, 0))
+-        self.connect((self.blocks_add_xx_0, 0), (self.osmosdr_sink_0, 0))
+-        self.connect((self.blocks_conjugate_cc_0, 0), (self.rational_resampler_xxx_1, 0))
+-        self.connect((self.blocks_keep_m_in_n_0, 0), (self.blocks_multiply_xx_0, 1))
+-        self.connect((self.blocks_multiply_const_vxx_0, 0), (self.blocks_add_xx_0, 0))
+-        self.connect((self.blocks_multiply_const_vxx_1, 0), (self.blocks_add_xx_0, 1))
+-        self.connect((self.blocks_multiply_xx_0, 0), (self.blocks_conjugate_cc_0, 0))
+-        self.connect((self.blocks_repeat_0, 0), (self.blocks_vector_to_stream_0, 0))
+-        self.connect((self.blocks_stream_to_vector_0, 0), (self.fft_vxx_0, 0))
+-        self.connect((self.blocks_vector_source_x_0, 0), (self.blocks_multiply_xx_0, 0))
+-        self.connect((self.blocks_vector_to_stream_0, 0), (self.blocks_keep_m_in_n_0, 0))
+-        self.connect((self.blocks_vector_to_stream_1, 0), (self.digital_chunks_to_symbols_xx_0, 0))
+-        self.connect((self.blocks_wavfile_source_0, 0), (self.nrsc5_hdc_encoder_0, 0))
+-        self.connect((self.blocks_wavfile_source_0, 1), (self.nrsc5_hdc_encoder_0, 1))
+-        self.connect((self.digital_chunks_to_symbols_xx_0, 0), (self.blocks_stream_to_vector_0, 0))
+-        self.connect((self.fft_vxx_0, 0), (self.blocks_repeat_0, 0))
+-        self.connect((self.low_pass_filter_0, 0), (self.blocks_multiply_const_vxx_1, 0))
+-        self.connect((self.nrsc5_hdc_encoder_0, 0), (self.nrsc5_l2_encoder_0, 0))
+-        self.connect((self.nrsc5_l1_fm_encoder_mp1_0, 0), (self.blocks_vector_to_stream_1, 0))
+-        self.connect((self.nrsc5_l2_encoder_0, 0), (self.nrsc5_l1_fm_encoder_mp1_0, 0))
+-        self.connect((self.nrsc5_psd_encoder_0, 0), (self.nrsc5_l2_encoder_0, 1))
+-        self.connect((self.nrsc5_sis_encoder_0, 0), (self.nrsc5_l1_fm_encoder_mp1_0, 1))
+-        self.connect((self.rational_resampler_xxx_0, 0), (self.low_pass_filter_0, 0))
+-        self.connect((self.rational_resampler_xxx_1, 0), (self.rational_resampler_xxx_2, 0))
+-        self.connect((self.rational_resampler_xxx_2, 0), (self.blocks_multiply_const_vxx_0, 0))
+-
+-    def get_samp_rate(self):
+-        return self.samp_rate
+-
+-    def set_samp_rate(self, samp_rate):
+-        self.samp_rate = samp_rate
+-        self.osmosdr_sink_0.set_sample_rate(self.samp_rate)
+-        self.low_pass_filter_0.set_taps(firdes.low_pass(1, self.samp_rate, 80000, 20000, firdes.WIN_HAMMING, 6.76))
+-
+-    def get_freq(self):
+-        return self.freq
+-
+-    def set_freq(self, freq):
+-        self.freq = freq
+-        self.osmosdr_sink_0.set_center_freq(self.freq, 0)
+-
+-
+-def main(top_block_cls=hd_tx_hackrf, options=None):
+-
+-    tb = top_block_cls()
+-    tb.start()
+-    try:
+-        raw_input('Press Enter to quit: ')
+-    except EOFError:
+-        pass
+-    tb.stop()
+-    tb.wait()
+-
+-
+-if __name__ == '__main__':
+-    main()
+diff --git a/apps/hd_tx_rtl_file.grc b/apps/hd_tx_rtl_file.grc
+index 2994383..92f5351 100644
+--- apps/hd_tx_rtl_file.grc
++++ apps/hd_tx_rtl_file.grc
+@@ -1,1420 +1,488 @@
+-<?xml version='1.0' encoding='utf-8'?>
+-<?grc format='1' created='3.7.12'?>
+-<flow_graph>
+-  <timestamp>Fri Sep 16 01:35:53 2016</timestamp>
+-  <block>
+-    <key>options</key>
+-    <param>
+-      <key>author</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>window_size</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>category</key>
+-      <value>[GRC Hier Blocks]</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>description</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 12)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>generate_options</key>
+-      <value>no_gui</value>
+-    </param>
+-    <param>
+-      <key>hier_block_src_path</key>
+-      <value>.:</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>hd_tx_rtl_file</value>
+-    </param>
+-    <param>
+-      <key>max_nouts</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>qt_qss_theme</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>realtime_scheduling</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>run_command</key>
+-      <value>{python} -u {filename}</value>
+-    </param>
+-    <param>
+-      <key>run_options</key>
+-      <value>run</value>
+-    </param>
+-    <param>
+-      <key>run</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>thread_safe_setters</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value></value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_add_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>127.5</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(600, 564)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_add_const_vxx_0_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>float</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_complex_to_float</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(296, 552)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_complex_to_float_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_conjugate_cc</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(624, 376)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_conjugate_cc_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_file_sink</key>
+-    <param>
+-      <key>append</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>file</key>
+-      <value>hd-generated.raw</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(904, 548)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_file_sink_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>unbuffered</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_float_to_uchar</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(744, 568)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_float_to_uchar_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_interleave</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>blocksize</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(472, 552)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_interleave_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>float</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_streams</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_keep_m_in_n</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 340)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_keep_m_in_n_0</value>
+-    </param>
+-    <param>
+-      <key>m</key>
+-      <value>2160</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>n</key>
+-      <value>4096</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>offset</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>0.5</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(264, 372)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_const_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(816, 360)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_xx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_inputs</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_repeat</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_repeat_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>2048</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_stream_to_vector</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_stream_to_vector_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_source_x</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 428)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_source_x_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>tags</key>
+-      <value>[]</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>vector</key>
+-      <value>[math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112) + [math.cos(math.pi / 2 * i / 112) for i in range(112)]</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 356)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(288, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_1</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>1048576</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_wavfile_source</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>file</key>
+-      <value>sample.wav</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(328, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_wavfile_source_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nchan</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>False</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>digital_chunks_to_symbols_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>dimension</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(472, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>digital_chunks_to_symbols_xx_0</value>
+-    </param>
+-    <param>
+-      <key>in_type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_ports</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>out_type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>symbol_table</key>
+-      <value>-1-1j, -1+1j, 1-1j, 1+1j, 0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>fft_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fft_size</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>forward</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(880, 224)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>fft_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nthreads</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>shift</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>window</key>
+-      <value>window.rectangular(2048)</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>import</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 196)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>import_0</value>
+-    </param>
+-    <param>
+-      <key>import</key>
+-      <value>import math</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_hdc_encoder</key>
+-    <param>
+-      <key>bitrate</key>
+-      <value>64000</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>channels</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(512, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_hdc_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l1_fm_encoder_mp1</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(888, 48)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l1_fm_encoder_mp1_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l2_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>first_prog</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>size</key>
+-      <value>146176</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 32)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l2_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_progs</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_sis_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(688, 108)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_sis_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>short_name</key>
+-      <value>ABCD</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_psd_encoder</key>
+-    <param>
+-      <key>artist</key>
+-      <value>Artist</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(488, 92)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_psd_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>prog_num</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value>Title</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(432, 352)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_1</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <connection>
+-    <source_block_id>blocks_add_const_vxx_0_0</source_block_id>
+-    <sink_block_id>blocks_float_to_uchar_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_complex_to_float_0</source_block_id>
+-    <sink_block_id>blocks_interleave_0</sink_block_id>
+-    <source_key>1</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_complex_to_float_0</source_block_id>
+-    <sink_block_id>blocks_interleave_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_conjugate_cc_0</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_float_to_uchar_0</source_block_id>
+-    <sink_block_id>blocks_file_sink_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_interleave_0</source_block_id>
+-    <sink_block_id>blocks_add_const_vxx_0_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_keep_m_in_n_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_const_vxx_0</source_block_id>
+-    <sink_block_id>blocks_complex_to_float_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_xx_0</source_block_id>
+-    <sink_block_id>blocks_conjugate_cc_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_repeat_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_stream_to_vector_0</source_block_id>
+-    <sink_block_id>fft_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_source_x_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_0</source_block_id>
+-    <sink_block_id>blocks_keep_m_in_n_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_1</source_block_id>
+-    <sink_block_id>digital_chunks_to_symbols_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>1</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>digital_chunks_to_symbols_xx_0</source_block_id>
+-    <sink_block_id>blocks_stream_to_vector_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>fft_vxx_0</source_block_id>
+-    <sink_block_id>blocks_repeat_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_hdc_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l1_fm_encoder_mp1_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l2_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_sis_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_psd_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_1</source_block_id>
+-    <sink_block_id>blocks_multiply_const_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-</flow_graph>
++options:
++  parameters:
++    author: ''
++    category: '[GRC Hier Blocks]'
++    cmake_opt: ''
++    comment: ''
++    copyright: ''
++    description: ''
++    gen_cmake: 'On'
++    gen_linking: dynamic
++    generate_options: no_gui
++    hier_block_src_path: '.:'
++    id: hd_tx_rtl_file
++    max_nouts: '0'
++    output_language: python
++    placement: (0,0)
++    qt_qss_theme: ''
++    realtime_scheduling: ''
++    run: 'True'
++    run_command: '{python} -u {filename}'
++    run_options: prompt
++    sizing_mode: fixed
++    thread_safe_setters: ''
++    title: ''
++    window_size: ''
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 12]
++    rotation: 0
++    state: enabled
++
++blocks:
++- name: blocks_add_const_vxx_0_0
++  id: blocks_add_const_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    const: '127.5'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: float
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [576, 548.0]
++    rotation: 0
++    state: enabled
++- name: blocks_complex_to_float_0
++  id: blocks_complex_to_float
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [272, 536.0]
++    rotation: 0
++    state: enabled
++- name: blocks_conjugate_cc_0
++  id: blocks_conjugate_cc
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [624, 424.0]
++    rotation: 180
++    state: enabled
++- name: blocks_file_sink_0
++  id: blocks_file_sink
++  parameters:
++    affinity: ''
++    alias: ''
++    append: 'False'
++    comment: ''
++    file: hd-generated.raw
++    type: byte
++    unbuffered: 'False'
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [880, 532.0]
++    rotation: 0
++    state: enabled
++- name: blocks_float_to_uchar_0
++  id: blocks_float_to_uchar
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [720, 552.0]
++    rotation: 0
++    state: enabled
++- name: blocks_interleave_0
++  id: blocks_interleave
++  parameters:
++    affinity: ''
++    alias: ''
++    blocksize: '1'
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_streams: '2'
++    type: float
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [448, 536.0]
++    rotation: 0
++    state: enabled
++- name: blocks_keep_m_in_n_0
++  id: blocks_keep_m_in_n
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    m: '2160'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    n: '4096'
++    offset: '0'
++    type: complex
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [952, 420.0]
++    rotation: 180
++    state: enabled
++- name: blocks_multiply_const_vxx_0
++  id: blocks_multiply_const_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    const: '0.5'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [272, 420.0]
++    rotation: 180
++    state: enabled
++- name: blocks_multiply_xx_0
++  id: blocks_multiply_xx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_inputs: '2'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [816, 408.0]
++    rotation: 180
++    state: enabled
++- name: blocks_repeat_0
++  id: blocks_repeat
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    interp: '2'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: complex
++    vlen: '2048'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [1104, 244]
++    rotation: 0
++    state: enabled
++- name: blocks_stream_to_vector_0
++  id: blocks_stream_to_vector
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '2048'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [696, 256.0]
++    rotation: 0
++    state: enabled
++- name: blocks_vector_source_x_0
++  id: blocks_vector_source_x
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    repeat: 'True'
++    tags: '[]'
++    type: complex
++    vector: '[math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112)
++      + [math.cos(math.pi / 2 * i / 112) for i in range(112)]'
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [952, 340.0]
++    rotation: 180
++    state: enabled
++- name: blocks_vector_to_stream_0
++  id: blocks_vector_to_stream
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '2048'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [1104, 440.0]
++    rotation: 180
++    state: enabled
++- name: blocks_vector_to_stream_1
++  id: blocks_vector_to_stream
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '1048576'
++    type: byte
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [288, 256.0]
++    rotation: 0
++    state: enabled
++- name: blocks_wavfile_source_0
++  id: blocks_wavfile_source
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    file: sample.wav
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    nchan: '2'
++    repeat: 'True'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [896, 56.0]
++    rotation: 180
++    state: enabled
++- name: digital_chunks_to_symbols_xx_0
++  id: digital_chunks_to_symbols_xx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    dimension: '1'
++    in_type: byte
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_ports: '1'
++    out_type: complex
++    symbol_table: (-1-1j, -1+1j, 1-1j, 1+1j, 0)
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [472, 256.0]
++    rotation: 0
++    state: enabled
++- name: fft_vxx_0
++  id: fft_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    fft_size: '2048'
++    forward: 'False'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    nthreads: '1'
++    shift: 'True'
++    type: complex
++    window: window.rectangular(2048)
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [880, 220.0]
++    rotation: 0
++    state: enabled
++- name: import_0
++  id: import
++  parameters:
++    alias: ''
++    comment: ''
++    imports: import math
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 236]
++    rotation: 0
++    state: enabled
++- name: nrsc5_hdc_encoder_0
++  id: nrsc5_hdc_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    bitrate: '64000'
++    channels: '2'
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [728, 56.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_l1_fm_encoder_mp1_0
++  id: nrsc5_l1_fm_encoder_mp1
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [288, 88.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_l2_encoder_0
++  id: nrsc5_l2_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    first_prog: '0'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_progs: '1'
++    size: '146176'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 68.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_psd_encoder_0
++  id: nrsc5_psd_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    artist: Artist
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    prog_num: '0'
++    title: Title
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [728, 132.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_sis_encoder_0
++  id: nrsc5_sis_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    short_name: ABCD
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 148.0]
++    rotation: 180
++    state: enabled
++- name: rational_resampler_xxx_1
++  id: rational_resampler_xxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    decim: '1'
++    fbw: '0'
++    interp: '2'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    taps: ''
++    type: ccc
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [440, 396.0]
++    rotation: 180
++    state: enabled
++
++connections:
++- [blocks_add_const_vxx_0_0, '0', blocks_float_to_uchar_0, '0']
++- [blocks_complex_to_float_0, '0', blocks_interleave_0, '0']
++- [blocks_complex_to_float_0, '1', blocks_interleave_0, '1']
++- [blocks_conjugate_cc_0, '0', rational_resampler_xxx_1, '0']
++- [blocks_float_to_uchar_0, '0', blocks_file_sink_0, '0']
++- [blocks_interleave_0, '0', blocks_add_const_vxx_0_0, '0']
++- [blocks_keep_m_in_n_0, '0', blocks_multiply_xx_0, '1']
++- [blocks_multiply_const_vxx_0, '0', blocks_complex_to_float_0, '0']
++- [blocks_multiply_xx_0, '0', blocks_conjugate_cc_0, '0']
++- [blocks_repeat_0, '0', blocks_vector_to_stream_0, '0']
++- [blocks_stream_to_vector_0, '0', fft_vxx_0, '0']
++- [blocks_vector_source_x_0, '0', blocks_multiply_xx_0, '0']
++- [blocks_vector_to_stream_0, '0', blocks_keep_m_in_n_0, '0']
++- [blocks_vector_to_stream_1, '0', digital_chunks_to_symbols_xx_0, '0']
++- [blocks_wavfile_source_0, '0', nrsc5_hdc_encoder_0, '0']
++- [blocks_wavfile_source_0, '1', nrsc5_hdc_encoder_0, '1']
++- [digital_chunks_to_symbols_xx_0, '0', blocks_stream_to_vector_0, '0']
++- [fft_vxx_0, '0', blocks_repeat_0, '0']
++- [nrsc5_hdc_encoder_0, '0', nrsc5_l2_encoder_0, '0']
++- [nrsc5_l1_fm_encoder_mp1_0, '0', blocks_vector_to_stream_1, '0']
++- [nrsc5_l2_encoder_0, '0', nrsc5_l1_fm_encoder_mp1_0, '0']
++- [nrsc5_psd_encoder_0, '0', nrsc5_l2_encoder_0, '1']
++- [nrsc5_sis_encoder_0, '0', nrsc5_l1_fm_encoder_mp1_0, '1']
++- [rational_resampler_xxx_1, '0', blocks_multiply_const_vxx_0, '0']
++
++metadata:
++  file_format: 1
+diff --git a/apps/hd_tx_rtl_file.py b/apps/hd_tx_rtl_file.py
+index 41d19b1..77e7eb0 100755
+--- apps/hd_tx_rtl_file.py
++++ apps/hd_tx_rtl_file.py
+@@ -1,25 +1,28 @@
+-#!/usr/bin/env python2
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+-##################################################
++
++#
++# SPDX-License-Identifier: GPL-3.0
++#
+ # GNU Radio Python Flow Graph
+ # Title: Hd Tx Rtl File
+-# Generated: Sun Oct 15 00:14:13 2017
+-##################################################
++# GNU Radio version: 3.8.0.0-rc2
+ 
+ from gnuradio import blocks
+ from gnuradio import digital
+-from gnuradio import eng_notation
+ from gnuradio import fft
+-from gnuradio import filter
+-from gnuradio import gr
+-from gnuradio.eng_option import eng_option
+ from gnuradio.fft import window
++from gnuradio import filter
+ from gnuradio.filter import firdes
+-from optparse import OptionParser
++from gnuradio import gr
++import sys
++import signal
++from argparse import ArgumentParser
++from gnuradio.eng_arg import eng_float, intx
++from gnuradio import eng_notation
+ import math
+ import nrsc5
+ 
+-
+ class hd_tx_rtl_file(gr.top_block):
+ 
+     def __init__(self):
+@@ -32,23 +35,22 @@ def __init__(self):
+                 interpolation=2,
+                 decimation=1,
+                 taps=None,
+-                fractional_bw=None,
+-        )
++                fractional_bw=None)
+         self.nrsc5_sis_encoder_0 = nrsc5.sis_encoder('ABCD')
+         self.nrsc5_psd_encoder_0 = nrsc5.psd_encoder(0, 'Title', 'Artist')
+         self.nrsc5_l2_encoder_0 = nrsc5.l2_encoder(1, 0, 146176)
+         self.nrsc5_l1_fm_encoder_mp1_0 = nrsc5.l1_fm_encoder(1)
+         self.nrsc5_hdc_encoder_0 = nrsc5.hdc_encoder(2, 64000)
+-        self.fft_vxx_0 = fft.fft_vcc(2048, False, (window.rectangular(2048)), True, 1)
++        self.fft_vxx_0 = fft.fft_vcc(2048, False, window.rectangular(2048), True, 1)
+         self.digital_chunks_to_symbols_xx_0 = digital.chunks_to_symbols_bc((-1-1j, -1+1j, 1-1j, 1+1j, 0), 1)
+-        self.blocks_wavfile_source_0 = blocks.wavfile_source('sample.wav', False)
++        self.blocks_wavfile_source_0 = blocks.wavfile_source('sample.wav', True)
+         self.blocks_vector_to_stream_1 = blocks.vector_to_stream(gr.sizeof_char*1, 1048576)
+         self.blocks_vector_to_stream_0 = blocks.vector_to_stream(gr.sizeof_gr_complex*1, 2048)
+         self.blocks_vector_source_x_0 = blocks.vector_source_c([math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112) + [math.cos(math.pi / 2 * i / 112) for i in range(112)], True, 1, [])
+         self.blocks_stream_to_vector_0 = blocks.stream_to_vector(gr.sizeof_gr_complex*1, 2048)
+         self.blocks_repeat_0 = blocks.repeat(gr.sizeof_gr_complex*2048, 2)
+         self.blocks_multiply_xx_0 = blocks.multiply_vcc(1)
+-        self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vcc((0.5, ))
++        self.blocks_multiply_const_vxx_0 = blocks.multiply_const_cc(0.5)
+         self.blocks_keep_m_in_n_0 = blocks.keep_m_in_n(gr.sizeof_gr_complex, 2160, 4096, 0)
+         self.blocks_interleave_0 = blocks.interleave(gr.sizeof_float*1, 1)
+         self.blocks_float_to_uchar_0 = blocks.float_to_uchar()
+@@ -56,7 +58,9 @@ def __init__(self):
+         self.blocks_file_sink_0.set_unbuffered(False)
+         self.blocks_conjugate_cc_0 = blocks.conjugate_cc()
+         self.blocks_complex_to_float_0 = blocks.complex_to_float(1)
+-        self.blocks_add_const_vxx_0_0 = blocks.add_const_vff((127.5, ))
++        self.blocks_add_const_vxx_0_0 = blocks.add_const_ff(127.5)
++
++
+ 
+         ##################################################
+         # Connections
+@@ -87,10 +91,24 @@ def __init__(self):
+         self.connect((self.rational_resampler_xxx_1, 0), (self.blocks_multiply_const_vxx_0, 0))
+ 
+ 
+-def main(top_block_cls=hd_tx_rtl_file, options=None):
+ 
++def main(top_block_cls=hd_tx_rtl_file, options=None):
+     tb = top_block_cls()
++
++    def sig_handler(sig=None, frame=None):
++        tb.stop()
++        tb.wait()
++        sys.exit(0)
++
++    signal.signal(signal.SIGINT, sig_handler)
++    signal.signal(signal.SIGTERM, sig_handler)
++
+     tb.start()
++    try:
++        input('Press Enter to quit: ')
++    except EOFError:
++        pass
++    tb.stop()
+     tb.wait()
+ 
+ 
+diff --git a/apps/hd_tx_usrp.grc b/apps/hd_tx_usrp.grc
+index fc6fc4e..8e34368 100644
+--- apps/hd_tx_usrp.grc
++++ apps/hd_tx_usrp.grc
+@@ -1,2487 +1,846 @@
+-<?xml version='1.0' encoding='utf-8'?>
+-<?grc format='1' created='3.7.12'?>
+-<flow_graph>
+-  <timestamp>Fri Sep 16 01:35:53 2016</timestamp>
+-  <block>
+-    <key>options</key>
+-    <param>
+-      <key>author</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>window_size</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>category</key>
+-      <value>[GRC Hier Blocks]</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>description</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 12)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>generate_options</key>
+-      <value>no_gui</value>
+-    </param>
+-    <param>
+-      <key>hier_block_src_path</key>
+-      <value>.:</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>hd_tx_usrp</value>
+-    </param>
+-    <param>
+-      <key>max_nouts</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>qt_qss_theme</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>realtime_scheduling</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>run_command</key>
+-      <value>{python} -u {filename}</value>
+-    </param>
+-    <param>
+-      <key>run_options</key>
+-      <value>prompt</value>
+-    </param>
+-    <param>
+-      <key>run</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>thread_safe_setters</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value></value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>variable</key>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 164)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>freq</value>
+-    </param>
+-    <param>
+-      <key>value</key>
+-      <value>95.7e6</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>variable</key>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 100)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>value</key>
+-      <value>2000000</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>analog_sig_source_x</key>
+-    <param>
+-      <key>amp</key>
+-      <value>0.1</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>freq</key>
+-      <value>1000</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(896, 584)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>analog_sig_source_x_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>offset</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>float</value>
+-    </param>
+-    <param>
+-      <key>samp_rate</key>
+-      <value>50000</value>
+-    </param>
+-    <param>
+-      <key>waveform</key>
+-      <value>analog.GR_COS_WAVE</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>analog_wfm_tx</key>
+-    <param>
+-      <key>audio_rate</key>
+-      <value>50000</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(640, 584)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>analog_wfm_tx_0</value>
+-    </param>
+-    <param>
+-      <key>max_dev</key>
+-      <value>75e3</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>fh</key>
+-      <value>-1.0</value>
+-    </param>
+-    <param>
+-      <key>quad_rate</key>
+-      <value>200000</value>
+-    </param>
+-    <param>
+-      <key>tau</key>
+-      <value>75e-6</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_add_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(424, 472)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_add_xx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_inputs</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_conjugate_cc</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(624, 376)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_conjugate_cc_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_keep_m_in_n</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 340)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_keep_m_in_n_0</value>
+-    </param>
+-    <param>
+-      <key>m</key>
+-      <value>2160</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>n</key>
+-      <value>4096</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>offset</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>0.001</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(248, 468)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_const_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_const_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>const</key>
+-      <value>0.1</value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(104, 612)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_const_vxx_1</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_multiply_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(816, 360)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_multiply_xx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_inputs</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_repeat</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_repeat_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>2048</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_stream_to_vector</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_stream_to_vector_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_source_x</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(952, 428)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_source_x_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>tags</key>
+-      <value>[]</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>vector</key>
+-      <value>[math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112) + [math.cos(math.pi / 2 * i / 112) for i in range(112)]</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(1104, 356)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_vector_to_stream</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(288, 252)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_vector_to_stream_1</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_items</key>
+-      <value>1048576</value>
+-    </param>
+-    <param>
+-      <key>vlen</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>blocks_wavfile_source</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>file</key>
+-      <value>sample.wav</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(328, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>blocks_wavfile_source_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nchan</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>repeat</key>
+-      <value>True</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>digital_chunks_to_symbols_xx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>dimension</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(472, 244)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>digital_chunks_to_symbols_xx_0</value>
+-    </param>
+-    <param>
+-      <key>in_type</key>
+-      <value>byte</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_ports</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>out_type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>symbol_table</key>
+-      <value>-1-1j, -1+1j, 1-1j, 1+1j, 0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>fft_vxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fft_size</key>
+-      <value>2048</value>
+-    </param>
+-    <param>
+-      <key>forward</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(880, 224)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>fft_vxx_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>complex</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>nthreads</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>shift</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>window</key>
+-      <value>window.rectangular(2048)</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>import</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(8, 236)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>import_0</value>
+-    </param>
+-    <param>
+-      <key>import</key>
+-      <value>import math</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>low_pass_filter</key>
+-    <param>
+-      <key>beta</key>
+-      <value>6.76</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>cutoff_freq</key>
+-      <value>80000</value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>fir_filter_ccf</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(264, 568)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>gain</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>low_pass_filter_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>samp_rate</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>width</key>
+-      <value>20000</value>
+-    </param>
+-    <param>
+-      <key>win</key>
+-      <value>firdes.WIN_HAMMING</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_hdc_encoder</key>
+-    <param>
+-      <key>bitrate</key>
+-      <value>64000</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>channels</key>
+-      <value>2</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(512, 16)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_hdc_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l1_fm_encoder_mp1</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(888, 48)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l1_fm_encoder_mp1_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_l2_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>first_prog</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>size</key>
+-      <value>146176</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(696, 32)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_l2_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>num_progs</key>
+-      <value>1</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_sis_encoder</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(688, 108)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_sis_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>short_name</key>
+-      <value>ABCD</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>nrsc5_psd_encoder</key>
+-    <param>
+-      <key>artist</key>
+-      <value>Artist</value>
+-    </param>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(488, 92)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>nrsc5_psd_encoder_0</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>prog_num</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>title</key>
+-      <value>Title</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(448, 592)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_0</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>samp_rate / 200000</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>49</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(432, 352)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_1</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>125</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>rational_resampler_xxx</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>decim</key>
+-      <value>243</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>fbw</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(240, 352)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>180</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>rational_resampler_xxx_2</value>
+-    </param>
+-    <param>
+-      <key>interp</key>
+-      <value>256</value>
+-    </param>
+-    <param>
+-      <key>maxoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>minoutbuf</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>taps</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>ccc</value>
+-    </param>
+-  </block>
+-  <block>
+-    <key>uhd_usrp_sink</key>
+-    <param>
+-      <key>alias</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>ant0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw0</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq0</key>
+-      <value>freq</value>
+-    </param>
+-    <param>
+-      <key>norm_gain0</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain0</key>
+-      <value>70</value>
+-    </param>
+-    <param>
+-      <key>ant10</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw10</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq10</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain10</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain10</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant11</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw11</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq11</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain11</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain11</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant12</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw12</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq12</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain12</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain12</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant13</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw13</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq13</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain13</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain13</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant14</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw14</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq14</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain14</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain14</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant15</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw15</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq15</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain15</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain15</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant16</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw16</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq16</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain16</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain16</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant17</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw17</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq17</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain17</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain17</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant18</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw18</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq18</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain18</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain18</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant19</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw19</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq19</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain19</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain19</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw1</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq1</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain1</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain1</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant20</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw20</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq20</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain20</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain20</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant21</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw21</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq21</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain21</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain21</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant22</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw22</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq22</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain22</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain22</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant23</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw23</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq23</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain23</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain23</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant24</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw24</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq24</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain24</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain24</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant25</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw25</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq25</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain25</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain25</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant26</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw26</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq26</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain26</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain26</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant27</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw27</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq27</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain27</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain27</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant28</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw28</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq28</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain28</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain28</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant29</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw29</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq29</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain29</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain29</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw2</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq2</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain2</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain2</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant30</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw30</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq30</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain30</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain30</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant31</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw31</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq31</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain31</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain31</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw3</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq3</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain3</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain3</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw4</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq4</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain4</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain4</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw5</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq5</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain5</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain5</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw6</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq6</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain6</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain6</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw7</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq7</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain7</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain7</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant8</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw8</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq8</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain8</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain8</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>ant9</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>bw9</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>center_freq9</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>norm_gain9</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>gain9</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>clock_rate</key>
+-      <value>0.0</value>
+-    </param>
+-    <param>
+-      <key>comment</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>affinity</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>dev_addr</key>
+-      <value>""</value>
+-    </param>
+-    <param>
+-      <key>dev_args</key>
+-      <value>"send_frame_size=65536,num_send_frames=128"</value>
+-    </param>
+-    <param>
+-      <key>_enabled</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>_coordinate</key>
+-      <value>(528, 440)</value>
+-    </param>
+-    <param>
+-      <key>_rotation</key>
+-      <value>0</value>
+-    </param>
+-    <param>
+-      <key>id</key>
+-      <value>uhd_usrp_sink_0</value>
+-    </param>
+-    <param>
+-      <key>type</key>
+-      <value>fc32</value>
+-    </param>
+-    <param>
+-      <key>clock_source0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source0</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source1</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source2</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source3</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source4</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source5</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source6</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>clock_source7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>sd_spec7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>time_source7</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>nchan</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>num_mboards</key>
+-      <value>1</value>
+-    </param>
+-    <param>
+-      <key>samp_rate</key>
+-      <value>samp_rate</value>
+-    </param>
+-    <param>
+-      <key>hide_cmd_port</key>
+-      <value>False</value>
+-    </param>
+-    <param>
+-      <key>hide_lo_controls</key>
+-      <value>True</value>
+-    </param>
+-    <param>
+-      <key>stream_args</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>stream_chans</key>
+-      <value>[]</value>
+-    </param>
+-    <param>
+-      <key>sync</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>len_tag_name</key>
+-      <value></value>
+-    </param>
+-    <param>
+-      <key>otw</key>
+-      <value></value>
+-    </param>
+-  </block>
+-  <connection>
+-    <source_block_id>analog_sig_source_x_0</source_block_id>
+-    <sink_block_id>analog_wfm_tx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>analog_wfm_tx_0</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_add_xx_0</source_block_id>
+-    <sink_block_id>uhd_usrp_sink_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_conjugate_cc_0</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_keep_m_in_n_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_const_vxx_0</source_block_id>
+-    <sink_block_id>blocks_add_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_const_vxx_1</source_block_id>
+-    <sink_block_id>blocks_add_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_multiply_xx_0</source_block_id>
+-    <sink_block_id>blocks_conjugate_cc_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_repeat_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_stream_to_vector_0</source_block_id>
+-    <sink_block_id>fft_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_source_x_0</source_block_id>
+-    <sink_block_id>blocks_multiply_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_0</source_block_id>
+-    <sink_block_id>blocks_keep_m_in_n_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_vector_to_stream_1</source_block_id>
+-    <sink_block_id>digital_chunks_to_symbols_xx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>blocks_wavfile_source_0</source_block_id>
+-    <sink_block_id>nrsc5_hdc_encoder_0</sink_block_id>
+-    <source_key>1</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>digital_chunks_to_symbols_xx_0</source_block_id>
+-    <sink_block_id>blocks_stream_to_vector_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>fft_vxx_0</source_block_id>
+-    <sink_block_id>blocks_repeat_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>low_pass_filter_0</source_block_id>
+-    <sink_block_id>blocks_multiply_const_vxx_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_hdc_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l1_fm_encoder_mp1_0</source_block_id>
+-    <sink_block_id>blocks_vector_to_stream_1</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_l2_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_sis_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l1_fm_encoder_mp1_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>nrsc5_psd_encoder_0</source_block_id>
+-    <sink_block_id>nrsc5_l2_encoder_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>1</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_0</source_block_id>
+-    <sink_block_id>low_pass_filter_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_1</source_block_id>
+-    <sink_block_id>rational_resampler_xxx_2</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-  <connection>
+-    <source_block_id>rational_resampler_xxx_2</source_block_id>
+-    <sink_block_id>blocks_multiply_const_vxx_0</sink_block_id>
+-    <source_key>0</source_key>
+-    <sink_key>0</sink_key>
+-  </connection>
+-</flow_graph>
++options:
++  parameters:
++    author: ''
++    category: '[GRC Hier Blocks]'
++    cmake_opt: ''
++    comment: ''
++    copyright: ''
++    description: ''
++    gen_cmake: 'On'
++    gen_linking: dynamic
++    generate_options: no_gui
++    hier_block_src_path: '.:'
++    id: hd_tx_usrp
++    max_nouts: '0'
++    output_language: python
++    placement: (0,0)
++    qt_qss_theme: ''
++    realtime_scheduling: ''
++    run: 'True'
++    run_command: '{python} -u {filename}'
++    run_options: prompt
++    sizing_mode: fixed
++    thread_safe_setters: ''
++    title: ''
++    window_size: ''
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 12]
++    rotation: 0
++    state: enabled
++
++blocks:
++- name: freq
++  id: variable
++  parameters:
++    comment: ''
++    value: 87.5e6
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 164]
++    rotation: 0
++    state: enabled
++- name: samp_rate
++  id: variable
++  parameters:
++    comment: ''
++    value: '2000000'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 100]
++    rotation: 0
++    state: enabled
++- name: analog_sig_source_x_0
++  id: analog_sig_source_x
++  parameters:
++    affinity: ''
++    alias: ''
++    amp: '0.1'
++    comment: ''
++    freq: '1000'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    offset: '0'
++    phase: '0'
++    samp_rate: '50000'
++    type: float
++    waveform: analog.GR_COS_WAVE
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [1152, 644.0]
++    rotation: 180
++    state: enabled
++- name: analog_wfm_tx_0
++  id: analog_wfm_tx
++  parameters:
++    affinity: ''
++    alias: ''
++    audio_rate: '50000'
++    comment: ''
++    fh: '-1.0'
++    max_dev: 75e3
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    quad_rate: '200000'
++    tau: 75e-6
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [896, 652.0]
++    rotation: 180
++    state: enabled
++- name: blocks_add_xx_0
++  id: blocks_add_xx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_inputs: '2'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [424, 544.0]
++    rotation: 0
++    state: enabled
++- name: blocks_conjugate_cc_0
++  id: blocks_conjugate_cc
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [624, 424.0]
++    rotation: 180
++    state: enabled
++- name: blocks_keep_m_in_n_0
++  id: blocks_keep_m_in_n
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    m: '2160'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    n: '4096'
++    offset: '0'
++    type: complex
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [952, 420.0]
++    rotation: 180
++    state: enabled
++- name: blocks_multiply_const_vxx_0
++  id: blocks_multiply_const_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    const: '0.001'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [248, 540.0]
++    rotation: 0
++    state: enabled
++- name: blocks_multiply_const_vxx_1
++  id: blocks_multiply_const_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    const: '0.1'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [368, 684.0]
++    rotation: 180
++    state: enabled
++- name: blocks_multiply_xx_0
++  id: blocks_multiply_xx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_inputs: '2'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [816, 408.0]
++    rotation: 180
++    state: enabled
++- name: blocks_repeat_0
++  id: blocks_repeat
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    interp: '2'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    type: complex
++    vlen: '2048'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [1104, 244]
++    rotation: 0
++    state: enabled
++- name: blocks_stream_to_vector_0
++  id: blocks_stream_to_vector
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '2048'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [696, 256.0]
++    rotation: 0
++    state: enabled
++- name: blocks_vector_source_x_0
++  id: blocks_vector_source_x
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    repeat: 'True'
++    tags: '[]'
++    type: complex
++    vector: '[math.sin(math.pi / 2 * i / 112) for i in range(112)] + [1] * (2048-112)
++      + [math.cos(math.pi / 2 * i / 112) for i in range(112)]'
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [952, 340.0]
++    rotation: 180
++    state: enabled
++- name: blocks_vector_to_stream_0
++  id: blocks_vector_to_stream
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '2048'
++    type: complex
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [1104, 440.0]
++    rotation: 180
++    state: enabled
++- name: blocks_vector_to_stream_1
++  id: blocks_vector_to_stream
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_items: '1048576'
++    type: byte
++    vlen: '1'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [288, 256.0]
++    rotation: 0
++    state: enabled
++- name: blocks_wavfile_source_0
++  id: blocks_wavfile_source
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    file: sample.wav
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    nchan: '2'
++    repeat: 'True'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [896, 56.0]
++    rotation: 180
++    state: enabled
++- name: digital_chunks_to_symbols_xx_0
++  id: digital_chunks_to_symbols_xx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    dimension: '1'
++    in_type: byte
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_ports: '1'
++    out_type: complex
++    symbol_table: (-1-1j, -1+1j, 1-1j, 1+1j, 0)
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [472, 256.0]
++    rotation: 0
++    state: enabled
++- name: fft_vxx_0
++  id: fft_vxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    fft_size: '2048'
++    forward: 'False'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    nthreads: '1'
++    shift: 'True'
++    type: complex
++    window: window.rectangular(2048)
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [880, 220.0]
++    rotation: 0
++    state: enabled
++- name: import_0
++  id: import
++  parameters:
++    alias: ''
++    comment: ''
++    imports: import math
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [8, 236]
++    rotation: 0
++    state: enabled
++- name: low_pass_filter_0
++  id: low_pass_filter
++  parameters:
++    affinity: ''
++    alias: ''
++    beta: '6.76'
++    comment: ''
++    cutoff_freq: '80000'
++    decim: '1'
++    gain: '1'
++    interp: '1'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    samp_rate: samp_rate
++    type: fir_filter_ccf
++    width: '20000'
++    win: firdes.WIN_HAMMING
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 636.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_hdc_encoder_0
++  id: nrsc5_hdc_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    bitrate: '64000'
++    channels: '2'
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [728, 56.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_l1_fm_encoder_mp1_0
++  id: nrsc5_l1_fm_encoder_mp1
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [288, 88.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_l2_encoder_0
++  id: nrsc5_l2_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    first_prog: '0'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    num_progs: '1'
++    size: '146176'
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 68.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_psd_encoder_0
++  id: nrsc5_psd_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    artist: Artist
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    prog_num: '0'
++    title: Title
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [728, 132.0]
++    rotation: 180
++    state: enabled
++- name: nrsc5_sis_encoder_0
++  id: nrsc5_sis_encoder
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    short_name: ABCD
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 148.0]
++    rotation: 180
++    state: enabled
++- name: rational_resampler_xxx_0
++  id: rational_resampler_xxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    decim: '1'
++    fbw: '0'
++    interp: samp_rate // 200000
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    taps: ''
++    type: ccc
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [704, 660.0]
++    rotation: 180
++    state: enabled
++- name: rational_resampler_xxx_1
++  id: rational_resampler_xxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    decim: '49'
++    fbw: '0'
++    interp: '125'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    taps: ''
++    type: ccc
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [432, 396.0]
++    rotation: 180
++    state: enabled
++- name: rational_resampler_xxx_2
++  id: rational_resampler_xxx
++  parameters:
++    affinity: ''
++    alias: ''
++    comment: ''
++    decim: '243'
++    fbw: '0'
++    interp: '256'
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    taps: ''
++    type: ccc
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [240, 396.0]
++    rotation: 180
++    state: enabled
++- name: uhd_usrp_sink_0
++  id: uhd_usrp_sink
++  parameters:
++    affinity: ''
++    alias: ''
++    ant0: TX/RX
++    ant1: ''
++    ant10: ''
++    ant11: ''
++    ant12: ''
++    ant13: ''
++    ant14: ''
++    ant15: ''
++    ant16: ''
++    ant17: ''
++    ant18: ''
++    ant19: ''
++    ant2: ''
++    ant20: ''
++    ant21: ''
++    ant22: ''
++    ant23: ''
++    ant24: ''
++    ant25: ''
++    ant26: ''
++    ant27: ''
++    ant28: ''
++    ant29: ''
++    ant3: ''
++    ant30: ''
++    ant31: ''
++    ant4: ''
++    ant5: ''
++    ant6: ''
++    ant7: ''
++    ant8: ''
++    ant9: ''
++    bw0: '0'
++    bw1: '0'
++    bw10: '0'
++    bw11: '0'
++    bw12: '0'
++    bw13: '0'
++    bw14: '0'
++    bw15: '0'
++    bw16: '0'
++    bw17: '0'
++    bw18: '0'
++    bw19: '0'
++    bw2: '0'
++    bw20: '0'
++    bw21: '0'
++    bw22: '0'
++    bw23: '0'
++    bw24: '0'
++    bw25: '0'
++    bw26: '0'
++    bw27: '0'
++    bw28: '0'
++    bw29: '0'
++    bw3: '0'
++    bw30: '0'
++    bw31: '0'
++    bw4: '0'
++    bw5: '0'
++    bw6: '0'
++    bw7: '0'
++    bw8: '0'
++    bw9: '0'
++    center_freq0: freq
++    center_freq1: '0'
++    center_freq10: '0'
++    center_freq11: '0'
++    center_freq12: '0'
++    center_freq13: '0'
++    center_freq14: '0'
++    center_freq15: '0'
++    center_freq16: '0'
++    center_freq17: '0'
++    center_freq18: '0'
++    center_freq19: '0'
++    center_freq2: '0'
++    center_freq20: '0'
++    center_freq21: '0'
++    center_freq22: '0'
++    center_freq23: '0'
++    center_freq24: '0'
++    center_freq25: '0'
++    center_freq26: '0'
++    center_freq27: '0'
++    center_freq28: '0'
++    center_freq29: '0'
++    center_freq3: '0'
++    center_freq30: '0'
++    center_freq31: '0'
++    center_freq4: '0'
++    center_freq5: '0'
++    center_freq6: '0'
++    center_freq7: '0'
++    center_freq8: '0'
++    center_freq9: '0'
++    clock_rate: '0.0'
++    clock_source0: ''
++    clock_source1: ''
++    clock_source2: ''
++    clock_source3: ''
++    clock_source4: ''
++    clock_source5: ''
++    clock_source6: ''
++    clock_source7: ''
++    comment: ''
++    dev_addr: '""'
++    dev_args: ''
++    gain0: '70'
++    gain1: '0'
++    gain10: '0'
++    gain11: '0'
++    gain12: '0'
++    gain13: '0'
++    gain14: '0'
++    gain15: '0'
++    gain16: '0'
++    gain17: '0'
++    gain18: '0'
++    gain19: '0'
++    gain2: '0'
++    gain20: '0'
++    gain21: '0'
++    gain22: '0'
++    gain23: '0'
++    gain24: '0'
++    gain25: '0'
++    gain26: '0'
++    gain27: '0'
++    gain28: '0'
++    gain29: '0'
++    gain3: '0'
++    gain30: '0'
++    gain31: '0'
++    gain4: '0'
++    gain5: '0'
++    gain6: '0'
++    gain7: '0'
++    gain8: '0'
++    gain9: '0'
++    len_tag_name: ''
++    lo_export0: 'False'
++    lo_export1: 'False'
++    lo_export10: 'False'
++    lo_export11: 'False'
++    lo_export12: 'False'
++    lo_export13: 'False'
++    lo_export14: 'False'
++    lo_export15: 'False'
++    lo_export16: 'False'
++    lo_export17: 'False'
++    lo_export18: 'False'
++    lo_export19: 'False'
++    lo_export2: 'False'
++    lo_export20: 'False'
++    lo_export21: 'False'
++    lo_export22: 'False'
++    lo_export23: 'False'
++    lo_export24: 'False'
++    lo_export25: 'False'
++    lo_export26: 'False'
++    lo_export27: 'False'
++    lo_export28: 'False'
++    lo_export29: 'False'
++    lo_export3: 'False'
++    lo_export30: 'False'
++    lo_export31: 'False'
++    lo_export4: 'False'
++    lo_export5: 'False'
++    lo_export6: 'False'
++    lo_export7: 'False'
++    lo_export8: 'False'
++    lo_export9: 'False'
++    lo_source0: internal
++    lo_source1: internal
++    lo_source10: internal
++    lo_source11: internal
++    lo_source12: internal
++    lo_source13: internal
++    lo_source14: internal
++    lo_source15: internal
++    lo_source16: internal
++    lo_source17: internal
++    lo_source18: internal
++    lo_source19: internal
++    lo_source2: internal
++    lo_source20: internal
++    lo_source21: internal
++    lo_source22: internal
++    lo_source23: internal
++    lo_source24: internal
++    lo_source25: internal
++    lo_source26: internal
++    lo_source27: internal
++    lo_source28: internal
++    lo_source29: internal
++    lo_source3: internal
++    lo_source30: internal
++    lo_source31: internal
++    lo_source4: internal
++    lo_source5: internal
++    lo_source6: internal
++    lo_source7: internal
++    lo_source8: internal
++    lo_source9: internal
++    maxoutbuf: '0'
++    minoutbuf: '0'
++    nchan: '1'
++    norm_gain0: 'False'
++    norm_gain1: 'False'
++    norm_gain10: 'False'
++    norm_gain11: 'False'
++    norm_gain12: 'False'
++    norm_gain13: 'False'
++    norm_gain14: 'False'
++    norm_gain15: 'False'
++    norm_gain16: 'False'
++    norm_gain17: 'False'
++    norm_gain18: 'False'
++    norm_gain19: 'False'
++    norm_gain2: 'False'
++    norm_gain20: 'False'
++    norm_gain21: 'False'
++    norm_gain22: 'False'
++    norm_gain23: 'False'
++    norm_gain24: 'False'
++    norm_gain25: 'False'
++    norm_gain26: 'False'
++    norm_gain27: 'False'
++    norm_gain28: 'False'
++    norm_gain29: 'False'
++    norm_gain3: 'False'
++    norm_gain30: 'False'
++    norm_gain31: 'False'
++    norm_gain4: 'False'
++    norm_gain5: 'False'
++    norm_gain6: 'False'
++    norm_gain7: 'False'
++    norm_gain8: 'False'
++    norm_gain9: 'False'
++    num_mboards: '1'
++    otw: ''
++    samp_rate: samp_rate
++    sd_spec0: ''
++    sd_spec1: ''
++    sd_spec2: ''
++    sd_spec3: ''
++    sd_spec4: ''
++    sd_spec5: ''
++    sd_spec6: ''
++    sd_spec7: ''
++    show_lo_controls: 'False'
++    stream_args: ''
++    stream_chans: '[]'
++    sync: sync
++    time_source0: ''
++    time_source1: ''
++    time_source2: ''
++    time_source3: ''
++    time_source4: ''
++    time_source5: ''
++    time_source6: ''
++    time_source7: ''
++    type: fc32
++  states:
++    bus_sink: false
++    bus_source: false
++    bus_structure: null
++    coordinate: [528, 500.0]
++    rotation: 0
++    state: enabled
++
++connections:
++- [analog_sig_source_x_0, '0', analog_wfm_tx_0, '0']
++- [analog_wfm_tx_0, '0', rational_resampler_xxx_0, '0']
++- [blocks_add_xx_0, '0', uhd_usrp_sink_0, '0']
++- [blocks_conjugate_cc_0, '0', rational_resampler_xxx_1, '0']
++- [blocks_keep_m_in_n_0, '0', blocks_multiply_xx_0, '1']
++- [blocks_multiply_const_vxx_0, '0', blocks_add_xx_0, '0']
++- [blocks_multiply_const_vxx_1, '0', blocks_add_xx_0, '1']
++- [blocks_multiply_xx_0, '0', blocks_conjugate_cc_0, '0']
++- [blocks_repeat_0, '0', blocks_vector_to_stream_0, '0']
++- [blocks_stream_to_vector_0, '0', fft_vxx_0, '0']
++- [blocks_vector_source_x_0, '0', blocks_multiply_xx_0, '0']
++- [blocks_vector_to_stream_0, '0', blocks_keep_m_in_n_0, '0']
++- [blocks_vector_to_stream_1, '0', digital_chunks_to_symbols_xx_0, '0']
++- [blocks_wavfile_source_0, '0', nrsc5_hdc_encoder_0, '0']
++- [blocks_wavfile_source_0, '1', nrsc5_hdc_encoder_0, '1']
++- [digital_chunks_to_symbols_xx_0, '0', blocks_stream_to_vector_0, '0']
++- [fft_vxx_0, '0', blocks_repeat_0, '0']
++- [low_pass_filter_0, '0', blocks_multiply_const_vxx_1, '0']
++- [nrsc5_hdc_encoder_0, '0', nrsc5_l2_encoder_0, '0']
++- [nrsc5_l1_fm_encoder_mp1_0, '0', blocks_vector_to_stream_1, '0']
++- [nrsc5_l2_encoder_0, '0', nrsc5_l1_fm_encoder_mp1_0, '0']
++- [nrsc5_psd_encoder_0, '0', nrsc5_l2_encoder_0, '1']
++- [nrsc5_sis_encoder_0, '0', nrsc5_l1_fm_encoder_mp1_0, '1']
++- [rational_resampler_xxx_0, '0', low_pass_filter_0, '0']
++- [rational_resampler_xxx_1, '0', rational_resampler_xxx_2, '0']
++- [rational_resampler_xxx_2, '0', blocks_multiply_const_vxx_0, '0']
++
++metadata:
++  file_format: 1
+diff --git a/apps/hd_tx_usrp.py b/apps/hd_tx_usrp.py
+index 45c7145..37426ab 100755
+--- apps/hd_tx_usrp.py
++++ apps/hd_tx_usrp.py
+@@ -1,27 +1,30 @@
+-#!/usr/bin/env python2
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+-##################################################
++
++#
++# SPDX-License-Identifier: GPL-3.0
++#
+ # GNU Radio Python Flow Graph
+ # Title: Hd Tx Usrp
+-# Generated: Sun Oct 15 00:12:12 2017
+-##################################################
++# GNU Radio version: 3.8.0.0-rc2
+ 
+ from gnuradio import analog
+ from gnuradio import blocks
+ from gnuradio import digital
+-from gnuradio import eng_notation
+ from gnuradio import fft
++from gnuradio.fft import window
+ from gnuradio import filter
++from gnuradio.filter import firdes
+ from gnuradio import gr
++import sys
++import signal
++from argparse import ArgumentParser
++from gnuradio.eng_arg import eng_float, intx
++from gnuradio import eng_notation
+ from gnuradio import uhd
+-from gnuradio.eng_option import eng_option
+-from gnuradio.fft import window
+-from gnuradio.filter import firdes
+-from optparse import OptionParser
++import time
+ import math
+ import nrsc5
+-import time
+-
+ 
+ class hd_tx_usrp(gr.top_block):
+ 
+@@ -32,47 +35,55 @@ def __init__(self):
+         # Variables
+         ##################################################
+         self.samp_rate = samp_rate = 2000000
+-        self.freq = freq = 95.7e6
++        self.freq = freq = 87.5e6
+ 
+         ##################################################
+         # Blocks
+         ##################################################
+         self.uhd_usrp_sink_0 = uhd.usrp_sink(
+-        	",".join(("", "send_frame_size=65536,num_send_frames=128")),
+-        	uhd.stream_args(
+-        		cpu_format="fc32",
+-        		channels=range(1),
+-        	),
++            ",".join(("", '')),
++            uhd.stream_args(
++                cpu_format="fc32",
++                args='',
++                channels=[],
++            ),
++            '',
+         )
+-        self.uhd_usrp_sink_0.set_samp_rate(samp_rate)
+         self.uhd_usrp_sink_0.set_center_freq(freq, 0)
+         self.uhd_usrp_sink_0.set_gain(70, 0)
++        self.uhd_usrp_sink_0.set_antenna('TX/RX', 0)
++        self.uhd_usrp_sink_0.set_samp_rate(samp_rate)
++        self.uhd_usrp_sink_0.set_time_unknown_pps(uhd.time_spec())
+         self.rational_resampler_xxx_2 = filter.rational_resampler_ccc(
+                 interpolation=256,
+                 decimation=243,
+                 taps=None,
+-                fractional_bw=None,
+-        )
++                fractional_bw=None)
+         self.rational_resampler_xxx_1 = filter.rational_resampler_ccc(
+                 interpolation=125,
+                 decimation=49,
+                 taps=None,
+-                fractional_bw=None,
+-        )
++                fractional_bw=None)
+         self.rational_resampler_xxx_0 = filter.rational_resampler_ccc(
+-                interpolation=samp_rate / 200000,
++                interpolation=samp_rate // 200000,
+                 decimation=1,
+                 taps=None,
+-                fractional_bw=None,
+-        )
++                fractional_bw=None)
+         self.nrsc5_sis_encoder_0 = nrsc5.sis_encoder('ABCD')
+         self.nrsc5_psd_encoder_0 = nrsc5.psd_encoder(0, 'Title', 'Artist')
+         self.nrsc5_l2_encoder_0 = nrsc5.l2_encoder(1, 0, 146176)
+         self.nrsc5_l1_fm_encoder_mp1_0 = nrsc5.l1_fm_encoder(1)
+         self.nrsc5_hdc_encoder_0 = nrsc5.hdc_encoder(2, 64000)
+-        self.low_pass_filter_0 = filter.fir_filter_ccf(1, firdes.low_pass(
+-        	1, samp_rate, 80000, 20000, firdes.WIN_HAMMING, 6.76))
+-        self.fft_vxx_0 = fft.fft_vcc(2048, False, (window.rectangular(2048)), True, 1)
++        self.low_pass_filter_0 = filter.fir_filter_ccf(
++            1,
++            firdes.low_pass(
++                1,
++                samp_rate,
++                80000,
++                20000,
++                firdes.WIN_HAMMING,
++                6.76))
++        self.fft_vxx_0 = fft.fft_vcc(2048, False, window.rectangular(2048), True, 1)
+         self.digital_chunks_to_symbols_xx_0 = digital.chunks_to_symbols_bc((-1-1j, -1+1j, 1-1j, 1+1j, 0), 1)
+         self.blocks_wavfile_source_0 = blocks.wavfile_source('sample.wav', True)
+         self.blocks_vector_to_stream_1 = blocks.vector_to_stream(gr.sizeof_char*1, 1048576)
+@@ -81,8 +92,8 @@ def __init__(self):
+         self.blocks_stream_to_vector_0 = blocks.stream_to_vector(gr.sizeof_gr_complex*1, 2048)
+         self.blocks_repeat_0 = blocks.repeat(gr.sizeof_gr_complex*2048, 2)
+         self.blocks_multiply_xx_0 = blocks.multiply_vcc(1)
+-        self.blocks_multiply_const_vxx_1 = blocks.multiply_const_vcc((0.1, ))
+-        self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vcc((0.001, ))
++        self.blocks_multiply_const_vxx_1 = blocks.multiply_const_cc(0.1)
++        self.blocks_multiply_const_vxx_0 = blocks.multiply_const_cc(0.001)
+         self.blocks_keep_m_in_n_0 = blocks.keep_m_in_n(gr.sizeof_gr_complex, 2160, 4096, 0)
+         self.blocks_conjugate_cc_0 = blocks.conjugate_cc()
+         self.blocks_add_xx_0 = blocks.add_vcc(1)
+@@ -93,7 +104,9 @@ def __init__(self):
+         	max_dev=75e3,
+         	fh=-1.0,
+         )
+-        self.analog_sig_source_x_0 = analog.sig_source_f(50000, analog.GR_COS_WAVE, 1000, 0.1, 0)
++        self.analog_sig_source_x_0 = analog.sig_source_f(50000, analog.GR_COS_WAVE, 1000, 0.1, 0, 0)
++
++
+ 
+         ##################################################
+         # Connections
+@@ -130,8 +143,8 @@ def get_samp_rate(self):
+ 
+     def set_samp_rate(self, samp_rate):
+         self.samp_rate = samp_rate
+-        self.uhd_usrp_sink_0.set_samp_rate(self.samp_rate)
+         self.low_pass_filter_0.set_taps(firdes.low_pass(1, self.samp_rate, 80000, 20000, firdes.WIN_HAMMING, 6.76))
++        self.uhd_usrp_sink_0.set_samp_rate(self.samp_rate)
+ 
+     def get_freq(self):
+         return self.freq
+@@ -141,12 +154,21 @@ def set_freq(self, freq):
+         self.uhd_usrp_sink_0.set_center_freq(self.freq, 0)
+ 
+ 
+-def main(top_block_cls=hd_tx_usrp, options=None):
+ 
++def main(top_block_cls=hd_tx_usrp, options=None):
+     tb = top_block_cls()
++
++    def sig_handler(sig=None, frame=None):
++        tb.stop()
++        tb.wait()
++        sys.exit(0)
++
++    signal.signal(signal.SIGINT, sig_handler)
++    signal.signal(signal.SIGTERM, sig_handler)
++
+     tb.start()
+     try:
+-        raw_input('Press Enter to quit: ')
++        input('Press Enter to quit: ')
+     except EOFError:
+         pass
+     tb.stop()
+diff --git a/cmake/Modules/CMakeParseArgumentsCopy.cmake b/cmake/Modules/CMakeParseArgumentsCopy.cmake
+index 7ce4c49..66016cb 100644
+--- cmake/Modules/CMakeParseArgumentsCopy.cmake
++++ cmake/Modules/CMakeParseArgumentsCopy.cmake
+@@ -58,7 +58,7 @@
+ # the new option.
+ # E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in
+ # MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would
+-# be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.
++# be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefore.
+ 
+ #=============================================================================
+ # Copyright 2010 Alexander Neundorf <neundorf@kde.org>
+diff --git a/cmake/Modules/FindCppUnit.cmake b/cmake/Modules/FindCppUnit.cmake
+deleted file mode 100644
+index f93ade3..0000000
+--- cmake/Modules/FindCppUnit.cmake
++++ /dev/null
+@@ -1,39 +0,0 @@
+-# http://www.cmake.org/pipermail/cmake/2006-October/011446.html
+-# Modified to use pkg config and use standard var names
+-
+-#
+-# Find the CppUnit includes and library
+-#
+-# This module defines
+-# CPPUNIT_INCLUDE_DIR, where to find tiff.h, etc.
+-# CPPUNIT_LIBRARIES, the libraries to link against to use CppUnit.
+-# CPPUNIT_FOUND, If false, do not try to use CppUnit.
+-
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_CPPUNIT "cppunit")
+-
+-FIND_PATH(CPPUNIT_INCLUDE_DIRS
+-    NAMES cppunit/TestCase.h
+-    HINTS ${PC_CPPUNIT_INCLUDE_DIR}
+-    ${CMAKE_INSTALL_PREFIX}/include
+-    PATHS
+-    /usr/local/include
+-    /usr/include
+-)
+-
+-FIND_LIBRARY(CPPUNIT_LIBRARIES
+-    NAMES cppunit
+-    HINTS ${PC_CPPUNIT_LIBDIR}
+-    ${CMAKE_INSTALL_PREFIX}/lib
+-    ${CMAKE_INSTALL_PREFIX}/lib64
+-    PATHS
+-    ${CPPUNIT_INCLUDE_DIRS}/../lib
+-    /usr/local/lib
+-    /usr/lib
+-)
+-
+-LIST(APPEND CPPUNIT_LIBRARIES ${CMAKE_DL_LIBS})
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
+-MARK_AS_ADVANCED(CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
+diff --git a/cmake/Modules/FindGnuradioRuntime.cmake b/cmake/Modules/FindGnuradioRuntime.cmake
+deleted file mode 100644
+index afed684..0000000
+--- cmake/Modules/FindGnuradioRuntime.cmake
++++ /dev/null
+@@ -1,36 +0,0 @@
+-INCLUDE(FindPkgConfig)
+-PKG_CHECK_MODULES(PC_GNURADIO_RUNTIME gnuradio-runtime)
+-
+-if(PC_GNURADIO_RUNTIME_FOUND)
+-  # look for include files
+-  FIND_PATH(
+-    GNURADIO_RUNTIME_INCLUDE_DIRS
+-    NAMES gnuradio/top_block.h
+-    HINTS $ENV{GNURADIO_RUNTIME_DIR}/include
+-          ${PC_GNURADIO_RUNTIME_INCLUDE_DIRS}
+-          ${CMAKE_INSTALL_PREFIX}/include
+-    PATHS /usr/local/include
+-          /usr/include
+-    )
+-
+-  # look for libs
+-  FIND_LIBRARY(
+-    GNURADIO_RUNTIME_LIBRARIES
+-    NAMES gnuradio-runtime
+-    HINTS $ENV{GNURADIO_RUNTIME_DIR}/lib
+-          ${PC_GNURADIO_RUNTIME_LIBDIR}
+-          ${CMAKE_INSTALL_PREFIX}/lib/
+-          ${CMAKE_INSTALL_PREFIX}/lib64/
+-    PATHS /usr/local/lib
+-          /usr/local/lib64
+-          /usr/lib
+-          /usr/lib64
+-    )
+-
+-  set(GNURADIO_RUNTIME_FOUND ${PC_GNURADIO_RUNTIME_FOUND})
+-endif(PC_GNURADIO_RUNTIME_FOUND)
+-
+-INCLUDE(FindPackageHandleStandardArgs)
+-# do not check GNURADIO_RUNTIME_INCLUDE_DIRS, is not set when default include path us used.
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_RUNTIME DEFAULT_MSG GNURADIO_RUNTIME_LIBRARIES)
+-MARK_AS_ADVANCED(GNURADIO_RUNTIME_LIBRARIES GNURADIO_RUNTIME_INCLUDE_DIRS)
+diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake
+deleted file mode 100644
+index 5bad57c..0000000
+--- cmake/Modules/GrMiscUtils.cmake
++++ /dev/null
+@@ -1,528 +0,0 @@
+-# Copyright 2010-2011,2014 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_MISC_UTILS_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_MISC_UTILS_CMAKE TRUE)
+-
+-########################################################################
+-# Set global variable macro.
+-# Used for subdirectories to export settings.
+-# Example: include and library paths.
+-########################################################################
+-function(GR_SET_GLOBAL var)
+-    set(${var} ${ARGN} CACHE INTERNAL "" FORCE)
+-endfunction(GR_SET_GLOBAL)
+-
+-########################################################################
+-# Set the pre-processor definition if the condition is true.
+-#  - def the pre-processor definition to set and condition name
+-########################################################################
+-function(GR_ADD_COND_DEF def)
+-    if(${def})
+-        add_definitions(-D${def})
+-    endif(${def})
+-endfunction(GR_ADD_COND_DEF)
+-
+-########################################################################
+-# Check for a header and conditionally set a compile define.
+-#  - hdr the relative path to the header file
+-#  - def the pre-processor definition to set
+-########################################################################
+-function(GR_CHECK_HDR_N_DEF hdr def)
+-    include(CheckIncludeFileCXX)
+-    CHECK_INCLUDE_FILE_CXX(${hdr} ${def})
+-    GR_ADD_COND_DEF(${def})
+-endfunction(GR_CHECK_HDR_N_DEF)
+-
+-########################################################################
+-# Include subdirectory macro.
+-# Sets the CMake directory variables,
+-# includes the subdirectory CMakeLists.txt,
+-# resets the CMake directory variables.
+-#
+-# This macro includes subdirectories rather than adding them
+-# so that the subdirectory can affect variables in the level above.
+-# This provides a work-around for the lack of convenience libraries.
+-# This way a subdirectory can append to the list of library sources.
+-########################################################################
+-macro(GR_INCLUDE_SUBDIRECTORY subdir)
+-    #insert the current directories on the front of the list
+-    list(INSERT _cmake_source_dirs 0 ${CMAKE_CURRENT_SOURCE_DIR})
+-    list(INSERT _cmake_binary_dirs 0 ${CMAKE_CURRENT_BINARY_DIR})
+-
+-    #set the current directories to the names of the subdirs
+-    set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${subdir})
+-    set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${subdir})
+-
+-    #include the subdirectory CMakeLists to run it
+-    file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+-    include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
+-
+-    #reset the value of the current directories
+-    list(GET _cmake_source_dirs 0 CMAKE_CURRENT_SOURCE_DIR)
+-    list(GET _cmake_binary_dirs 0 CMAKE_CURRENT_BINARY_DIR)
+-
+-    #pop the subdir names of the front of the list
+-    list(REMOVE_AT _cmake_source_dirs 0)
+-    list(REMOVE_AT _cmake_binary_dirs 0)
+-endmacro(GR_INCLUDE_SUBDIRECTORY)
+-
+-########################################################################
+-# Check if a compiler flag works and conditionally set a compile define.
+-#  - flag the compiler flag to check for
+-#  - have the variable to set with result
+-########################################################################
+-macro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE flag have)
+-    include(CheckCXXCompilerFlag)
+-    CHECK_CXX_COMPILER_FLAG(${flag} ${have})
+-    if(${have})
+-      if(${CMAKE_VERSION} VERSION_GREATER "2.8.4")
+-        STRING(FIND "${CMAKE_CXX_FLAGS}" "${flag}" flag_dup)
+-        if(${flag_dup} EQUAL -1)
+-          set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
+-          set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}")
+-        endif(${flag_dup} EQUAL -1)
+-      endif(${CMAKE_VERSION} VERSION_GREATER "2.8.4")
+-    endif(${have})
+-endmacro(GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE)
+-
+-########################################################################
+-# Generates the .la libtool file
+-# This appears to generate libtool files that cannot be used by auto*.
+-# Usage GR_LIBTOOL(TARGET [target] DESTINATION [dest])
+-# Notice: there is not COMPONENT option, these will not get distributed.
+-########################################################################
+-function(GR_LIBTOOL)
+-    if(NOT DEFINED GENERATE_LIBTOOL)
+-        set(GENERATE_LIBTOOL OFF) #disabled by default
+-    endif()
+-
+-    if(GENERATE_LIBTOOL)
+-        include(CMakeParseArgumentsCopy)
+-        CMAKE_PARSE_ARGUMENTS(GR_LIBTOOL "" "TARGET;DESTINATION" "" ${ARGN})
+-
+-        find_program(LIBTOOL libtool)
+-        if(LIBTOOL)
+-            include(CMakeMacroLibtoolFile)
+-            CREATE_LIBTOOL_FILE(${GR_LIBTOOL_TARGET} /${GR_LIBTOOL_DESTINATION})
+-        endif(LIBTOOL)
+-    endif(GENERATE_LIBTOOL)
+-
+-endfunction(GR_LIBTOOL)
+-
+-########################################################################
+-# Do standard things to the library target
+-# - set target properties
+-# - make install rules
+-# Also handle gnuradio custom naming conventions w/ extras mode.
+-########################################################################
+-function(GR_LIBRARY_FOO target)
+-    #parse the arguments for component names
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_LIBRARY "" "RUNTIME_COMPONENT;DEVEL_COMPONENT" "" ${ARGN})
+-
+-    #set additional target properties
+-    set_target_properties(${target} PROPERTIES SOVERSION ${LIBVER})
+-
+-    #install the generated files like so...
+-    install(TARGETS ${target}
+-        LIBRARY DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .so/.dylib file
+-        ARCHIVE DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_DEVEL_COMPONENT}   # .lib file
+-        RUNTIME DESTINATION ${GR_RUNTIME_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT} # .dll file
+-    )
+-
+-    #extras mode enabled automatically on linux
+-    if(NOT DEFINED LIBRARY_EXTRAS)
+-        set(LIBRARY_EXTRAS ${LINUX})
+-    endif()
+-
+-    #special extras mode to enable alternative naming conventions
+-    if(LIBRARY_EXTRAS)
+-
+-        #create .la file before changing props
+-        GR_LIBTOOL(TARGET ${target} DESTINATION ${GR_LIBRARY_DIR})
+-
+-        #give the library a special name with ultra-zero soversion
+-        set_target_properties(${target} PROPERTIES OUTPUT_NAME ${target}-${LIBVER} SOVERSION "0.0.0")
+-        set(target_name lib${target}-${LIBVER}.so.0.0.0)
+-
+-        #custom command to generate symlinks
+-        add_custom_command(
+-            TARGET ${target}
+-            POST_BUILD
+-            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
+-            COMMAND ${CMAKE_COMMAND} -E create_symlink ${target_name} ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
+-            COMMAND ${CMAKE_COMMAND} -E touch ${target_name} #so the symlinks point to something valid so cmake 2.6 will install
+-        )
+-
+-        #and install the extra symlinks
+-        install(
+-            FILES
+-            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}.so
+-            ${CMAKE_CURRENT_BINARY_DIR}/lib${target}-${LIBVER}.so.0
+-            DESTINATION ${GR_LIBRARY_DIR} COMPONENT ${GR_LIBRARY_RUNTIME_COMPONENT}
+-        )
+-
+-    endif(LIBRARY_EXTRAS)
+-endfunction(GR_LIBRARY_FOO)
+-
+-########################################################################
+-# Create a dummy custom command that depends on other targets.
+-# Usage:
+-#   GR_GEN_TARGET_DEPS(unique_name target_deps <target1> <target2> ...)
+-#   ADD_CUSTOM_COMMAND(<the usual args> ${target_deps})
+-#
+-# Custom command cant depend on targets, but can depend on executables,
+-# and executables can depend on targets. So this is the process:
+-########################################################################
+-function(GR_GEN_TARGET_DEPS name var)
+-    file(
+-        WRITE ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
+-        "int main(void){return 0;}\n"
+-    )
+-    execute_process(
+-        COMMAND ${CMAKE_COMMAND} -E copy_if_different
+-        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp.in
+-        ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp
+-    )
+-    add_executable(${name} ${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp)
+-    if(ARGN)
+-        add_dependencies(${name} ${ARGN})
+-    endif(ARGN)
+-
+-    if(CMAKE_CROSSCOMPILING)
+-        set(${var} "DEPENDS;${name}" PARENT_SCOPE) #cant call command when cross
+-    else()
+-        set(${var} "DEPENDS;${name};COMMAND;${name}" PARENT_SCOPE)
+-    endif()
+-endfunction(GR_GEN_TARGET_DEPS)
+-
+-########################################################################
+-# Control use of gr_logger
+-# Usage:
+-#   GR_LOGGING()
+-#
+-# Will set ENABLE_GR_LOG to 1 by default.
+-# Can manually set with -DENABLE_GR_LOG=0|1
+-########################################################################
+-function(GR_LOGGING)
+-  find_package(Log4cpp)
+-
+-  OPTION(ENABLE_GR_LOG "Use gr_logger" ON)
+-  if(ENABLE_GR_LOG)
+-    # If gr_logger is enabled, make it usable
+-    add_definitions( -DENABLE_GR_LOG )
+-
+-    # also test LOG4CPP; if we have it, use this version of the logger
+-    # otherwise, default to the stdout/stderr model.
+-    if(LOG4CPP_FOUND)
+-      SET(HAVE_LOG4CPP True CACHE INTERNAL "" FORCE)
+-      add_definitions( -DHAVE_LOG4CPP )
+-    else(not LOG4CPP_FOUND)
+-      SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
+-      SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
+-    endif(LOG4CPP_FOUND)
+-
+-    SET(ENABLE_GR_LOG ${ENABLE_GR_LOG} CACHE INTERNAL "" FORCE)
+-
+-  else(ENABLE_GR_LOG)
+-    SET(HAVE_LOG4CPP False CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_LIBRARY_DIRS "" CACHE INTERNAL "" FORCE)
+-    SET(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
+-  endif(ENABLE_GR_LOG)
+-
+-  message(STATUS "ENABLE_GR_LOG set to ${ENABLE_GR_LOG}.")
+-  message(STATUS "HAVE_LOG4CPP set to ${HAVE_LOG4CPP}.")
+-  message(STATUS "LOG4CPP_LIBRARIES set to ${LOG4CPP_LIBRARIES}.")
+-
+-endfunction(GR_LOGGING)
+-
+-########################################################################
+-# Run GRCC to compile .grc files into .py files.
+-#
+-# Usage: GRCC(filename, directory)
+-#    - filenames: List of file name of .grc file
+-#    - directory: directory of built .py file - usually in
+-#                 ${CMAKE_CURRENT_BINARY_DIR}
+-#    - Sets PYFILES: output converted GRC file names to Python files.
+-########################################################################
+-function(GRCC)
+-  # Extract directory from list of args, remove it for the list of filenames.
+-  list(GET ARGV -1 directory)
+-  list(REMOVE_AT ARGV -1)
+-  set(filenames ${ARGV})
+-  file(MAKE_DIRECTORY ${directory})
+-
+-  SET(GRCC_COMMAND ${CMAKE_SOURCE_DIR}/gr-utils/python/grcc)
+-
+-  # GRCC uses some stuff in grc and gnuradio-runtime, so we force
+-  # the known paths here
+-  list(APPEND PYTHONPATHS
+-    ${CMAKE_SOURCE_DIR}
+-    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/python
+-    ${CMAKE_SOURCE_DIR}/gnuradio-runtime/lib/swig
+-    ${CMAKE_BINARY_DIR}/gnuradio-runtime/lib/swig
+-    )
+-
+-  if(WIN32)
+-    #SWIG generates the python library files into a subdirectory.
+-    #Therefore, we must append this subdirectory into PYTHONPATH.
+-    #Only do this for the python directories matching the following:
+-    foreach(pydir ${PYTHONPATHS})
+-      get_filename_component(name ${pydir} NAME)
+-      if(name MATCHES "^(swig|lib|src)$")
+-        list(APPEND PYTHONPATHS ${pydir}/${CMAKE_BUILD_TYPE})
+-      endif()
+-    endforeach(pydir)
+-  endif(WIN32)
+-
+-  file(TO_NATIVE_PATH "${PYTHONPATHS}" pypath)
+-
+-  if(UNIX)
+-    list(APPEND pypath "$PYTHONPATH")
+-    string(REPLACE ";" ":" pypath "${pypath}")
+-    set(ENV{PYTHONPATH} ${pypath})
+-  endif(UNIX)
+-
+-  if(WIN32)
+-    list(APPEND pypath "%PYTHONPATH%")
+-    string(REPLACE ";" "\\;" pypath "${pypath}")
+-    #list(APPEND environs "PYTHONPATH=${pypath}")
+-    set(ENV{PYTHONPATH} ${pypath})
+-  endif(WIN32)
+-
+-  foreach(f ${filenames})
+-    execute_process(
+-      COMMAND ${GRCC_COMMAND} -d ${directory} ${f}
+-      )
+-    string(REPLACE ".grc" ".py" pyfile "${f}")
+-    string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" pyfile "${pyfile}")
+-    list(APPEND pyfiles ${pyfile})
+-  endforeach(f)
+-
+-  set(PYFILES ${pyfiles} PARENT_SCOPE)
+-endfunction(GRCC)
+-
+-########################################################################
+-# Check if HAVE_PTHREAD_SETSCHEDPARAM and HAVE_SCHED_SETSCHEDULER
+-#  should be defined
+-########################################################################
+-macro(GR_CHECK_LINUX_SCHED_AVAIL)
+-set(CMAKE_REQUIRED_LIBRARIES -lpthread)
+-    CHECK_CXX_SOURCE_COMPILES("
+-        #include <pthread.h>
+-        int main(){
+-            pthread_t pthread;
+-            pthread_setschedparam(pthread,  0, 0);
+-            return 0;
+-        } " HAVE_PTHREAD_SETSCHEDPARAM
+-    )
+-    GR_ADD_COND_DEF(HAVE_PTHREAD_SETSCHEDPARAM)
+-
+-    CHECK_CXX_SOURCE_COMPILES("
+-        #include <sched.h>
+-        int main(){
+-            pid_t pid;
+-            sched_setscheduler(pid, 0, 0);
+-            return 0;
+-        } " HAVE_SCHED_SETSCHEDULER
+-    )
+-    GR_ADD_COND_DEF(HAVE_SCHED_SETSCHEDULER)
+-endmacro(GR_CHECK_LINUX_SCHED_AVAIL)
+-
+-########################################################################
+-# Macros to generate source and header files from template
+-########################################################################
+-macro(GR_EXPAND_X_H component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-sys.path.append('${CMAKE_SOURCE_DIR}/python')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_dict2(name, sig, '${component}')
+-        build_utils.expand_template(d, inp)
+-")
+-
+-  #make a list of all the generated headers
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the headers
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.h.t ${ARGN}
+-  )
+-
+-  #install rules for the generated headers
+-  list(APPEND generated_includes ${expanded_files_h})
+-
+-endmacro(GR_EXPAND_X_H)
+-
+-macro(GR_EXPAND_X_CC_H component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-sys.path.append('${CMAKE_SOURCE_DIR}/python')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_impl_dict2(name, sig, '${component}')
+-        build_utils.expand_template(d, inp)
+-")
+-
+-  #make a list of all the generated files
+-  unset(expanded_files_cc)
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_cc ${CMAKE_CURRENT_BINARY_DIR}/${name}.cc)
+-    list(APPEND expanded_files_h  ${CMAKE_CURRENT_BINARY_DIR}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the source files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_cc}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.cc.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.cc.t ${ARGN}
+-  )
+-
+-  #create a command to generate the header files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}.h.t ${ARGN}
+-  )
+-
+-  #make source files depends on headers to force generation
+-  set_source_files_properties(${expanded_files_cc}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
+-  )
+-
+-  #install rules for the generated files
+-  list(APPEND generated_sources ${expanded_files_cc})
+-  list(APPEND generated_headers ${expanded_files_h})
+-
+-endmacro(GR_EXPAND_X_CC_H)
+-
+-macro(GR_EXPAND_X_CC_H_IMPL component root)
+-
+-  include(GrPython)
+-
+-  file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-"#!${PYTHON_EXECUTABLE}
+-
+-import sys, os, re
+-sys.path.append('${GR_RUNTIME_PYTHONPATH}')
+-sys.path.append('${CMAKE_SOURCE_DIR}/python')
+-os.environ['srcdir'] = '${CMAKE_CURRENT_SOURCE_DIR}'
+-os.chdir('${CMAKE_CURRENT_BINARY_DIR}')
+-
+-if __name__ == '__main__':
+-    import build_utils
+-    root, inp = sys.argv[1:3]
+-    for sig in sys.argv[3:]:
+-        name = re.sub ('X+', sig, root)
+-        d = build_utils.standard_dict(name, sig, '${component}')
+-        build_utils.expand_template(d, inp, '_impl')
+-")
+-
+-  #make a list of all the generated files
+-  unset(expanded_files_cc_impl)
+-  unset(expanded_files_h_impl)
+-  unset(expanded_files_h)
+-  foreach(sig ${ARGN})
+-    string(REGEX REPLACE "X+" ${sig} name ${root})
+-    list(APPEND expanded_files_cc_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.cc)
+-    list(APPEND expanded_files_h_impl ${CMAKE_CURRENT_BINARY_DIR}/${name}_impl.h)
+-    list(APPEND expanded_files_h ${CMAKE_CURRENT_BINARY_DIR}/../include/gnuradio/${component}/${name}.h)
+-  endforeach(sig)
+-  unset(name)
+-
+-  #create a command to generate the _impl.cc files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_cc_impl}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.cc.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}_impl.cc.t ${ARGN}
+-  )
+-
+-  #create a command to generate the _impl.h files
+-  add_custom_command(
+-    OUTPUT ${expanded_files_h_impl}
+-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${root}_impl.h.t
+-    COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-    ${CMAKE_CURRENT_BINARY_DIR}/generate_helper.py
+-    ${root} ${root}_impl.h.t ${ARGN}
+-  )
+-
+-  #make _impl.cc source files depend on _impl.h to force generation
+-  set_source_files_properties(${expanded_files_cc_impl}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h_impl}"
+-  )
+-
+-  #make _impl.h source files depend on headers to force generation
+-  set_source_files_properties(${expanded_files_h_impl}
+-    PROPERTIES OBJECT_DEPENDS "${expanded_files_h}"
+-  )
+-
+-  #install rules for the generated files
+-  list(APPEND generated_sources ${expanded_files_cc_impl})
+-  list(APPEND generated_headers ${expanded_files_h_impl})
+-
+-endmacro(GR_EXPAND_X_CC_H_IMPL)
+diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake
+deleted file mode 100644
+index 00a53d0..0000000
+--- cmake/Modules/GrPlatform.cmake
++++ /dev/null
+@@ -1,62 +0,0 @@
+-# Copyright 2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_PLATFORM_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_PLATFORM_CMAKE TRUE)
+-
+-########################################################################
+-# Setup additional defines for OS types
+-########################################################################
+-if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+-    set(LINUX TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version")
+-    set(DEBIAN TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release")
+-    set(REDHAT TRUE)
+-endif()
+-
+-if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/slackware-version")
+-    set(SLACKWARE TRUE)
+-endif()
+-
+-########################################################################
+-# when the library suffix should be 64 (applies to redhat linux family)
+-########################################################################
+-if (REDHAT OR SLACKWARE)
+-    set(LIB64_CONVENTION TRUE)
+-endif()
+-
+-if(NOT DEFINED LIB_SUFFIX AND LIB64_CONVENTION AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$")
+-    set(LIB_SUFFIX 64)
+-endif()
+-
+-########################################################################
+-# Detect /lib versus /lib64
+-########################################################################
+-if (CMAKE_INSTALL_LIBDIR MATCHES lib64)
+-    set(LIB_SUFFIX 64)
+-endif()
+-
+-set(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix")
+diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
+deleted file mode 100644
+index 06e061e..0000000
+--- cmake/Modules/GrPython.cmake
++++ /dev/null
+@@ -1,241 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_PYTHON_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_PYTHON_CMAKE TRUE)
+-
+-########################################################################
+-# Setup the python interpreter:
+-# This allows the user to specify a specific interpreter,
+-# or finds the interpreter via the built-in cmake module.
+-########################################################################
+-#this allows the user to override PYTHON_EXECUTABLE
+-if(PYTHON_EXECUTABLE)
+-
+-    set(PYTHONINTERP_FOUND TRUE)
+-
+-#otherwise if not set, try to automatically find it
+-else(PYTHON_EXECUTABLE)
+-
+-    #use the built-in find script
+-    find_package(PythonInterp 2)
+-
+-    #and if that fails use the find program routine
+-    if(NOT PYTHONINTERP_FOUND)
+-        find_program(PYTHON_EXECUTABLE NAMES python python2 python2.7 python2.6 python2.5)
+-        if(PYTHON_EXECUTABLE)
+-            set(PYTHONINTERP_FOUND TRUE)
+-        endif(PYTHON_EXECUTABLE)
+-    endif(NOT PYTHONINTERP_FOUND)
+-
+-endif(PYTHON_EXECUTABLE)
+-
+-if (CMAKE_CROSSCOMPILING)
+-    set(QA_PYTHON_EXECUTABLE "/usr/bin/python")
+-else (CMAKE_CROSSCOMPILING)
+-    set(QA_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
+-endif(CMAKE_CROSSCOMPILING)
+-
+-#make the path to the executable appear in the cmake gui
+-set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter")
+-set(QA_PYTHON_EXECUTABLE ${QA_PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter for QA tests")
+-
+-#make sure we can use -B with python (introduced in 2.6)
+-if(PYTHON_EXECUTABLE)
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE} -B -c ""
+-        OUTPUT_QUIET ERROR_QUIET
+-        RESULT_VARIABLE PYTHON_HAS_DASH_B_RESULT
+-    )
+-    if(PYTHON_HAS_DASH_B_RESULT EQUAL 0)
+-        set(PYTHON_DASH_B "-B")
+-    endif()
+-endif(PYTHON_EXECUTABLE)
+-
+-########################################################################
+-# Check for the existence of a python module:
+-# - desc a string description of the check
+-# - mod the name of the module to import
+-# - cmd an additional command to run
+-# - have the result variable to set
+-########################################################################
+-macro(GR_PYTHON_CHECK_MODULE desc mod cmd have)
+-    message(STATUS "")
+-    message(STATUS "Python checking for ${desc}")
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE} -c "
+-#########################################
+-try:
+-    import ${mod}
+-    assert ${cmd}
+-except ImportError, AssertionError: exit(-1)
+-except: pass
+-#########################################"
+-        RESULT_VARIABLE ${have}
+-    )
+-    if(${have} EQUAL 0)
+-        message(STATUS "Python checking for ${desc} - found")
+-        set(${have} TRUE)
+-    else(${have} EQUAL 0)
+-        message(STATUS "Python checking for ${desc} - not found")
+-        set(${have} FALSE)
+-    endif(${have} EQUAL 0)
+-endmacro(GR_PYTHON_CHECK_MODULE)
+-
+-########################################################################
+-# Sets the python installation directory GR_PYTHON_DIR
+-########################################################################
+-if(NOT DEFINED GR_PYTHON_DIR)
+-execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "
+-from distutils import sysconfig
+-print sysconfig.get_python_lib(plat_specific=True, prefix='')
+-" OUTPUT_VARIABLE GR_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
+-)
+-endif()
+-file(TO_CMAKE_PATH ${GR_PYTHON_DIR} GR_PYTHON_DIR)
+-
+-########################################################################
+-# Create an always-built target with a unique name
+-# Usage: GR_UNIQUE_TARGET(<description> <dependencies list>)
+-########################################################################
+-function(GR_UNIQUE_TARGET desc)
+-    file(RELATIVE_PATH reldir ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
+-    execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import re, hashlib
+-unique = hashlib.md5('${reldir}${ARGN}').hexdigest()[:5]
+-print(re.sub('\\W', '_', '${desc} ${reldir} ' + unique))"
+-    OUTPUT_VARIABLE _target OUTPUT_STRIP_TRAILING_WHITESPACE)
+-    add_custom_target(${_target} ALL DEPENDS ${ARGN})
+-endfunction(GR_UNIQUE_TARGET)
+-
+-########################################################################
+-# Install python sources (also builds and installs byte-compiled python)
+-########################################################################
+-function(GR_PYTHON_INSTALL)
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_PYTHON_INSTALL "" "DESTINATION;COMPONENT" "FILES;PROGRAMS" ${ARGN})
+-
+-    ####################################################################
+-    if(GR_PYTHON_INSTALL_FILES)
+-    ####################################################################
+-        install(${ARGN}) #installs regular python files
+-
+-        #create a list of all generated files
+-        unset(pysrcfiles)
+-        unset(pycfiles)
+-        unset(pyofiles)
+-        foreach(pyfile ${GR_PYTHON_INSTALL_FILES})
+-            get_filename_component(pyfile ${pyfile} ABSOLUTE)
+-            list(APPEND pysrcfiles ${pyfile})
+-
+-            #determine if this file is in the source or binary directory
+-            file(RELATIVE_PATH source_rel_path ${CMAKE_CURRENT_SOURCE_DIR} ${pyfile})
+-            string(LENGTH "${source_rel_path}" source_rel_path_len)
+-            file(RELATIVE_PATH binary_rel_path ${CMAKE_CURRENT_BINARY_DIR} ${pyfile})
+-            string(LENGTH "${binary_rel_path}" binary_rel_path_len)
+-
+-            #and set the generated path appropriately
+-            if(${source_rel_path_len} GREATER ${binary_rel_path_len})
+-                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${binary_rel_path})
+-            else()
+-                set(pygenfile ${CMAKE_CURRENT_BINARY_DIR}/${source_rel_path})
+-            endif()
+-            list(APPEND pycfiles ${pygenfile}c)
+-            list(APPEND pyofiles ${pygenfile}o)
+-
+-            #ensure generation path exists
+-            get_filename_component(pygen_path ${pygenfile} PATH)
+-            file(MAKE_DIRECTORY ${pygen_path})
+-
+-        endforeach(pyfile)
+-
+-        #the command to generate the pyc files
+-        add_custom_command(
+-            DEPENDS ${pysrcfiles} OUTPUT ${pycfiles}
+-            COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pycfiles}
+-        )
+-
+-        #the command to generate the pyo files
+-        add_custom_command(
+-            DEPENDS ${pysrcfiles} OUTPUT ${pyofiles}
+-            COMMAND ${PYTHON_EXECUTABLE} -O ${CMAKE_BINARY_DIR}/python_compile_helper.py ${pysrcfiles} ${pyofiles}
+-        )
+-
+-        #create install rule and add generated files to target list
+-        set(python_install_gen_targets ${pycfiles} ${pyofiles})
+-        install(FILES ${python_install_gen_targets}
+-            DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
+-            COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
+-        )
+-
+-    ####################################################################
+-    elseif(GR_PYTHON_INSTALL_PROGRAMS)
+-    ####################################################################
+-        file(TO_NATIVE_PATH ${PYTHON_EXECUTABLE} pyexe_native)
+-
+-        if (CMAKE_CROSSCOMPILING)
+-           set(pyexe_native "/usr/bin/env python")
+-        endif()
+-
+-        foreach(pyfile ${GR_PYTHON_INSTALL_PROGRAMS})
+-            get_filename_component(pyfile_name ${pyfile} NAME)
+-            get_filename_component(pyfile ${pyfile} ABSOLUTE)
+-            string(REPLACE "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" pyexefile "${pyfile}.exe")
+-            list(APPEND python_install_gen_targets ${pyexefile})
+-
+-            get_filename_component(pyexefile_path ${pyexefile} PATH)
+-            file(MAKE_DIRECTORY ${pyexefile_path})
+-
+-            add_custom_command(
+-                OUTPUT ${pyexefile} DEPENDS ${pyfile}
+-                COMMAND ${PYTHON_EXECUTABLE} -c
+-                "import re; R=re.compile('^\#!.*$\\n',flags=re.MULTILINE); open('${pyexefile}','w').write('\#!${pyexe_native}\\n'+R.sub('',open('${pyfile}','r').read()))"
+-                COMMENT "Shebangin ${pyfile_name}"
+-                VERBATIM
+-            )
+-
+-            #on windows, python files need an extension to execute
+-            get_filename_component(pyfile_ext ${pyfile} EXT)
+-            if(WIN32 AND NOT pyfile_ext)
+-                set(pyfile_name "${pyfile_name}.py")
+-            endif()
+-
+-            install(PROGRAMS ${pyexefile} RENAME ${pyfile_name}
+-                DESTINATION ${GR_PYTHON_INSTALL_DESTINATION}
+-                COMPONENT ${GR_PYTHON_INSTALL_COMPONENT}
+-            )
+-        endforeach(pyfile)
+-
+-    endif()
+-
+-    GR_UNIQUE_TARGET("pygen" ${python_install_gen_targets})
+-
+-endfunction(GR_PYTHON_INSTALL)
+-
+-########################################################################
+-# Write the python helper script that generates byte code files
+-########################################################################
+-file(WRITE ${CMAKE_BINARY_DIR}/python_compile_helper.py "
+-import sys, py_compile
+-files = sys.argv[1:]
+-srcs, gens = files[:len(files)/2], files[len(files)/2:]
+-for src, gen in zip(srcs, gens):
+-    py_compile.compile(file=src, cfile=gen, doraise=True)
+-")
+diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
+deleted file mode 100644
+index 33f37d2..0000000
+--- cmake/Modules/GrSwig.cmake
++++ /dev/null
+@@ -1,256 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_SWIG_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_SWIG_CMAKE TRUE)
+-
+-include(GrPython)
+-
+-########################################################################
+-# Builds a swig documentation file to be generated into python docstrings
+-# Usage: GR_SWIG_MAKE_DOCS(output_file input_path input_path....)
+-#
+-# Set the following variable to specify extra dependent targets:
+-#   - GR_SWIG_DOCS_SOURCE_DEPS
+-#   - GR_SWIG_DOCS_TARGET_DEPS
+-########################################################################
+-function(GR_SWIG_MAKE_DOCS output_file)
+-    if(ENABLE_DOXYGEN)
+-
+-        #setup the input files variable list, quote formated
+-        set(input_files)
+-        unset(INPUT_PATHS)
+-        foreach(input_path ${ARGN})
+-            if(IS_DIRECTORY ${input_path}) #when input path is a directory
+-                file(GLOB input_path_h_files ${input_path}/*.h)
+-            else() #otherwise its just a file, no glob
+-                set(input_path_h_files ${input_path})
+-            endif()
+-            list(APPEND input_files ${input_path_h_files})
+-            set(INPUT_PATHS "${INPUT_PATHS} \"${input_path}\"")
+-        endforeach(input_path)
+-
+-        #determine the output directory
+-        get_filename_component(name ${output_file} NAME_WE)
+-        get_filename_component(OUTPUT_DIRECTORY ${output_file} PATH)
+-        set(OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/${name}_swig_docs)
+-        make_directory(${OUTPUT_DIRECTORY})
+-
+-        #generate the Doxyfile used by doxygen
+-        configure_file(
+-            ${CMAKE_SOURCE_DIR}/docs/doxygen/Doxyfile.swig_doc.in
+-            ${OUTPUT_DIRECTORY}/Doxyfile
+-        @ONLY)
+-
+-        #Create a dummy custom command that depends on other targets
+-        include(GrMiscUtils)
+-        GR_GEN_TARGET_DEPS(_${name}_tag tag_deps ${GR_SWIG_DOCS_TARGET_DEPS})
+-
+-        #call doxygen on the Doxyfile + input headers
+-        add_custom_command(
+-            OUTPUT ${OUTPUT_DIRECTORY}/xml/index.xml
+-            DEPENDS ${input_files} ${GR_SWIG_DOCS_SOURCE_DEPS} ${tag_deps}
+-            COMMAND ${DOXYGEN_EXECUTABLE} ${OUTPUT_DIRECTORY}/Doxyfile
+-            COMMENT "Generating doxygen xml for ${name} docs"
+-        )
+-
+-        #call the swig_doc script on the xml files
+-        add_custom_command(
+-            OUTPUT ${output_file}
+-            DEPENDS ${input_files} ${stamp-file} ${OUTPUT_DIRECTORY}/xml/index.xml
+-            COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
+-                ${CMAKE_SOURCE_DIR}/docs/doxygen/swig_doc.py
+-                ${OUTPUT_DIRECTORY}/xml
+-                ${output_file}
+-            COMMENT "Generating python docstrings for ${name}"
+-            WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs/doxygen
+-        )
+-
+-    else(ENABLE_DOXYGEN)
+-        file(WRITE ${output_file} "\n") #no doxygen -> empty file
+-    endif(ENABLE_DOXYGEN)
+-endfunction(GR_SWIG_MAKE_DOCS)
+-
+-########################################################################
+-# Build a swig target for the common gnuradio use case. Usage:
+-# GR_SWIG_MAKE(target ifile ifile ifile...)
+-#
+-# Set the following variables before calling:
+-#   - GR_SWIG_FLAGS
+-#   - GR_SWIG_INCLUDE_DIRS
+-#   - GR_SWIG_LIBRARIES
+-#   - GR_SWIG_SOURCE_DEPS
+-#   - GR_SWIG_TARGET_DEPS
+-#   - GR_SWIG_DOC_FILE
+-#   - GR_SWIG_DOC_DIRS
+-########################################################################
+-macro(GR_SWIG_MAKE name)
+-    set(ifiles ${ARGN})
+-
+-    # Shimming this in here to take care of a SWIG bug with handling
+-    # vector<size_t> and vector<unsigned int> (on 32-bit machines) and
+-    # vector<long unsigned int> (on 64-bit machines). Use this to test
+-    # the size of size_t, then set SIZE_T_32 if it's a 32-bit machine
+-    # or not if it's 64-bit. The logic in gr_type.i handles the rest.
+-    INCLUDE(CheckTypeSize)
+-    CHECK_TYPE_SIZE("size_t" SIZEOF_SIZE_T)
+-    CHECK_TYPE_SIZE("unsigned int" SIZEOF_UINT)
+-    if(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
+-      list(APPEND GR_SWIG_FLAGS -DSIZE_T_32)
+-    endif(${SIZEOF_SIZE_T} EQUAL ${SIZEOF_UINT})
+-
+-    #do swig doc generation if specified
+-    if(GR_SWIG_DOC_FILE)
+-        set(GR_SWIG_DOCS_SOURCE_DEPS ${GR_SWIG_SOURCE_DEPS})
+-        list(APPEND GR_SWIG_DOCS_TARGET_DEPS ${GR_SWIG_TARGET_DEPS})
+-        GR_SWIG_MAKE_DOCS(${GR_SWIG_DOC_FILE} ${GR_SWIG_DOC_DIRS})
+-        add_custom_target(${name}_swig_doc DEPENDS ${GR_SWIG_DOC_FILE})
+-        list(APPEND GR_SWIG_TARGET_DEPS ${name}_swig_doc ${GR_RUNTIME_SWIG_DOC_FILE})
+-    endif()
+-
+-    #append additional include directories
+-    find_package(PythonLibs 2)
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_PATH}) #deprecated name (now dirs)
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
+-
+-    #prepend local swig directories
+-    list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_SOURCE_DIR})
+-    list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_BINARY_DIR})
+-
+-    #determine include dependencies for swig file
+-    execute_process(
+-        COMMAND ${PYTHON_EXECUTABLE}
+-            ${CMAKE_BINARY_DIR}/get_swig_deps.py
+-            "${ifiles}" "${GR_SWIG_INCLUDE_DIRS}"
+-        OUTPUT_STRIP_TRAILING_WHITESPACE
+-        OUTPUT_VARIABLE SWIG_MODULE_${name}_EXTRA_DEPS
+-        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+-    )
+-
+-    #Create a dummy custom command that depends on other targets
+-    include(GrMiscUtils)
+-    GR_GEN_TARGET_DEPS(_${name}_swig_tag tag_deps ${GR_SWIG_TARGET_DEPS})
+-    set(tag_file ${CMAKE_CURRENT_BINARY_DIR}/${name}.tag)
+-    add_custom_command(
+-        OUTPUT ${tag_file}
+-        DEPENDS ${GR_SWIG_SOURCE_DEPS} ${tag_deps}
+-        COMMAND ${CMAKE_COMMAND} -E touch ${tag_file}
+-    )
+-
+-    #append the specified include directories
+-    include_directories(${GR_SWIG_INCLUDE_DIRS})
+-    list(APPEND SWIG_MODULE_${name}_EXTRA_DEPS ${tag_file})
+-
+-    #setup the swig flags with flags and include directories
+-    set(CMAKE_SWIG_FLAGS -fvirtual -modern -keyword -w511 -module ${name} ${GR_SWIG_FLAGS})
+-    foreach(dir ${GR_SWIG_INCLUDE_DIRS})
+-        list(APPEND CMAKE_SWIG_FLAGS "-I${dir}")
+-    endforeach(dir)
+-
+-    #set the C++ property on the swig .i file so it builds
+-    set_source_files_properties(${ifiles} PROPERTIES CPLUSPLUS ON)
+-
+-    #setup the actual swig library target to be built
+-    include(UseSWIG)
+-    SWIG_ADD_MODULE(${name} python ${ifiles})
+-    if(APPLE)
+-      set(PYTHON_LINK_OPTIONS "-undefined dynamic_lookup")
+-    else()
+-      set(PYTHON_LINK_OPTIONS ${PYTHON_LIBRARIES})
+-    endif(APPLE)
+-    SWIG_LINK_LIBRARIES(${name} ${PYTHON_LINK_OPTIONS} ${GR_SWIG_LIBRARIES})
+-    if(${name} STREQUAL "runtime_swig")
+-        SET_TARGET_PROPERTIES(${SWIG_MODULE_runtime_swig_REAL_NAME} PROPERTIES DEFINE_SYMBOL "gnuradio_runtime_EXPORTS")
+-    endif(${name} STREQUAL "runtime_swig")
+-
+-endmacro(GR_SWIG_MAKE)
+-
+-########################################################################
+-# Install swig targets generated by GR_SWIG_MAKE. Usage:
+-# GR_SWIG_INSTALL(
+-#   TARGETS target target target...
+-#   [DESTINATION destination]
+-#   [COMPONENT component]
+-# )
+-########################################################################
+-macro(GR_SWIG_INSTALL)
+-
+-    include(CMakeParseArgumentsCopy)
+-    CMAKE_PARSE_ARGUMENTS(GR_SWIG_INSTALL "" "DESTINATION;COMPONENT" "TARGETS" ${ARGN})
+-
+-    foreach(name ${GR_SWIG_INSTALL_TARGETS})
+-        install(TARGETS ${SWIG_MODULE_${name}_REAL_NAME}
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-            COMPONENT ${GR_SWIG_INSTALL_COMPONENT}
+-        )
+-
+-        include(GrPython)
+-        GR_PYTHON_INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name}.py
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-            COMPONENT ${GR_SWIG_INSTALL_COMPONENT}
+-        )
+-
+-        GR_LIBTOOL(
+-            TARGET ${SWIG_MODULE_${name}_REAL_NAME}
+-            DESTINATION ${GR_SWIG_INSTALL_DESTINATION}
+-        )
+-
+-    endforeach(name)
+-
+-endmacro(GR_SWIG_INSTALL)
+-
+-########################################################################
+-# Generate a python file that can determine swig dependencies.
+-# Used by the make macro above to determine extra dependencies.
+-# When you build C++, CMake figures out the header dependencies.
+-# This code essentially performs that logic for swig includes.
+-########################################################################
+-file(WRITE ${CMAKE_BINARY_DIR}/get_swig_deps.py "
+-
+-import os, sys, re
+-
+-i_include_matcher = re.compile('%(include|import)\\s*[<|\"](.*)[>|\"]')
+-h_include_matcher = re.compile('#(include)\\s*[<|\"](.*)[>|\"]')
+-include_dirs = sys.argv[2].split(';')
+-
+-def get_swig_incs(file_path):
+-    if file_path.endswith('.i'): matcher = i_include_matcher
+-    else: matcher = h_include_matcher
+-    file_contents = open(file_path, 'r').read()
+-    return matcher.findall(file_contents, re.MULTILINE)
+-
+-def get_swig_deps(file_path, level):
+-    deps = [file_path]
+-    if level == 0: return deps
+-    for keyword, inc_file in get_swig_incs(file_path):
+-        for inc_dir in include_dirs:
+-            inc_path = os.path.join(inc_dir, inc_file)
+-            if not os.path.exists(inc_path): continue
+-            deps.extend(get_swig_deps(inc_path, level-1))
+-            break #found, we dont search in lower prio inc dirs
+-    return deps
+-
+-if __name__ == '__main__':
+-    ifiles = sys.argv[1].split(';')
+-    deps = sum([get_swig_deps(ifile, 3) for ifile in ifiles], [])
+-    #sys.stderr.write(';'.join(set(deps)) + '\\n\\n')
+-    print(';'.join(set(deps)))
+-")
+diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
+deleted file mode 100644
+index 62caab4..0000000
+--- cmake/Modules/GrTest.cmake
++++ /dev/null
+@@ -1,143 +0,0 @@
+-# Copyright 2010-2011 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-
+-if(DEFINED __INCLUDED_GR_TEST_CMAKE)
+-    return()
+-endif()
+-set(__INCLUDED_GR_TEST_CMAKE TRUE)
+-
+-########################################################################
+-# Add a unit test and setup the environment for a unit test.
+-# Takes the same arguments as the ADD_TEST function.
+-#
+-# Before calling set the following variables:
+-# GR_TEST_TARGET_DEPS  - built targets for the library path
+-# GR_TEST_LIBRARY_DIRS - directories for the library path
+-# GR_TEST_PYTHON_DIRS  - directories for the python path
+-# GR_TEST_ENVIRONS  - other environment key/value pairs
+-########################################################################
+-function(GR_ADD_TEST test_name)
+-
+-        #Ensure that the build exe also appears in the PATH.
+-        list(APPEND GR_TEST_TARGET_DEPS ${ARGN})
+-
+-        #In the land of windows, all libraries must be in the PATH.
+-        #Since the dependent libraries are not yet installed,
+-        #we must manually set them in the PATH to run tests.
+-        #The following appends the path of a target dependency.
+-        foreach(target ${GR_TEST_TARGET_DEPS})
+-            get_target_property(location ${target} LOCATION)
+-            if(location)
+-                get_filename_component(path ${location} PATH)
+-                string(REGEX REPLACE "\\$\\(.*\\)" ${CMAKE_BUILD_TYPE} path ${path})
+-                list(APPEND GR_TEST_LIBRARY_DIRS ${path})
+-            endif(location)
+-        endforeach(target)
+-
+-    if(WIN32)
+-        #SWIG generates the python library files into a subdirectory.
+-        #Therefore, we must append this subdirectory into PYTHONPATH.
+-        #Only do this for the python directories matching the following:
+-        foreach(pydir ${GR_TEST_PYTHON_DIRS})
+-            get_filename_component(name ${pydir} NAME)
+-            if(name MATCHES "^(swig|lib|src)$")
+-                list(APPEND GR_TEST_PYTHON_DIRS ${pydir}/${CMAKE_BUILD_TYPE})
+-            endif()
+-        endforeach(pydir)
+-    endif(WIN32)
+-
+-    file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} srcdir)
+-    file(TO_NATIVE_PATH "${GR_TEST_LIBRARY_DIRS}" libpath) #ok to use on dir list?
+-    file(TO_NATIVE_PATH "${GR_TEST_PYTHON_DIRS}" pypath) #ok to use on dir list?
+-
+-    set(environs "VOLK_GENERIC=1" "GR_DONT_LOAD_PREFS=1" "srcdir=${srcdir}")
+-    list(APPEND environs ${GR_TEST_ENVIRONS})
+-
+-    #http://www.cmake.org/pipermail/cmake/2009-May/029464.html
+-    #Replaced this add test + set environs code with the shell script generation.
+-    #Its nicer to be able to manually run the shell script to diagnose problems.
+-    #ADD_TEST(${ARGV})
+-    #SET_TESTS_PROPERTIES(${test_name} PROPERTIES ENVIRONMENT "${environs}")
+-
+-    if(UNIX)
+-        set(LD_PATH_VAR "LD_LIBRARY_PATH")
+-        if(APPLE)
+-            set(LD_PATH_VAR "DYLD_LIBRARY_PATH")
+-        endif()
+-
+-        set(binpath "${CMAKE_CURRENT_BINARY_DIR}:$PATH")
+-        list(APPEND libpath "$${LD_PATH_VAR}")
+-        list(APPEND pypath "$PYTHONPATH")
+-
+-        #replace list separator with the path separator
+-        string(REPLACE ";" ":" libpath "${libpath}")
+-        string(REPLACE ";" ":" pypath "${pypath}")
+-        list(APPEND environs "PATH=${binpath}" "${LD_PATH_VAR}=${libpath}" "PYTHONPATH=${pypath}")
+-
+-        #generate a bat file that sets the environment and runs the test
+-	if (CMAKE_CROSSCOMPILING)
+-                set(SHELL "/bin/sh")
+-        else(CMAKE_CROSSCOMPILING)
+-                find_program(SHELL sh)
+-        endif(CMAKE_CROSSCOMPILING)
+-        set(sh_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.sh)
+-        file(WRITE ${sh_file} "#!${SHELL}\n")
+-        #each line sets an environment variable
+-        foreach(environ ${environs})
+-            file(APPEND ${sh_file} "export ${environ}\n")
+-        endforeach(environ)
+-        #load the command to run with its arguments
+-        foreach(arg ${ARGN})
+-            file(APPEND ${sh_file} "${arg} ")
+-        endforeach(arg)
+-        file(APPEND ${sh_file} "\n")
+-
+-        #make the shell file executable
+-        execute_process(COMMAND chmod +x ${sh_file})
+-
+-        add_test(${test_name} ${SHELL} ${sh_file})
+-
+-    endif(UNIX)
+-
+-    if(WIN32)
+-        list(APPEND libpath ${DLL_PATHS} "%PATH%")
+-        list(APPEND pypath "%PYTHONPATH%")
+-
+-        #replace list separator with the path separator (escaped)
+-        string(REPLACE ";" "\\;" libpath "${libpath}")
+-        string(REPLACE ";" "\\;" pypath "${pypath}")
+-        list(APPEND environs "PATH=${libpath}" "PYTHONPATH=${pypath}")
+-
+-        #generate a bat file that sets the environment and runs the test
+-        set(bat_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.bat)
+-        file(WRITE ${bat_file} "@echo off\n")
+-        #each line sets an environment variable
+-        foreach(environ ${environs})
+-            file(APPEND ${bat_file} "SET ${environ}\n")
+-        endforeach(environ)
+-        #load the command to run with its arguments
+-        foreach(arg ${ARGN})
+-            file(APPEND ${bat_file} "${arg} ")
+-        endforeach(arg)
+-        file(APPEND ${bat_file} "\n")
+-
+-        add_test(${test_name} ${bat_file})
+-    endif(WIN32)
+-
+-endfunction(GR_ADD_TEST)
+diff --git a/cmake/Modules/UseSWIG.cmake b/cmake/Modules/UseSWIG.cmake
+deleted file mode 100644
+index b7e3e05..0000000
+--- cmake/Modules/UseSWIG.cmake
++++ /dev/null
+@@ -1,304 +0,0 @@
+-# - SWIG module for CMake
+-# Defines the following macros:
+-#   SWIG_ADD_MODULE(name language [ files ])
+-#     - Define swig module with given name and specified language
+-#   SWIG_LINK_LIBRARIES(name [ libraries ])
+-#     - Link libraries to swig module
+-# All other macros are for internal use only.
+-# To get the actual name of the swig module,
+-# use: ${SWIG_MODULE_${name}_REAL_NAME}.
+-# Set Source files properties such as CPLUSPLUS and SWIG_FLAGS to specify
+-# special behavior of SWIG. Also global CMAKE_SWIG_FLAGS can be used to add
+-# special flags to all swig calls.
+-# Another special variable is CMAKE_SWIG_OUTDIR, it allows one to specify
+-# where to write all the swig generated module (swig -outdir option)
+-# The name-specific variable SWIG_MODULE_<name>_EXTRA_DEPS may be used
+-# to specify extra dependencies for the generated modules.
+-# If the source file generated by swig need some special flag you can use
+-# set_source_files_properties( ${swig_generated_file_fullname}
+-#        PROPERTIES COMPILE_FLAGS "-bla")
+-
+-
+-#=============================================================================
+-# Copyright 2004-2009 Kitware, Inc.
+-# Copyright 2009 Mathieu Malaterre <mathieu.malaterre@gmail.com>
+-#
+-# Distributed under the OSI-approved BSD License (the "License");
+-# see accompanying file Copyright.txt for details.
+-#
+-# This software is distributed WITHOUT ANY WARRANTY; without even the
+-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+-# See the License for more information.
+-#=============================================================================
+-# (To distribute this file outside of CMake, substitute the full
+-#  License text for the above reference.)
+-
+-set(SWIG_CXX_EXTENSION "cxx")
+-set(SWIG_EXTRA_LIBRARIES "")
+-
+-set(SWIG_PYTHON_EXTRA_FILE_EXTENSION "py")
+-
+-#
+-# For given swig module initialize variables associated with it
+-#
+-macro(SWIG_MODULE_INITIALIZE name language)
+-  string(TOUPPER "${language}" swig_uppercase_language)
+-  string(TOLOWER "${language}" swig_lowercase_language)
+-  set(SWIG_MODULE_${name}_LANGUAGE "${swig_uppercase_language}")
+-  set(SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG "${swig_lowercase_language}")
+-
+-  set(SWIG_MODULE_${name}_REAL_NAME "${name}")
+-  if("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "UNKNOWN")
+-    message(FATAL_ERROR "SWIG Error: Language \"${language}\" not found")
+-  elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "PYTHON")
+-    # when swig is used without the -interface it will produce in the module.py
+-    # a 'import _modulename' statement, which implies having a corresponding
+-    # _modulename.so (*NIX), _modulename.pyd (Win32).
+-    set(SWIG_MODULE_${name}_REAL_NAME "_${name}")
+-  elseif("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "PERL")
+-    set(SWIG_MODULE_${name}_EXTRA_FLAGS "-shadow")
+-  endif()
+-endmacro()
+-
+-#
+-# For a given language, input file, and output file, determine extra files that
+-# will be generated. This is internal swig macro.
+-#
+-
+-macro(SWIG_GET_EXTRA_OUTPUT_FILES language outfiles generatedpath infile)
+-  set(${outfiles} "")
+-  get_source_file_property(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename
+-    ${infile} SWIG_MODULE_NAME)
+-  if(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename STREQUAL "NOTFOUND")
+-    get_filename_component(SWIG_GET_EXTRA_OUTPUT_FILES_module_basename "${infile}" NAME_WE)
+-  endif()
+-  foreach(it ${SWIG_${language}_EXTRA_FILE_EXTENSION})
+-    set(${outfiles} ${${outfiles}}
+-      "${generatedpath}/${SWIG_GET_EXTRA_OUTPUT_FILES_module_basename}.${it}")
+-  endforeach()
+-endmacro()
+-
+-#
+-# Take swig (*.i) file and add proper custom commands for it
+-#
+-macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
+-  set(swig_full_infile ${infile})
+-  get_filename_component(swig_source_file_path "${infile}" PATH)
+-  get_filename_component(swig_source_file_name_we "${infile}" NAME_WE)
+-  get_source_file_property(swig_source_file_generated ${infile} GENERATED)
+-  get_source_file_property(swig_source_file_cplusplus ${infile} CPLUSPLUS)
+-  get_source_file_property(swig_source_file_flags ${infile} SWIG_FLAGS)
+-  if("${swig_source_file_flags}" STREQUAL "NOTFOUND")
+-    set(swig_source_file_flags "")
+-  endif()
+-  set(swig_source_file_fullname "${infile}")
+-  if(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
+-    string(REGEX REPLACE
+-      "^${CMAKE_CURRENT_SOURCE_DIR}" ""
+-      swig_source_file_relative_path
+-      "${swig_source_file_path}")
+-  else()
+-    if(${swig_source_file_path} MATCHES "^${CMAKE_CURRENT_BINARY_DIR}")
+-      string(REGEX REPLACE
+-        "^${CMAKE_CURRENT_BINARY_DIR}" ""
+-        swig_source_file_relative_path
+-        "${swig_source_file_path}")
+-      set(swig_source_file_generated 1)
+-    else()
+-      set(swig_source_file_relative_path "${swig_source_file_path}")
+-      if(swig_source_file_generated)
+-        set(swig_source_file_fullname "${CMAKE_CURRENT_BINARY_DIR}/${infile}")
+-      else()
+-        set(swig_source_file_fullname "${CMAKE_CURRENT_SOURCE_DIR}/${infile}")
+-      endif()
+-    endif()
+-  endif()
+-
+-  set(swig_generated_file_fullname
+-    "${CMAKE_CURRENT_BINARY_DIR}")
+-  if(swig_source_file_relative_path)
+-    set(swig_generated_file_fullname
+-      "${swig_generated_file_fullname}/${swig_source_file_relative_path}")
+-  endif()
+-  # If CMAKE_SWIG_OUTDIR was specified then pass it to -outdir
+-  if(CMAKE_SWIG_OUTDIR)
+-    set(swig_outdir ${CMAKE_SWIG_OUTDIR})
+-  else()
+-    set(swig_outdir ${CMAKE_CURRENT_BINARY_DIR})
+-  endif()
+-  SWIG_GET_EXTRA_OUTPUT_FILES(${SWIG_MODULE_${name}_LANGUAGE}
+-    swig_extra_generated_files
+-    "${swig_outdir}"
+-    "${infile}")
+-  set(swig_generated_file_fullname
+-    "${swig_generated_file_fullname}/${swig_source_file_name_we}")
+-  # add the language into the name of the file (i.e. TCL_wrap)
+-  # this allows for the same .i file to be wrapped into different languages
+-  set(swig_generated_file_fullname
+-    "${swig_generated_file_fullname}${SWIG_MODULE_${name}_LANGUAGE}_wrap")
+-
+-  if(swig_source_file_cplusplus)
+-    set(swig_generated_file_fullname
+-      "${swig_generated_file_fullname}.${SWIG_CXX_EXTENSION}")
+-  else()
+-    set(swig_generated_file_fullname
+-      "${swig_generated_file_fullname}.c")
+-  endif()
+-
+-  # Shut up some warnings from poor SWIG code generation that we
+-  # can do nothing about, when this flag is available
+-  include(CheckCXXCompilerFlag)
+-  check_cxx_compiler_flag("-Wno-unused-but-set-variable" HAVE_WNO_UNUSED_BUT_SET_VARIABLE)
+-  if(HAVE_WNO_UNUSED_BUT_SET_VARIABLE)
+-    set_source_files_properties(${swig_generated_file_fullname}
+-      PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
+-  endif(HAVE_WNO_UNUSED_BUT_SET_VARIABLE)
+-
+-  get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES)
+-  set(swig_include_dirs)
+-  foreach(it ${cmake_include_directories})
+-    set(swig_include_dirs ${swig_include_dirs} "-I${it}")
+-  endforeach()
+-
+-  set(swig_special_flags)
+-  # default is c, so add c++ flag if it is c++
+-  if(swig_source_file_cplusplus)
+-    set(swig_special_flags ${swig_special_flags} "-c++")
+-  endif()
+-  set(swig_extra_flags)
+-  if(SWIG_MODULE_${name}_EXTRA_FLAGS)
+-    set(swig_extra_flags ${swig_extra_flags} ${SWIG_MODULE_${name}_EXTRA_FLAGS})
+-  endif()
+-
+-  # hack to work around CMake bug in add_custom_command with multiple OUTPUT files
+-
+-  file(RELATIVE_PATH reldir ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
+-  execute_process(
+-    COMMAND ${PYTHON_EXECUTABLE} -c "import re, hashlib
+-unique = hashlib.md5('${reldir}${ARGN}').hexdigest()[:5]
+-print(re.sub('\\W', '_', '${name} ${reldir} ' + unique))"
+-    OUTPUT_VARIABLE _target OUTPUT_STRIP_TRAILING_WHITESPACE
+-  )
+-
+-  file(
+-    WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_target}.cpp.in
+-   "int main(void){return 0;}\n"
+-  )
+-
+-  # create dummy dependencies
+-  add_custom_command(
+-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_target}.cpp
+-    COMMAND ${CMAKE_COMMAND} -E copy
+-        ${CMAKE_CURRENT_BINARY_DIR}/${_target}.cpp.in
+-        ${CMAKE_CURRENT_BINARY_DIR}/${_target}.cpp
+-    DEPENDS "${swig_source_file_fullname}" ${SWIG_MODULE_${name}_EXTRA_DEPS}
+-    COMMENT ""
+-  )
+-
+-  # create the dummy target
+-  add_executable(${_target} ${CMAKE_CURRENT_BINARY_DIR}/${_target}.cpp)
+-
+-  # add a custom command to the dummy target
+-  add_custom_command(
+-    TARGET ${_target}
+-    # Let's create the ${swig_outdir} at execution time, in case dir contains $(OutDir)
+-    COMMAND ${CMAKE_COMMAND} -E make_directory ${swig_outdir}
+-    COMMAND "${SWIG_EXECUTABLE}"
+-    ARGS "-${SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG}"
+-    ${swig_source_file_flags}
+-    ${CMAKE_SWIG_FLAGS}
+-    -outdir ${swig_outdir}
+-    ${swig_special_flags}
+-    ${swig_extra_flags}
+-    ${swig_include_dirs}
+-    -o "${swig_generated_file_fullname}"
+-    "${swig_source_file_fullname}"
+-    COMMENT "Swig source"
+-  )
+-
+-  #add dummy independent dependencies from the _target to each file
+-  #that will be generated by the SWIG command above
+-
+-  set(${outfiles} "${swig_generated_file_fullname}" ${swig_extra_generated_files})
+-
+-  foreach(swig_gen_file ${${outfiles}})
+-    add_custom_command(
+-      OUTPUT ${swig_gen_file}
+-      COMMAND "${CMAKE_COMMAND}" -E touch_nocreate "${swig_gen_file}"
+-      DEPENDS ${_target}
+-      COMMENT "dummy command to show ${_target} dependency of ${swig_gen_file}"
+-    )
+-  endforeach()
+-
+-  set_source_files_properties(
+-    ${outfiles} PROPERTIES GENERATED 1
+-  )
+-
+-endmacro()
+-
+-#
+-# Create Swig module
+-#
+-macro(SWIG_ADD_MODULE name language)
+-  SWIG_MODULE_INITIALIZE(${name} ${language})
+-  set(swig_dot_i_sources)
+-  set(swig_other_sources)
+-  foreach(it ${ARGN})
+-    if(${it} MATCHES ".*\\.i$")
+-      set(swig_dot_i_sources ${swig_dot_i_sources} "${it}")
+-    else()
+-      set(swig_other_sources ${swig_other_sources} "${it}")
+-    endif()
+-  endforeach()
+-
+-  set(swig_generated_sources)
+-  foreach(it ${swig_dot_i_sources})
+-    SWIG_ADD_SOURCE_TO_MODULE(${name} swig_generated_source ${it})
+-    set(swig_generated_sources ${swig_generated_sources} "${swig_generated_source}")
+-  endforeach()
+-  get_directory_property(swig_extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
+-  set_directory_properties(PROPERTIES
+-    ADDITIONAL_MAKE_CLEAN_FILES "${swig_extra_clean_files};${swig_generated_sources}")
+-  add_library(${SWIG_MODULE_${name}_REAL_NAME}
+-    MODULE
+-    ${swig_generated_sources}
+-    ${swig_other_sources})
+-  string(TOLOWER "${language}" swig_lowercase_language)
+-  if ("${swig_lowercase_language}" STREQUAL "java")
+-    if (APPLE)
+-        # In java you want:
+-        #      System.loadLibrary("LIBRARY");
+-        # then JNI will look for a library whose name is platform dependent, namely
+-        #   MacOS  : libLIBRARY.jnilib
+-        #   Windows: LIBRARY.dll
+-        #   Linux  : libLIBRARY.so
+-        set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".jnilib")
+-      endif ()
+-  endif ()
+-  if ("${swig_lowercase_language}" STREQUAL "python")
+-    # this is only needed for the python case where a _modulename.so is generated
+-    set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
+-    # Python extension modules on Windows must have the extension ".pyd"
+-    # instead of ".dll" as of Python 2.5.  Older python versions do support
+-    # this suffix.
+-    # http://docs.python.org/whatsnew/ports.html#SECTION0001510000000000000000
+-    # <quote>
+-    # Windows: .dll is no longer supported as a filename extension for extension modules.
+-    # .pyd is now the only filename extension that will be searched for.
+-    # </quote>
+-    if(WIN32 AND NOT CYGWIN)
+-      set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".pyd")
+-    endif()
+-  endif ()
+-endmacro()
+-
+-#
+-# Like TARGET_LINK_LIBRARIES but for swig modules
+-#
+-macro(SWIG_LINK_LIBRARIES name)
+-  if(SWIG_MODULE_${name}_REAL_NAME)
+-    target_link_libraries(${SWIG_MODULE_${name}_REAL_NAME} ${ARGN})
+-  else()
+-    message(SEND_ERROR "Cannot find Swig library \"${name}\".")
+-  endif()
+-endmacro()
+diff --git a/cmake/Modules/nrsc5Config.cmake b/cmake/Modules/nrsc5Config.cmake
+index 2cd34a4..0911a25 100644
+--- cmake/Modules/nrsc5Config.cmake
++++ cmake/Modules/nrsc5Config.cmake
+@@ -22,9 +22,10 @@ FIND_LIBRARY(
+           /usr/local/lib64
+           /usr/lib
+           /usr/lib64
+-)
++          )
++
++include("${CMAKE_CURRENT_LIST_DIR}/nrsc5Target.cmake")
+ 
+ INCLUDE(FindPackageHandleStandardArgs)
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(NRSC5 DEFAULT_MSG NRSC5_LIBRARIES NRSC5_INCLUDE_DIRS)
+ MARK_AS_ADVANCED(NRSC5_LIBRARIES NRSC5_INCLUDE_DIRS)
+-
+diff --git a/python/build_utils_codes.py b/cmake/Modules/targetConfig.cmake.in
+similarity index 52%
+rename from python/build_utils_codes.py
+rename to cmake/Modules/targetConfig.cmake.in
+index 9ea96ba..79e4a28 100644
+--- python/build_utils_codes.py
++++ cmake/Modules/targetConfig.cmake.in
+@@ -1,5 +1,4 @@
+-#
+-# Copyright 2004 Free Software Foundation, Inc.
++# Copyright 2018 Free Software Foundation, Inc.
+ #
+ # This file is part of GNU Radio
+ #
+@@ -17,36 +16,11 @@
+ # along with GNU Radio; see the file COPYING.  If not, write to
+ # the Free Software Foundation, Inc., 51 Franklin Street,
+ # Boston, MA 02110-1301, USA.
+-#
+-
+-def i_code (code3):
+-    return code3[0]
+-
+-def o_code (code3):
+-    if len (code3) >= 2:
+-        return code3[1]
+-    else:
+-        return code3[0]
+-
+-def tap_code (code3):
+-    if len (code3) >= 3:
+-        return code3[2]
+-    else:
+-        return code3[0]
+-
+-def i_type (code3):
+-    return char_to_type[i_code (code3)]
+-
+-def o_type (code3):
+-    return char_to_type[o_code (code3)]
+-
+-def tap_type (code3):
+-    return char_to_type[tap_code (code3)]
+ 
++include(CMakeFindDependencyMacro)
+ 
+-char_to_type = {}
+-char_to_type['s'] = 'short'
+-char_to_type['i'] = 'int'
+-char_to_type['f'] = 'float'
+-char_to_type['c'] = 'gr_complex'
+-char_to_type['b'] = 'unsigned char'
++set(target_deps "@TARGET_DEPENDENCIES@")
++foreach(dep IN LISTS target_deps)
++    find_dependency(${dep})
++endforeach()
++include("${CMAKE_CURRENT_LIST_DIR}/@TARGET@Targets.cmake")
+diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
+index f16fbf6..2c318ee 100644
+--- docs/CMakeLists.txt
++++ docs/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/docs/doxygen/CMakeLists.txt b/docs/doxygen/CMakeLists.txt
+index 1b44799..d5d98b8 100644
+--- docs/doxygen/CMakeLists.txt
++++ docs/doxygen/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+diff --git a/docs/doxygen/Doxyfile.in b/docs/doxygen/Doxyfile.in
+index 3ad1a67..20dfc97 100644
+--- docs/doxygen/Doxyfile.in
++++ docs/doxygen/Doxyfile.in
+@@ -654,8 +654,8 @@ WARN_LOGFILE           =
+ # directories like "/usr/src/myproject". Separate the files or directories
+ # with spaces.
+ 
+-INPUT                  = @top_srcdir@ \
+-                         @top_builddir@
++INPUT                  = "@top_srcdir@" \
++                         "@top_builddir@"
+ 
+ # This tag can be used to specify the character encoding of the source files
+ # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+@@ -791,7 +791,7 @@ INPUT_FILTER           =
+ # info on how filters are used. If FILTER_PATTERNS is empty or if
+ # non of the patterns match the file name, INPUT_FILTER is applied.
+ 
+-FILTER_PATTERNS        = *.py=@top_srcdir@/doc/doxygen/other/doxypy.py
++FILTER_PATTERNS        = *.py="@top_srcdir@"/doc/doxygen/other/doxypy.py
+ 
+ # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+ # INPUT_FILTER) will be used to filter the input files when producing source
+@@ -946,7 +946,7 @@ HTML_STYLESHEET        =
+ # user-defined cascading style sheet that is included after the standard
+ # style sheets created by doxygen. Using this option one can overrule
+ # certain style aspects. This is preferred over using HTML_STYLESHEET
+-# since it does not replace the standard style sheet and is therefor more
++# since it does not replace the standard style sheet and is therefore more
+ # robust against future updates. Doxygen will copy the style sheet file to
+ # the output directory.
+ 
+@@ -990,7 +990,7 @@ HTML_COLORSTYLE_GAMMA  = 80
+ # page will contain the date and time when the page was generated. Setting
+ # this to NO can help when comparing the output of multiple runs.
+ 
+-HTML_TIMESTAMP         = YES
++HTML_TIMESTAMP         = NO
+ 
+ # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+ # documentation will contain sections that can be hidden and shown after the
+diff --git a/docs/doxygen/Doxyfile.swig_doc.in b/docs/doxygen/Doxyfile.swig_doc.in
+index 19e17dc..cbe06d6 100644
+--- docs/doxygen/Doxyfile.swig_doc.in
++++ docs/doxygen/Doxyfile.swig_doc.in
+@@ -54,7 +54,7 @@ PROJECT_LOGO           =
+ # If a relative path is entered, it will be relative to the location
+ # where doxygen was started. If left blank the current directory will be used.
+ 
+-OUTPUT_DIRECTORY       = @OUTPUT_DIRECTORY@
++OUTPUT_DIRECTORY       = "@OUTPUT_DIRECTORY@"
+ 
+ # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+ # 4096 sub-directories (in 2 levels) under the output directory of each output
+@@ -121,7 +121,7 @@ INLINE_INHERITED_MEMB  = NO
+ # path before files name in the file list and in the header files. If set
+ # to NO the shortest path that makes the file name unique will be used.
+ 
+-FULL_PATH_NAMES        = YES
++FULL_PATH_NAMES        = NO
+ 
+ # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+ # can be used to strip a user-defined part of the path. Stripping is
+@@ -913,7 +913,7 @@ HTML_STYLESHEET        =
+ # user-defined cascading style sheet that is included after the standard
+ # style sheets created by doxygen. Using this option one can overrule
+ # certain style aspects. This is preferred over using HTML_STYLESHEET
+-# since it does not replace the standard style sheet and is therefor more
++# since it does not replace the standard style sheet and is therefore more
+ # robust against future updates. Doxygen will copy the style sheet file to
+ # the output directory.
+ 
+@@ -957,7 +957,7 @@ HTML_COLORSTYLE_GAMMA  = 80
+ # page will contain the date and time when the page was generated. Setting
+ # this to NO can help when comparing the output of multiple runs.
+ 
+-HTML_TIMESTAMP         = YES
++HTML_TIMESTAMP         = NO
+ 
+ # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+ # documentation will contain sections that can be hidden and shown after the
+diff --git a/docs/doxygen/doxyxml/__init__.py b/docs/doxygen/doxyxml/__init__.py
+index 5cd0b3c..5145b54 100644
+--- docs/doxygen/doxyxml/__init__.py
++++ docs/doxygen/doxyxml/__init__.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -63,8 +64,9 @@
+ u'Outputs the vital aadvark statistics.'
+ 
+ """
++from __future__ import unicode_literals
+ 
+-from doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
++from .doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
+ 
+ def _test():
+     import os
+diff --git a/docs/doxygen/doxyxml/base.py b/docs/doxygen/doxyxml/base.py
+index e8f026a..4404c97 100644
+--- docs/doxygen/doxyxml/base.py
++++ docs/doxygen/doxyxml/base.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -24,24 +25,26 @@
+ Classes based upon this are used to make more user-friendly interfaces
+ to the doxygen xml docs than the generated classes provide.
+ """
++from __future__ import print_function
++from __future__ import unicode_literals
+ 
+ import os
+ import pdb
+ 
+ from xml.parsers.expat import ExpatError
+ 
+-from generated import compound
++from .generated import compound
+ 
+ 
+ class Base(object):
+ 
+-    class Duplicate(StandardError):
++    class Duplicate(Exception):
+         pass
+ 
+-    class NoSuchMember(StandardError):
++    class NoSuchMember(Exception):
+         pass
+ 
+-    class ParsingError(StandardError):
++    class ParsingError(Exception):
+         pass
+ 
+     def __init__(self, parse_data, top=None):
+@@ -94,7 +97,7 @@ def get_cls(self, mem):
+         for cls in self.mem_classes:
+             if cls.can_parse(mem):
+                 return cls
+-        raise StandardError(("Did not find a class for object '%s'." \
++        raise Exception(("Did not find a class for object '%s'." \
+                                  % (mem.get_name())))
+ 
+     def convert_mem(self, mem):
+@@ -102,11 +105,11 @@ def convert_mem(self, mem):
+             cls = self.get_cls(mem)
+             converted = cls.from_parse_data(mem, self.top)
+             if converted is None:
+-                raise StandardError('No class matched this object.')
++                raise Exception('No class matched this object.')
+             self.add_ref(converted)
+             return converted
+-        except StandardError, e:
+-            print e
++        except Exception as e:
++            print(e)
+ 
+     @classmethod
+     def includes(cls, inst):
+diff --git a/docs/doxygen/doxyxml/doxyindex.py b/docs/doxygen/doxyxml/doxyindex.py
+index 78e8153..30baf12 100644
+--- docs/doxygen/doxyxml/doxyindex.py
++++ docs/doxygen/doxyxml/doxyindex.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -22,12 +23,14 @@
+ Classes providing more user-friendly interfaces to the doxygen xml
+ docs than the generated classes provide.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
+ 
+ import os
+ 
+-from generated import index
+-from base import Base
+-from text import description
++from .generated import index
++from .base import Base
++from .text import description
+ 
+ class DoxyIndex(Base):
+     """
+diff --git a/docs/doxygen/doxyxml/generated/__init__.py b/docs/doxygen/doxyxml/generated/__init__.py
+index 3982397..23095c1 100644
+--- docs/doxygen/doxyxml/generated/__init__.py
++++ docs/doxygen/doxyxml/generated/__init__.py
+@@ -5,3 +5,4 @@
+ resultant classes are not very friendly to navigate so the rest of the
+ doxyxml module processes them further.
+ """
++from __future__ import unicode_literals
+diff --git a/docs/doxygen/doxyxml/generated/compound.py b/docs/doxygen/doxyxml/generated/compound.py
+index 1522ac2..acfa0dd 100644
+--- docs/doxygen/doxyxml/generated/compound.py
++++ docs/doxygen/doxyxml/generated/compound.py
+@@ -3,15 +3,17 @@
+ """
+ Generated Mon Feb  9 19:08:05 2009 by generateDS.py.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
++
+ 
+-from string import lower as str_lower
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
+ import sys
+ 
+-import compoundsuper as supermod
+-from compoundsuper import MixedContainer
++from . import compoundsuper as supermod
++from .compoundsuper import MixedContainer
+ 
+ 
+ class DoxygenTypeSub(supermod.DoxygenType):
+diff --git a/docs/doxygen/doxyxml/generated/compoundsuper.py b/docs/doxygen/doxyxml/generated/compoundsuper.py
+index 6255dda..6e984e1 100644
+--- docs/doxygen/doxyxml/generated/compoundsuper.py
++++ docs/doxygen/doxyxml/generated/compoundsuper.py
+@@ -4,12 +4,17 @@
+ # Generated Thu Jun 11 18:44:25 2009 by generateDS.py.
+ #
+ 
++from __future__ import print_function
++from __future__ import unicode_literals
++
+ import sys
+-import getopt
+-from string import lower as str_lower
++
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
++import six
++
++
+ #
+ # User methods
+ #
+@@ -19,9 +24,9 @@
+ 
+ try:
+     from generatedssuper import GeneratedsSuper
+-except ImportError, exp:
++except ImportError as exp:
+ 
+-    class GeneratedsSuper:
++    class GeneratedsSuper(object):
+         def format_string(self, input_data, input_name=''):
+             return input_data
+         def format_integer(self, input_data, input_name=''):
+@@ -64,7 +69,7 @@ def showIndent(outfile, level):
+         outfile.write('    ')
+ 
+ def quote_xml(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -72,7 +77,7 @@ def quote_xml(inStr):
+     return s1
+ 
+ def quote_attrib(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -102,7 +107,7 @@ def quote_python(inStr):
+             return '"""%s"""' % s1
+ 
+ 
+-class MixedContainer:
++class MixedContainer(object):
+     # Constants for category:
+     CategoryNone = 0
+     CategoryText = 1
+@@ -4221,7 +4226,7 @@ def buildAttributes(self, attrs):
+         if attrs.get('lineno'):
+             try:
+                 self.lineno = int(attrs.get('lineno').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (lineno): %s' % exp)
+         if attrs.get('refkind'):
+             self.refkind = attrs.get('refkind').value
+@@ -4504,12 +4509,12 @@ def buildAttributes(self, attrs):
+         if attrs.get('endline'):
+             try:
+                 self.endline = int(attrs.get('endline').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (endline): %s' % exp)
+         if attrs.get('startline'):
+             try:
+                 self.startline = int(attrs.get('startline').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (startline): %s' % exp)
+         if attrs.get('refid'):
+             self.refid = attrs.get('refid').value
+@@ -4627,17 +4632,17 @@ def buildAttributes(self, attrs):
+         if attrs.get('bodystart'):
+             try:
+                 self.bodystart = int(attrs.get('bodystart').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (bodystart): %s' % exp)
+         if attrs.get('line'):
+             try:
+                 self.line = int(attrs.get('line').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (line): %s' % exp)
+         if attrs.get('bodyend'):
+             try:
+                 self.bodyend = int(attrs.get('bodyend').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (bodyend): %s' % exp)
+         if attrs.get('bodyfile'):
+             self.bodyfile = attrs.get('bodyfile').value
+@@ -6778,12 +6783,12 @@ def buildAttributes(self, attrs):
+         if attrs.get('rows'):
+             try:
+                 self.rows = int(attrs.get('rows').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (rows): %s' % exp)
+         if attrs.get('cols'):
+             try:
+                 self.cols = int(attrs.get('cols').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (cols): %s' % exp)
+     def buildChildren(self, child_, nodeName_):
+         if child_.nodeType == Node.ELEMENT_NODE and \
+@@ -7108,7 +7113,7 @@ def buildAttributes(self, attrs):
+         if attrs.get('level'):
+             try:
+                 self.level = int(attrs.get('level').value)
+-            except ValueError, exp:
++            except ValueError as exp:
+                 raise ValueError('Bad integer attribute (level): %s' % exp)
+     def buildChildren(self, child_, nodeName_):
+         if child_.nodeType == Node.TEXT_NODE:
+@@ -8283,7 +8288,7 @@ def buildChildren(self, child_, nodeName_):
+ """
+ 
+ def usage():
+-    print USAGE_TEXT
++    print(USAGE_TEXT)
+     sys.exit(1)
+ 
+ 
+@@ -8339,4 +8344,3 @@ def main():
+     main()
+     #import pdb
+     #pdb.run('main()')
+-
+diff --git a/docs/doxygen/doxyxml/generated/index.py b/docs/doxygen/doxyxml/generated/index.py
+index 7a70e14..0c63512 100644
+--- docs/doxygen/doxyxml/generated/index.py
++++ docs/doxygen/doxyxml/generated/index.py
+@@ -3,14 +3,16 @@
+ """
+ Generated Mon Feb  9 19:08:05 2009 by generateDS.py.
+ """
++from __future__ import absolute_import
++from __future__ import unicode_literals
+ 
+ from xml.dom import minidom
+ 
+ import os
+ import sys
+-import compound
++from . import compound
+ 
+-import indexsuper as supermod
++from . import indexsuper as supermod
+ 
+ class DoxygenTypeSub(supermod.DoxygenType):
+     def __init__(self, version=None, compound=None):
+diff --git a/docs/doxygen/doxyxml/generated/indexsuper.py b/docs/doxygen/doxyxml/generated/indexsuper.py
+index a991530..11312db 100644
+--- docs/doxygen/doxyxml/generated/indexsuper.py
++++ docs/doxygen/doxyxml/generated/indexsuper.py
+@@ -4,12 +4,16 @@
+ # Generated Thu Jun 11 18:43:54 2009 by generateDS.py.
+ #
+ 
++from __future__ import print_function
++from __future__ import unicode_literals
++
+ import sys
+-import getopt
+-from string import lower as str_lower
++
+ from xml.dom import minidom
+ from xml.dom import Node
+ 
++import six
++
+ #
+ # User methods
+ #
+@@ -19,9 +23,9 @@
+ 
+ try:
+     from generatedssuper import GeneratedsSuper
+-except ImportError, exp:
++except ImportError as exp:
+ 
+-    class GeneratedsSuper:
++    class GeneratedsSuper(object):
+         def format_string(self, input_data, input_name=''):
+             return input_data
+         def format_integer(self, input_data, input_name=''):
+@@ -64,7 +68,7 @@ def showIndent(outfile, level):
+         outfile.write('    ')
+ 
+ def quote_xml(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -72,7 +76,7 @@ def quote_xml(inStr):
+     return s1
+ 
+ def quote_attrib(inStr):
+-    s1 = (isinstance(inStr, basestring) and inStr or
++    s1 = (isinstance(inStr, six.string_types) and inStr or
+           '%s' % inStr)
+     s1 = s1.replace('&', '&amp;')
+     s1 = s1.replace('<', '&lt;')
+@@ -102,7 +106,7 @@ def quote_python(inStr):
+             return '"""%s"""' % s1
+ 
+ 
+-class MixedContainer:
++class MixedContainer(object):
+     # Constants for category:
+     CategoryNone = 0
+     CategoryText = 1
+@@ -462,7 +466,7 @@ def buildChildren(self, child_, nodeName_):
+ """
+ 
+ def usage():
+-    print USAGE_TEXT
++    print(USAGE_TEXT)
+     sys.exit(1)
+ 
+ 
+@@ -520,4 +524,3 @@ def main():
+     main()
+     #import pdb
+     #pdb.run('main()')
+-
+diff --git a/docs/doxygen/doxyxml/text.py b/docs/doxygen/doxyxml/text.py
+index 629edd1..e7066ba 100644
+--- docs/doxygen/doxyxml/text.py
++++ docs/doxygen/doxyxml/text.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -21,12 +22,13 @@
+ """
+ Utilities for extracting text from generated classes.
+ """
++from __future__ import unicode_literals
+ 
+ def is_string(txt):
+     if isinstance(txt, str):
+         return True
+     try:
+-        if isinstance(txt, unicode):
++        if isinstance(txt, str):
+             return True
+     except NameError:
+         pass
+@@ -49,7 +51,7 @@ def description_bit(obj):
+     elif is_string(obj):
+         return obj
+     else:
+-        raise StandardError('Expecting a string or something with content, content_ or value attribute')
++        raise Exception('Expecting a string or something with content, content_ or value attribute')
+     # If this bit is a paragraph then add one some line breaks.
+     if hasattr(obj, 'name') and obj.name == 'para':
+         result += "\n\n"
+diff --git a/docs/doxygen/swig_doc.py b/docs/doxygen/swig_doc.py
+index d3536db..c127b9e 100644
+--- docs/doxygen/swig_doc.py
++++ docs/doxygen/swig_doc.py
+@@ -1,7 +1,8 @@
+ #
+ # Copyright 2010-2012 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -26,6 +27,7 @@
+ python docstrings.
+ 
+ """
++from __future__ import unicode_literals
+ 
+ import sys, time
+ 
+@@ -79,13 +81,15 @@ def includes(cls, item):
+ 
+ def utoascii(text):
+     """
+-    Convert unicode text into ascii and escape quotes.
++    Convert unicode text into ascii and escape quotes and backslashes.
+     """
+     if text is None:
+         return ''
+     out = text.encode('ascii', 'replace')
+-    out = out.replace('"', '\\"')
+-    return out
++    # swig will require us to replace blackslash with 4 backslashes
++    out = out.replace(b'\\', b'\\\\\\\\')
++    out = out.replace(b'"', b'\\"').decode('ascii')
++    return str(out)
+ 
+ 
+ def combine_descriptions(obj):
+@@ -135,7 +139,7 @@ def make_entry(obj, name=None, templ="{description}", description=None, params=[
+     return entry_templ.format(
+         name=name,
+         docstring=docstring,
+-    )
++        )
+ 
+ 
+ def make_func_entry(func, name=None, description=None, params=None):
+@@ -226,12 +230,12 @@ def make_block2_entry(di, block):
+     # the make function.
+     output = []
+     output.append(make_class_entry(
+-        block, description=description,
+-        ignored_methods=['make'], params=make_func.params))
++            block, description=description,
++            ignored_methods=['make'], params=make_func.params))
+     makename = block.name() + '::make'
+     output.append(make_func_entry(
+-        make_func, name=makename, description=description,
+-        params=make_func.params))
++            make_func, name=makename, description=description,
++            params=make_func.params))
+     return "\n\n".join(output)
+ 
+ def make_swig_interface_file(di, swigdocfilename, custom_output=None):
+@@ -301,7 +305,7 @@ def make_swig_interface_file(di, swigdocfilename, custom_output=None):
+ 
+     output = "\n\n".join(output)
+ 
+-    swig_doc = file(swigdocfilename, 'w')
++    swig_doc = open(swigdocfilename, 'w')
+     swig_doc.write(output)
+     swig_doc.close()
+ 
+@@ -309,7 +313,7 @@ def make_swig_interface_file(di, swigdocfilename, custom_output=None):
+     # Parse command line options and set up doxyxml.
+     err_msg = "Execute using: python swig_doc.py xml_path outputfilename"
+     if len(sys.argv) != 3:
+-        raise StandardError(err_msg)
++        raise Exception(err_msg)
+     xml_path = sys.argv[1]
+     swigdocfilename = sys.argv[2]
+     di = DoxyIndex(xml_path)
+diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
+index 1b5c801..8bc75e4 100644
+--- grc/CMakeLists.txt
++++ grc/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -18,16 +19,16 @@
+ # Boston, MA 02110-1301, USA.
+ 
+ install(FILES
+-    nrsc5_l1_fm_encoder_mp1.xml
+-    nrsc5_l1_fm_encoder_mp2.xml
+-    nrsc5_l1_fm_encoder_mp3.xml
+-    nrsc5_l1_fm_encoder_mp11.xml
+-    nrsc5_l1_fm_encoder_mp5.xml
+-    nrsc5_l1_fm_encoder_mp5_ms1.xml
+-    nrsc5_l1_fm_encoder_mp6.xml
+-    nrsc5_l1_fm_encoder_mp6_ms1.xml
+-    nrsc5_sis_encoder.xml
+-    nrsc5_l2_encoder.xml
+-    nrsc5_hdc_encoder.xml
+-    nrsc5_psd_encoder.xml DESTINATION share/gnuradio/grc/blocks
++    nrsc5_hdc_encoder.block.yml
++    nrsc5_l1_fm_encoder_mp1.block.yml
++    nrsc5_l1_fm_encoder_mp2.block.yml
++    nrsc5_l1_fm_encoder_mp3.block.yml
++    nrsc5_l1_fm_encoder_mp11.block.yml
++    nrsc5_l1_fm_encoder_mp5.block.yml
++    nrsc5_l1_fm_encoder_mp5_ms1.block.yml
++    nrsc5_l1_fm_encoder_mp6.block.yml
++    nrsc5_l1_fm_encoder_mp6_ms1.block.yml
++    nrsc5_l2_encoder.block.yml
++    nrsc5_psd_encoder.block.yml
++    nrsc5_sis_encoder.block.yml DESTINATION share/gnuradio/grc/blocks
+ )
+diff --git a/grc/nrsc5_hdc_encoder.block.yml b/grc/nrsc5_hdc_encoder.block.yml
+new file mode 100644
+index 0000000..520dcbe
+--- /dev/null
++++ grc/nrsc5_hdc_encoder.block.yml
+@@ -0,0 +1,33 @@
++# auto-generated by grc.converter
++
++id: nrsc5_hdc_encoder
++label: HDC Encoder
++category: '[NRSC-5]'
++
++parameters:
++-   id: channels
++    label: Channels
++    dtype: int
++    default: 2
++-   id: bitrate
++    label: Bitrate
++    dtype: int
++    default: 64000
++
++inputs:
++-   domain: stream
++    dtype: float
++    multiplicity: ${ channels }
++
++outputs:
++-   domain: stream
++    dtype: byte
++asserts:
++- ${ 1 <= channels <= 2 }
++- ${ 0 < bitrate }
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.hdc_encoder(${channels}, ${bitrate})
++
++file_format: 1
+diff --git a/grc/nrsc5_hdc_encoder.xml b/grc/nrsc5_hdc_encoder.xml
+deleted file mode 100644
+index b4e472e..0000000
+--- grc/nrsc5_hdc_encoder.xml
++++ /dev/null
+@@ -1,31 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>HDC Encoder</name>
+-  <key>nrsc5_hdc_encoder</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.hdc_encoder($channels, $bitrate)</make>
+-  <param>
+-    <name>Channels</name>
+-    <key>channels</key>
+-    <value>2</value>
+-    <type>int</type>
+-  </param>
+-  <param>
+-    <name>Bitrate</name>
+-    <key>bitrate</key>
+-    <value>64000</value>
+-    <type>int</type>
+-  </param>
+-  <check>1 &lt;= $channels &lt;= 2</check>
+-  <check>0 &lt; $bitrate</check>
+-  <sink>
+-    <name>in</name>
+-    <type>float</type>
+-    <nports>$channels</nports>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp1.block.yml b/grc/nrsc5_l1_fm_encoder_mp1.block.yml
+new file mode 100644
+index 0000000..2b69d4c
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp1.block.yml
+@@ -0,0 +1,26 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp1
++label: 'Layer 1 FM encoder: MP1'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 146176
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(1)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp1.xml b/grc/nrsc5_l1_fm_encoder_mp1.xml
+deleted file mode 100644
+index 46714a7..0000000
+--- grc/nrsc5_l1_fm_encoder_mp1.xml
++++ /dev/null
+@@ -1,23 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP1</name>
+-  <key>nrsc5_l1_fm_encoder_mp1</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(1)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>146176</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp11.block.yml b/grc/nrsc5_l1_fm_encoder_mp11.block.yml
+new file mode 100644
+index 0000000..8c109f3
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp11.block.yml
+@@ -0,0 +1,34 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp11
++label: 'Layer 1 FM encoder: MP11'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 146176
++-   label: p3
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: p4
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(11)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp11.xml b/grc/nrsc5_l1_fm_encoder_mp11.xml
+deleted file mode 100644
+index cba0837..0000000
+--- grc/nrsc5_l1_fm_encoder_mp11.xml
++++ /dev/null
+@@ -1,33 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP11</name>
+-  <key>nrsc5_l1_fm_encoder_mp11</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(11)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>146176</vlen>
+-  </sink>
+-  <sink>
+-    <name>p3</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>p4</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp2.block.yml b/grc/nrsc5_l1_fm_encoder_mp2.block.yml
+new file mode 100644
+index 0000000..6e049b5
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp2.block.yml
+@@ -0,0 +1,30 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp2
++label: 'Layer 1 FM encoder: MP2'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 146176
++-   label: p3
++    domain: stream
++    dtype: byte
++    vlen: 2304
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(2)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp2.xml b/grc/nrsc5_l1_fm_encoder_mp2.xml
+deleted file mode 100644
+index a176309..0000000
+--- grc/nrsc5_l1_fm_encoder_mp2.xml
++++ /dev/null
+@@ -1,28 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP2</name>
+-  <key>nrsc5_l1_fm_encoder_mp2</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(2)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>146176</vlen>
+-  </sink>
+-  <sink>
+-    <name>p3</name>
+-    <type>byte</type>
+-    <vlen>2304</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp3.block.yml b/grc/nrsc5_l1_fm_encoder_mp3.block.yml
+new file mode 100644
+index 0000000..e5077ca
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp3.block.yml
+@@ -0,0 +1,30 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp3
++label: 'Layer 1 FM encoder: MP3'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 146176
++-   label: p3
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(3)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp3.xml b/grc/nrsc5_l1_fm_encoder_mp3.xml
+deleted file mode 100644
+index 11af89a..0000000
+--- grc/nrsc5_l1_fm_encoder_mp3.xml
++++ /dev/null
+@@ -1,28 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP3</name>
+-  <key>nrsc5_l1_fm_encoder_mp3</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(3)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>146176</vlen>
+-  </sink>
+-  <sink>
+-    <name>p3</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp5.block.yml b/grc/nrsc5_l1_fm_encoder_mp5.block.yml
+new file mode 100644
+index 0000000..5a79a23
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp5.block.yml
+@@ -0,0 +1,34 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp5
++label: 'Layer 1 FM encoder: MP5'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: p2
++    domain: stream
++    dtype: byte
++    vlen: 109312
++-   label: p3
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(5)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp5.xml b/grc/nrsc5_l1_fm_encoder_mp5.xml
+deleted file mode 100644
+index e5b5209..0000000
+--- grc/nrsc5_l1_fm_encoder_mp5.xml
++++ /dev/null
+@@ -1,33 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP5</name>
+-  <key>nrsc5_l1_fm_encoder_mp5</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(5)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>p2</name>
+-    <type>byte</type>
+-    <vlen>109312</vlen>
+-  </sink>
+-  <sink>
+-    <name>p3</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp5_ms1.block.yml b/grc/nrsc5_l1_fm_encoder_mp5_ms1.block.yml
+new file mode 100644
+index 0000000..34f9d93
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp5_ms1.block.yml
+@@ -0,0 +1,46 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp5_ms1
++label: 'Layer 1 FM encoder: MP5+MS1'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: p2
++    domain: stream
++    dtype: byte
++    vlen: 109312
++-   label: p3
++    domain: stream
++    dtype: byte
++    vlen: 4608
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++-   label: s4
++    domain: stream
++    dtype: byte
++    vlen: 18272
++-   label: s5
++    domain: stream
++    dtype: byte
++    vlen: 512
++-   label: sids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(5, 1)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp5_ms1.xml b/grc/nrsc5_l1_fm_encoder_mp5_ms1.xml
+deleted file mode 100644
+index fd66e29..0000000
+--- grc/nrsc5_l1_fm_encoder_mp5_ms1.xml
++++ /dev/null
+@@ -1,48 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP5+MS1</name>
+-  <key>nrsc5_l1_fm_encoder_mp5_ms1</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(5, 1)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>p2</name>
+-    <type>byte</type>
+-    <vlen>109312</vlen>
+-  </sink>
+-  <sink>
+-    <name>p3</name>
+-    <type>byte</type>
+-    <vlen>4608</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <sink>
+-    <name>s4</name>
+-    <type>byte</type>
+-    <vlen>18272</vlen>
+-  </sink>
+-  <sink>
+-    <name>s5</name>
+-    <type>byte</type>
+-    <vlen>512</vlen>
+-  </sink>
+-  <sink>
+-    <name>sids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp6.block.yml b/grc/nrsc5_l1_fm_encoder_mp6.block.yml
+new file mode 100644
+index 0000000..32ee051
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp6.block.yml
+@@ -0,0 +1,30 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp6
++label: 'Layer 1 FM encoder: MP6'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 9216
++-   label: p2
++    domain: stream
++    dtype: byte
++    vlen: 72448
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(6)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp6.xml b/grc/nrsc5_l1_fm_encoder_mp6.xml
+deleted file mode 100644
+index b1b3f07..0000000
+--- grc/nrsc5_l1_fm_encoder_mp6.xml
++++ /dev/null
+@@ -1,28 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP6</name>
+-  <key>nrsc5_l1_fm_encoder_mp6</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(6)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>9216</vlen>
+-  </sink>
+-  <sink>
+-    <name>p2</name>
+-    <type>byte</type>
+-    <vlen>72448</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l1_fm_encoder_mp6_ms1.block.yml b/grc/nrsc5_l1_fm_encoder_mp6_ms1.block.yml
+new file mode 100644
+index 0000000..fe35996
+--- /dev/null
++++ grc/nrsc5_l1_fm_encoder_mp6_ms1.block.yml
+@@ -0,0 +1,42 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l1_fm_encoder_mp6_ms1
++label: 'Layer 1 FM encoder: MP6+MS1'
++category: '[NRSC-5]'
++
++inputs:
++-   label: p1
++    domain: stream
++    dtype: byte
++    vlen: 9216
++-   label: p2
++    domain: stream
++    dtype: byte
++    vlen: 72448
++-   label: pids
++    domain: stream
++    dtype: byte
++    vlen: 80
++-   label: s4
++    domain: stream
++    dtype: byte
++    vlen: 18272
++-   label: s5
++    domain: stream
++    dtype: byte
++    vlen: 512
++-   label: sids
++    domain: stream
++    dtype: byte
++    vlen: 80
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 1048576
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l1_fm_encoder(6, 1)
++
++file_format: 1
+diff --git a/grc/nrsc5_l1_fm_encoder_mp6_ms1.xml b/grc/nrsc5_l1_fm_encoder_mp6_ms1.xml
+deleted file mode 100644
+index 2302341..0000000
+--- grc/nrsc5_l1_fm_encoder_mp6_ms1.xml
++++ /dev/null
+@@ -1,43 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 1 FM encoder: MP6+MS1</name>
+-  <key>nrsc5_l1_fm_encoder_mp6_ms1</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l1_fm_encoder(6, 1)</make>
+-  <sink>
+-    <name>p1</name>
+-    <type>byte</type>
+-    <vlen>9216</vlen>
+-  </sink>
+-  <sink>
+-    <name>p2</name>
+-    <type>byte</type>
+-    <vlen>72448</vlen>
+-  </sink>
+-  <sink>
+-    <name>pids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <sink>
+-    <name>s4</name>
+-    <type>byte</type>
+-    <vlen>18272</vlen>
+-  </sink>
+-  <sink>
+-    <name>s5</name>
+-    <type>byte</type>
+-    <vlen>512</vlen>
+-  </sink>
+-  <sink>
+-    <name>sids</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>1048576</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_l2_encoder.block.yml b/grc/nrsc5_l2_encoder.block.yml
+new file mode 100644
+index 0000000..f946b2a
+--- /dev/null
++++ grc/nrsc5_l2_encoder.block.yml
+@@ -0,0 +1,44 @@
++# auto-generated by grc.converter
++
++id: nrsc5_l2_encoder
++label: Layer 2 encoder
++category: '[NRSC-5]'
++
++parameters:
++-   id: num_progs
++    label: Programs
++    dtype: int
++    default: 1
++-   id: first_prog
++    label: First prog. no.
++    dtype: int
++    default: 0
++-   id: size
++    label: Frame size
++    dtype: int
++    default: 146176
++    options: [146176, 109312, 72448, 18272, 9216, 4608, 2304]
++
++inputs:
++-   label: hdc
++    domain: stream
++    dtype: byte
++    multiplicity: ${ num_progs }
++-   label: psd
++    domain: stream
++    dtype: byte
++    multiplicity: ${ num_progs }
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: ${ size }
++asserts:
++- ${ 0 <= first_prog <= 7 }
++- ${ 1 <= num_progs <= 8 - first_prog }
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.l2_encoder(${num_progs}, ${first_prog}, ${size})
++
++file_format: 1
+diff --git a/grc/nrsc5_l2_encoder.xml b/grc/nrsc5_l2_encoder.xml
+deleted file mode 100644
+index 216969a..0000000
+--- grc/nrsc5_l2_encoder.xml
++++ /dev/null
+@@ -1,71 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>Layer 2 encoder</name>
+-  <key>nrsc5_l2_encoder</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.l2_encoder($num_progs, $first_prog, $size)</make>
+-  <param>
+-    <name>Programs</name>
+-    <key>num_progs</key>
+-    <value>1</value>
+-    <type>int</type>
+-  </param>
+-  <param>
+-    <name>First prog. no.</name>
+-    <key>first_prog</key>
+-    <value>0</value>
+-    <type>int</type>
+-  </param>
+-  <param>
+-    <name>Frame size</name>
+-    <key>size</key>
+-    <value>146176</value>
+-    <type>int</type>
+-    <option>
+-      <name>146176</name>
+-      <key>146176</key>
+-    </option>
+-    <option>
+-      <name>109312</name>
+-      <key>109312</key>
+-    </option>
+-    <option>
+-      <name>72448</name>
+-      <key>72448</key>
+-    </option>
+-    <option>
+-      <name>18272</name>
+-      <key>18272</key>
+-    </option>
+-    <option>
+-      <name>9216</name>
+-      <key>9216</key>
+-    </option>
+-    <option>
+-      <name>4608</name>
+-      <key>4608</key>
+-    </option>
+-    <option>
+-      <name>2304</name>
+-      <key>2304</key>
+-    </option>
+-  </param>
+-  <check>0 &lt;= $first_prog &lt;= 7</check>
+-  <check>1 &lt;= $num_progs &lt;= 8 - $first_prog</check>
+-  <sink>
+-    <name>hdc</name>
+-    <type>byte</type>
+-    <nports>$num_progs</nports>
+-  </sink>
+-  <sink>
+-    <name>psd</name>
+-    <type>byte</type>
+-    <nports>$num_progs</nports>
+-  </sink>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>$size</vlen>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_psd_encoder.block.yml b/grc/nrsc5_psd_encoder.block.yml
+new file mode 100644
+index 0000000..b0d25ea
+--- /dev/null
++++ grc/nrsc5_psd_encoder.block.yml
+@@ -0,0 +1,31 @@
++# auto-generated by grc.converter
++
++id: nrsc5_psd_encoder
++label: PSD encoder
++category: '[NRSC-5]'
++
++parameters:
++-   id: prog_num
++    label: Program number
++    dtype: int
++    default: 0
++-   id: title
++    label: Title
++    dtype: string
++    default: Title
++-   id: artist
++    label: Artist
++    dtype: string
++    default: Artist
++
++outputs:
++-   domain: stream
++    dtype: byte
++asserts:
++- ${ 0 <= prog_num <= 7 }
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.psd_encoder(${prog_num}, ${title}, ${artist})
++
++file_format: 1
+diff --git a/grc/nrsc5_psd_encoder.xml b/grc/nrsc5_psd_encoder.xml
+deleted file mode 100644
+index 8828da4..0000000
+--- grc/nrsc5_psd_encoder.xml
++++ /dev/null
+@@ -1,31 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>PSD encoder</name>
+-  <key>nrsc5_psd_encoder</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.psd_encoder($prog_num, $title, $artist)</make>
+-  <param>
+-    <name>Program number</name>
+-    <key>prog_num</key>
+-    <value>0</value>
+-    <type>int</type>
+-  </param>
+-  <param>
+-    <name>Title</name>
+-    <key>title</key>
+-    <value>Title</value>
+-    <type>string</type>
+-  </param>
+-  <param>
+-    <name>Artist</name>
+-    <key>artist</key>
+-    <value>Artist</value>
+-    <type>string</type>
+-  </param>
+-  <check>0 &lt;= $prog_num &lt;= 7</check>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-  </source>
+-</block>
+diff --git a/grc/nrsc5_sis_encoder.block.yml b/grc/nrsc5_sis_encoder.block.yml
+new file mode 100644
+index 0000000..448a753
+--- /dev/null
++++ grc/nrsc5_sis_encoder.block.yml
+@@ -0,0 +1,24 @@
++# auto-generated by grc.converter
++
++id: nrsc5_sis_encoder
++label: SIS encoder
++category: '[NRSC-5]'
++
++parameters:
++-   id: short_name
++    label: Station name
++    dtype: string
++    default: ABCD
++
++outputs:
++-   domain: stream
++    dtype: byte
++    vlen: 80
++asserts:
++- ${ len(short_name) == 4 }
++
++templates:
++    imports: import nrsc5
++    make: nrsc5.sis_encoder(${short_name})
++
++file_format: 1
+diff --git a/grc/nrsc5_sis_encoder.xml b/grc/nrsc5_sis_encoder.xml
+deleted file mode 100644
+index 2bd6f1a..0000000
+--- grc/nrsc5_sis_encoder.xml
++++ /dev/null
+@@ -1,20 +0,0 @@
+-<?xml version="1.0"?>
+-<block>
+-  <name>SIS encoder</name>
+-  <key>nrsc5_sis_encoder</key>
+-  <category>[NRSC-5]</category>
+-  <import>import nrsc5</import>
+-  <make>nrsc5.sis_encoder($short_name)</make>
+-  <param>
+-    <name>Station name</name>
+-    <key>short_name</key>
+-    <value>ABCD</value>
+-    <type>string</type>
+-  </param>
+-  <check>len($short_name) == 4</check>
+-  <source>
+-    <name>out</name>
+-    <type>byte</type>
+-    <vlen>80</vlen>
+-  </source>
+-</block>
+diff --git a/include/nrsc5/CMakeLists.txt b/include/nrsc5/CMakeLists.txt
+index b3c2c5d..04c74c3 100644
+--- include/nrsc5/CMakeLists.txt
++++ include/nrsc5/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011,2012 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -22,9 +23,9 @@
+ ########################################################################
+ install(FILES
+     api.h
++    hdc_encoder.h
+     l1_fm_encoder.h
+-    sis_encoder.h
+     l2_encoder.h
+-    hdc_encoder.h
+-    psd_encoder.h DESTINATION include/nrsc5
++    psd_encoder.h
++    sis_encoder.h DESTINATION include/nrsc5
+ )
+diff --git a/include/nrsc5/api.h b/include/nrsc5/api.h
+index f0e8af7..449b586 100644
+--- include/nrsc5/api.h
++++ include/nrsc5/api.h
+@@ -1,7 +1,8 @@
+ /*
+  * Copyright 2011 Free Software Foundation, Inc.
+  *
+- * This file is part of GNU Radio
++ * This file was generated by gr_modtool, a tool from the GNU Radio framework
++ * This file is a part of gr-nrsc5
+  *
+  * GNU Radio is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+diff --git a/include/nrsc5/hdc_encoder.h b/include/nrsc5/hdc_encoder.h
+index 5de1490..4b40b14 100644
+--- include/nrsc5/hdc_encoder.h
++++ include/nrsc5/hdc_encoder.h
+@@ -18,7 +18,6 @@
+  * Boston, MA 02110-1301, USA.
+  */
+ 
+-
+ #ifndef INCLUDED_NRSC5_HDC_ENCODER_H
+ #define INCLUDED_NRSC5_HDC_ENCODER_H
+ 
+diff --git a/include/nrsc5/l1_fm_encoder.h b/include/nrsc5/l1_fm_encoder.h
+index 9cebec6..52df09d 100644
+--- include/nrsc5/l1_fm_encoder.h
++++ include/nrsc5/l1_fm_encoder.h
+@@ -18,7 +18,6 @@
+  * Boston, MA 02110-1301, USA.
+  */
+ 
+-
+ #ifndef INCLUDED_NRSC5_L1_FM_ENCODER_H
+ #define INCLUDED_NRSC5_L1_FM_ENCODER_H
+ 
+diff --git a/include/nrsc5/l2_encoder.h b/include/nrsc5/l2_encoder.h
+index 935f3b6..4a3bac0 100644
+--- include/nrsc5/l2_encoder.h
++++ include/nrsc5/l2_encoder.h
+@@ -18,7 +18,6 @@
+  * Boston, MA 02110-1301, USA.
+  */
+ 
+-
+ #ifndef INCLUDED_NRSC5_L2_ENCODER_H
+ #define INCLUDED_NRSC5_L2_ENCODER_H
+ 
+diff --git a/include/nrsc5/psd_encoder.h b/include/nrsc5/psd_encoder.h
+index f916c71..d6cbca5 100644
+--- include/nrsc5/psd_encoder.h
++++ include/nrsc5/psd_encoder.h
+@@ -18,7 +18,6 @@
+  * Boston, MA 02110-1301, USA.
+  */
+ 
+-
+ #ifndef INCLUDED_NRSC5_PSD_ENCODER_H
+ #define INCLUDED_NRSC5_PSD_ENCODER_H
+ 
+diff --git a/include/nrsc5/sis_encoder.h b/include/nrsc5/sis_encoder.h
+index ae65c2f..73e26de 100644
+--- include/nrsc5/sis_encoder.h
++++ include/nrsc5/sis_encoder.h
+@@ -18,7 +18,6 @@
+  * Boston, MA 02110-1301, USA.
+  */
+ 
+-
+ #ifndef INCLUDED_NRSC5_SIS_ENCODER_H
+ #define INCLUDED_NRSC5_SIS_ENCODER_H
+ 
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 9f87e20..a23aef5 100644
+--- lib/CMakeLists.txt
++++ lib/CMakeLists.txt
+@@ -1,6 +1,7 @@
+-# Copyright 2011,2012,2016 Free Software Foundation, Inc.
++# Copyright 2011,2012,2016,2018,2019 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -22,25 +23,26 @@
+ ########################################################################
+ include(GrPlatform) #define LIB_SUFFIX
+ 
+-include_directories(${Boost_INCLUDE_DIR})
+-link_directories(${Boost_LIBRARY_DIRS})
+-
+ list(APPEND nrsc5_sources
++    hdc_encoder_impl.cc
+     l1_fm_encoder_impl.cc
+-    sis_encoder_impl.cc
+     l2_encoder_impl.cc
+-    hdc_encoder_impl.cc
+     psd_encoder_impl.cc
++    sis_encoder_impl.cc
+ )
+ 
+ set(nrsc5_sources "${nrsc5_sources}" PARENT_SCOPE)
+ if(NOT nrsc5_sources)
+-	MESSAGE(STATUS "No C++ sources... skipping lib/")
+-	return()
++    MESSAGE(STATUS "No C++ sources... skipping lib/")
++    return()
+ endif(NOT nrsc5_sources)
+ 
+ add_library(gnuradio-nrsc5 SHARED ${nrsc5_sources})
+-target_link_libraries(gnuradio-nrsc5 ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES} fdk-aac)
++target_link_libraries(gnuradio-nrsc5 gnuradio::gnuradio-runtime gnuradio::gnuradio-fec fdk-aac)
++target_include_directories(gnuradio-nrsc5
++    PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
++    PUBLIC $<INSTALL_INTERFACE:include>
++  )
+ set_target_properties(gnuradio-nrsc5 PROPERTIES DEFINE_SYMBOL "gnuradio_nrsc5_EXPORTS")
+ 
+ if(APPLE)
+@@ -53,34 +55,34 @@ endif(APPLE)
+ # Install built library files
+ ########################################################################
+ include(GrMiscUtils)
+-GR_LIBRARY_FOO(gnuradio-nrsc5 RUNTIME_COMPONENT "nrsc5_runtime" DEVEL_COMPONENT "nrsc5_devel")
++GR_LIBRARY_FOO(gnuradio-nrsc5)
++
++########################################################################
++# Print summary
++########################################################################
++message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
++message(STATUS "Building for version: ${VERSION} / ${LIBVER}")
+ 
+ ########################################################################
+ # Build and register unit test
+ ########################################################################
+ include(GrTest)
+ 
+-include_directories(${CPPUNIT_INCLUDE_DIRS})
+-
++# If your unit tests require special include paths, add them here
++#include_directories()
++# List all files that contain Boost.UTF unit tests here
+ list(APPEND test_nrsc5_sources
+-    ${CMAKE_CURRENT_SOURCE_DIR}/test_nrsc5.cc
+-    ${CMAKE_CURRENT_SOURCE_DIR}/qa_nrsc5.cc
+ )
++# Anything we need to link to for the unit tests go here
++list(APPEND GR_TEST_TARGET_DEPS gnuradio-nrsc5)
+ 
+-add_executable(test-nrsc5 ${test_nrsc5_sources})
+-
+-target_link_libraries(
+-  test-nrsc5
+-  ${GNURADIO_RUNTIME_LIBRARIES}
+-  ${Boost_LIBRARIES}
+-  ${CPPUNIT_LIBRARIES}
+-  gnuradio-nrsc5
+-)
++if(NOT test_nrsc5_sources)
++    MESSAGE(STATUS "No C++ unit tests... skipping")
++    return()
++endif(NOT test_nrsc5_sources)
+ 
+-GR_ADD_TEST(test_nrsc5 test-nrsc5)
+-
+-########################################################################
+-# Print summary
+-########################################################################
+-message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
+-message(STATUS "Building for version: ${VERSION} / ${LIBVER}")
++foreach(qa_file ${test_nrsc5_sources})
++    GR_ADD_CPP_TEST("nrsc5_${qa_file}"
++        ${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
++    )
++endforeach(qa_file)
+diff --git a/lib/hdc_encoder_impl.cc b/lib/hdc_encoder_impl.cc
+index 706c2ac..89b1374 100644
+--- lib/hdc_encoder_impl.cc
++++ lib/hdc_encoder_impl.cc
+@@ -35,6 +35,7 @@ namespace gr {
+         (new hdc_encoder_impl(channels, bitrate));
+     }
+ 
++
+     /*
+      * The private constructor
+      */
+diff --git a/lib/hdc_encoder_impl.h b/lib/hdc_encoder_impl.h
+index ff6b1d2..aa5a5a6 100644
+--- lib/hdc_encoder_impl.h
++++ lib/hdc_encoder_impl.h
+@@ -54,6 +54,7 @@ namespace gr {
+            gr_vector_int &ninput_items,
+            gr_vector_const_void_star &input_items,
+            gr_vector_void_star &output_items);
++
+     };
+ 
+   } // namespace nrsc5
+diff --git a/lib/l1_fm_encoder_impl.cc b/lib/l1_fm_encoder_impl.cc
+index 6861700..bef95ea 100644
+--- lib/l1_fm_encoder_impl.cc
++++ lib/l1_fm_encoder_impl.cc
+@@ -105,6 +105,7 @@ namespace gr {
+         (new l1_fm_encoder_impl(psm, ssm));
+     }
+ 
++
+     /*
+      * The private constructor
+      */
+diff --git a/lib/l1_fm_encoder_impl.h b/lib/l1_fm_encoder_impl.h
+index e0bba24..a1db3c2 100644
+--- lib/l1_fm_encoder_impl.h
++++ lib/l1_fm_encoder_impl.h
+@@ -105,6 +105,7 @@ namespace gr {
+            gr_vector_int &ninput_items,
+            gr_vector_const_void_star &input_items,
+            gr_vector_void_star &output_items);
++
+     };
+ 
+   } // namespace nrsc5
+diff --git a/lib/l2_encoder_impl.cc b/lib/l2_encoder_impl.cc
+index ce14714..2ef81c8 100644
+--- lib/l2_encoder_impl.cc
++++ lib/l2_encoder_impl.cc
+@@ -41,6 +41,7 @@ namespace gr {
+         (new l2_encoder_impl(num_progs, first_prog, size));
+     }
+ 
++
+     /*
+      * The private constructor
+      */
+diff --git a/lib/l2_encoder_impl.h b/lib/l2_encoder_impl.h
+index 9fa9494..084395a 100644
+--- lib/l2_encoder_impl.h
++++ lib/l2_encoder_impl.h
+@@ -85,6 +85,7 @@ namespace gr {
+            gr_vector_int &ninput_items,
+            gr_vector_const_void_star &input_items,
+            gr_vector_void_star &output_items);
++
+     };
+ 
+   } // namespace nrsc5
+diff --git a/lib/psd_encoder_impl.cc b/lib/psd_encoder_impl.cc
+index acb4010..29c9ed7 100644
+--- lib/psd_encoder_impl.cc
++++ lib/psd_encoder_impl.cc
+@@ -35,6 +35,7 @@ namespace gr {
+         (new psd_encoder_impl(prog_num, title, artist));
+     }
+ 
++
+     /*
+      * The private constructor
+      */
+diff --git a/lib/qa_nrsc5.cc b/lib/qa_nrsc5.cc
+deleted file mode 100644
+index b523eb2..0000000
+--- lib/qa_nrsc5.cc
++++ /dev/null
+@@ -1,36 +0,0 @@
+-/*
+- * Copyright 2012 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-
+-/*
+- * This class gathers together all the test cases for the gr-filter
+- * directory into a single test suite.  As you create new test cases,
+- * add them here.
+- */
+-
+-#include "qa_nrsc5.h"
+-
+-CppUnit::TestSuite *
+-qa_nrsc5::suite()
+-{
+-  CppUnit::TestSuite *s = new CppUnit::TestSuite("nrsc5");
+-
+-  return s;
+-}
+diff --git a/lib/qa_nrsc5.h b/lib/qa_nrsc5.h
+deleted file mode 100644
+index 8ccf0f5..0000000
+--- lib/qa_nrsc5.h
++++ /dev/null
+@@ -1,38 +0,0 @@
+-/* -*- c++ -*- */
+-/*
+- * Copyright 2012 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-
+-#ifndef _QA_NRSC5_H_
+-#define _QA_NRSC5_H_
+-
+-#include <gnuradio/attributes.h>
+-#include <cppunit/TestSuite.h>
+-
+-//! collect all the tests for the gr-filter directory
+-
+-class __GR_ATTR_EXPORT qa_nrsc5
+-{
+- public:
+-  //! return suite of tests for all of gr-filter directory
+-  static CppUnit::TestSuite *suite();
+-};
+-
+-#endif /* _QA_NRSC5_H_ */
+diff --git a/lib/sis_encoder_impl.cc b/lib/sis_encoder_impl.cc
+index 2e1cb19..714bfb0 100644
+--- lib/sis_encoder_impl.cc
++++ lib/sis_encoder_impl.cc
+@@ -35,6 +35,7 @@ namespace gr {
+         (new sis_encoder_impl(short_name));
+     }
+ 
++
+     /*
+      * The private constructor
+      */
+diff --git a/lib/test_nrsc5.cc b/lib/test_nrsc5.cc
+deleted file mode 100644
+index 59bd57c..0000000
+--- lib/test_nrsc5.cc
++++ /dev/null
+@@ -1,48 +0,0 @@
+-/* -*- c++ -*- */
+-/*
+- * Copyright 2012 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-
+-#ifdef HAVE_CONFIG_H
+-#include "config.h"
+-#endif
+-
+-#include <cppunit/TextTestRunner.h>
+-#include <cppunit/XmlOutputter.h>
+-
+-#include <gnuradio/unittests.h>
+-#include "qa_nrsc5.h"
+-#include <iostream>
+-#include <fstream>
+-
+-int
+-main (int argc, char **argv)
+-{
+-  CppUnit::TextTestRunner runner;
+-  std::ofstream xmlfile(get_unittest_path("nrsc5.xml").c_str());
+-  CppUnit::XmlOutputter *xmlout = new CppUnit::XmlOutputter(&runner.result(), xmlfile);
+-
+-  runner.addTest(qa_nrsc5::suite());
+-  runner.setOutputter(xmlout);
+-
+-  bool was_successful = runner.run("", false);
+-
+-  return was_successful ? 0 : 1;
+-}
+diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
+index d0b133e..9b25913 100644
+--- python/CMakeLists.txt
++++ python/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -41,8 +42,8 @@ include(GrTest)
+ 
+ set(GR_TEST_TARGET_DEPS gnuradio-nrsc5)
+ set(GR_TEST_PYTHON_DIRS ${CMAKE_BINARY_DIR}/swig)
++GR_ADD_TEST(qa_hdc_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_hdc_encoder.py)
+ GR_ADD_TEST(qa_l1_fm_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_l1_fm_encoder.py)
+-GR_ADD_TEST(qa_sis_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_sis_encoder.py)
+ GR_ADD_TEST(qa_l2_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_l2_encoder.py)
+-GR_ADD_TEST(qa_hdc_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_hdc_encoder.py)
+ GR_ADD_TEST(qa_psd_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_psd_encoder.py)
++GR_ADD_TEST(qa_sis_encoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_sis_encoder.py)
+diff --git a/python/__init__.py b/python/__init__.py
+index f192a2d..476fb00 100644
+--- python/__init__.py
++++ python/__init__.py
+@@ -22,13 +22,14 @@
+ This is the GNU Radio NRSC5 module. Place your Python package
+ description here (python/__init__.py).
+ '''
++from __future__ import unicode_literals
+ 
+ # import swig generated symbols into the nrsc5 namespace
+ try:
+-	# this might fail if the module is python-only
+-	from nrsc5_swig import *
++    # this might fail if the module is python-only
++    from .nrsc5_swig import *
+ except ImportError:
+-	pass
++    pass
+ 
+ # import any pure python here
+ #
+diff --git a/python/build_utils.py b/python/build_utils.py
+deleted file mode 100644
+index cf58a97..0000000
+--- python/build_utils.py
++++ /dev/null
+@@ -1,226 +0,0 @@
+-#
+-# Copyright 2004,2009,2012 Free Software Foundation, Inc.
+-#
+-# This file is part of GNU Radio
+-#
+-# GNU Radio is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 3, or (at your option)
+-# any later version.
+-#
+-# GNU Radio is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with GNU Radio; see the file COPYING.  If not, write to
+-# the Free Software Foundation, Inc., 51 Franklin Street,
+-# Boston, MA 02110-1301, USA.
+-#
+-
+-"""Misc utilities used at build time
+-"""
+-
+-import re, os, os.path
+-from build_utils_codes import *
+-
+-
+-# set srcdir to the directory that contains Makefile.am
+-try:
+-    srcdir = os.environ['srcdir']
+-except KeyError, e:
+-    srcdir = "."
+-srcdir = srcdir + '/'
+-
+-# set do_makefile to either true or false dependeing on the environment
+-try:
+-    if os.environ['do_makefile'] == '0':
+-        do_makefile = False
+-    else:
+-        do_makefile = True
+-except KeyError, e:
+-    do_makefile = False
+-
+-# set do_sources to either true or false dependeing on the environment
+-try:
+-    if os.environ['do_sources'] == '0':
+-        do_sources = False
+-    else:
+-        do_sources = True
+-except KeyError, e:
+-    do_sources = True
+-
+-name_dict = {}
+-
+-def log_output_name (name):
+-    (base, ext) = os.path.splitext (name)
+-    ext = ext[1:]                       # drop the leading '.'
+-
+-    entry = name_dict.setdefault (ext, [])
+-    entry.append (name)
+-
+-def open_and_log_name (name, dir):
+-    global do_sources
+-    if do_sources:
+-        f = open (name, dir)
+-    else:
+-        f = None
+-    log_output_name (name)
+-    return f
+-
+-def expand_template (d, template_filename, extra = ""):
+-    '''Given a dictionary D and a TEMPLATE_FILENAME, expand template into output file
+-    '''
+-    global do_sources
+-    output_extension = extract_extension (template_filename)
+-    template = open_src (template_filename, 'r')
+-    output_name = d['NAME'] + extra + '.' + output_extension
+-    log_output_name (output_name)
+-    if do_sources:
+-        output = open (output_name, 'w')
+-        do_substitution (d, template, output)
+-        output.close ()
+-    template.close ()
+-
+-def output_glue (dirname):
+-    output_makefile_fragment ()
+-    output_ifile_include (dirname)
+-
+-def output_makefile_fragment ():
+-    global do_makefile
+-    if not do_makefile:
+-        return
+-# overwrite the source, which must be writable; this should have been
+-# checked for beforehand in the top-level Makefile.gen.gen .
+-    f = open (os.path.join (os.environ.get('gendir', os.environ.get('srcdir', '.')), 'Makefile.gen'), 'w')
+-    f.write ('#\n# This file is machine generated.  All edits will be overwritten\n#\n')
+-    output_subfrag (f, 'h')
+-    output_subfrag (f, 'i')
+-    output_subfrag (f, 'cc')
+-    f.close ()
+-
+-def output_ifile_include (dirname):
+-    global do_sources
+-    if do_sources:
+-        f = open ('%s_generated.i' % (dirname,), 'w')
+-        f.write ('//\n// This file is machine generated.  All edits will be overwritten\n//\n')
+-        files = name_dict.setdefault ('i', [])
+-        files.sort ()
+-        f.write ('%{\n')
+-        for file in files:
+-            f.write ('#include <%s>\n' % (file[0:-1] + 'h',))
+-        f.write ('%}\n\n')
+-        for file in files:
+-            f.write ('%%include <%s>\n' % (file,))
+-
+-def output_subfrag (f, ext):
+-    files = name_dict.setdefault (ext, [])
+-    files.sort ()
+-    f.write ("GENERATED_%s =" % (ext.upper ()))
+-    for file in files:
+-        f.write (" \\\n\t%s" % (file,))
+-    f.write ("\n\n")
+-
+-def extract_extension (template_name):
+-    # template name is something like: GrFIRfilterXXX.h.t
+-    # we return everything between the penultimate . and .t
+-    mo = re.search (r'\.([a-z]+)\.t$', template_name)
+-    if not mo:
+-        raise ValueError, "Incorrectly formed template_name '%s'" % (template_name,)
+-    return mo.group (1)
+-
+-def open_src (name, mode):
+-    global srcdir
+-    return open (os.path.join (srcdir, name), mode)
+-
+-def do_substitution (d, in_file, out_file):
+-    def repl (match_obj):
+-        key = match_obj.group (1)
+-        # print key
+-        return d[key]
+-
+-    inp = in_file.read ()
+-    out = re.sub (r"@([a-zA-Z0-9_]+)@", repl, inp)
+-    out_file.write (out)
+-
+-
+-
+-copyright = '''/* -*- c++ -*- */
+-/*
+- * Copyright 2003,2004 Free Software Foundation, Inc.
+- *
+- * This file is part of GNU Radio
+- *
+- * GNU Radio is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 3, or (at your option)
+- * any later version.
+- *
+- * GNU Radio is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with GNU Radio; see the file COPYING.  If not, write to
+- * the Free Software Foundation, Inc., 51 Franklin Street,
+- * Boston, MA 02110-1301, USA.
+- */
+-'''
+-
+-def is_complex (code3):
+-    if i_code (code3) == 'c' or o_code (code3) == 'c':
+-        return '1'
+-    else:
+-        return '0'
+-
+-
+-def standard_dict (name, code3, package='gr'):
+-    d = {}
+-    d['NAME'] = name
+-    d['NAME_IMPL'] = name+'_impl'
+-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())
+-    d['GUARD_NAME_IMPL'] = 'INCLUDED_%s_%s_IMPL_H' % (package.upper(), name.upper())
+-    d['BASE_NAME'] = re.sub ('^' + package + '_', '', name)
+-    d['SPTR_NAME'] = '%s_sptr' % name
+-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'
+-    d['COPYRIGHT'] = copyright
+-    d['TYPE'] = i_type (code3)
+-    d['I_TYPE'] = i_type (code3)
+-    d['O_TYPE'] = o_type (code3)
+-    d['TAP_TYPE'] = tap_type (code3)
+-    d['IS_COMPLEX'] = is_complex (code3)
+-    return d
+-
+-
+-def standard_dict2 (name, code3, package):
+-    d = {}
+-    d['NAME'] = name
+-    d['BASE_NAME'] = name
+-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())
+-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'
+-    d['COPYRIGHT'] = copyright
+-    d['TYPE'] = i_type (code3)
+-    d['I_TYPE'] = i_type (code3)
+-    d['O_TYPE'] = o_type (code3)
+-    d['TAP_TYPE'] = tap_type (code3)
+-    d['IS_COMPLEX'] = is_complex (code3)
+-    return d
+-
+-def standard_impl_dict2 (name, code3, package):
+-    d = {}
+-    d['NAME'] = name
+-    d['IMPL_NAME'] = name
+-    d['BASE_NAME'] = name.rstrip("impl").rstrip("_")
+-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())
+-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'
+-    d['COPYRIGHT'] = copyright
+-    d['FIR_TYPE'] = "fir_filter_" + code3
+-    d['CFIR_TYPE'] = "fir_filter_" + code3[0:2] + 'c'
+-    d['TYPE'] = i_type (code3)
+-    d['I_TYPE'] = i_type (code3)
+-    d['O_TYPE'] = o_type (code3)
+-    d['TAP_TYPE'] = tap_type (code3)
+-    d['IS_COMPLEX'] = is_complex (code3)
+-    return d
+diff --git a/python/qa_hdc_encoder.py b/python/qa_hdc_encoder.py
+index b57d841..7266aa9 100755
+--- python/qa_hdc_encoder.py
++++ python/qa_hdc_encoder.py
+@@ -23,19 +23,19 @@
+ from gnuradio import blocks
+ import nrsc5_swig as nrsc5
+ 
+-class qa_hdc_encoder (gr_unittest.TestCase):
++class qa_hdc_encoder(gr_unittest.TestCase):
+ 
+-    def setUp (self):
+-        self.tb = gr.top_block ()
++    def setUp(self):
++        self.tb = gr.top_block()
+ 
+-    def tearDown (self):
++    def tearDown(self):
+         self.tb = None
+ 
+-    def test_001_t (self):
++    def test_001_t(self):
+         # set up fg
+-        self.tb.run ()
++        self.tb.run()
+         # check data
+ 
+ 
+ if __name__ == '__main__':
+-    gr_unittest.run(qa_hdc_encoder, "qa_hdc_encoder.xml")
++    gr_unittest.run(qa_hdc_encoder)
+diff --git a/python/qa_l1_fm_encoder.py b/python/qa_l1_fm_encoder.py
+index 9b22e0e..3ebd761 100755
+--- python/qa_l1_fm_encoder.py
++++ python/qa_l1_fm_encoder.py
+@@ -23,19 +23,19 @@
+ from gnuradio import blocks
+ import nrsc5_swig as nrsc5
+ 
+-class qa_l1_fm_encoder (gr_unittest.TestCase):
++class qa_l1_fm_encoder(gr_unittest.TestCase):
+ 
+-    def setUp (self):
+-        self.tb = gr.top_block ()
++    def setUp(self):
++        self.tb = gr.top_block()
+ 
+-    def tearDown (self):
++    def tearDown(self):
+         self.tb = None
+ 
+-    def test_001_t (self):
++    def test_001_t(self):
+         # set up fg
+-        self.tb.run ()
++        self.tb.run()
+         # check data
+ 
+ 
+ if __name__ == '__main__':
+-    gr_unittest.run(qa_l1_fm_encoder, "qa_l1_fm_encoder.xml")
++    gr_unittest.run(qa_l1_fm_encoder)
+diff --git a/python/qa_l2_encoder.py b/python/qa_l2_encoder.py
+index cb71f27..cb48bd2 100755
+--- python/qa_l2_encoder.py
++++ python/qa_l2_encoder.py
+@@ -23,19 +23,19 @@
+ from gnuradio import blocks
+ import nrsc5_swig as nrsc5
+ 
+-class qa_l2_encoder (gr_unittest.TestCase):
++class qa_l2_encoder(gr_unittest.TestCase):
+ 
+-    def setUp (self):
+-        self.tb = gr.top_block ()
++    def setUp(self):
++        self.tb = gr.top_block()
+ 
+-    def tearDown (self):
++    def tearDown(self):
+         self.tb = None
+ 
+-    def test_001_t (self):
++    def test_001_t(self):
+         # set up fg
+-        self.tb.run ()
++        self.tb.run()
+         # check data
+ 
+ 
+ if __name__ == '__main__':
+-    gr_unittest.run(qa_l2_encoder, "qa_l2_encoder.xml")
++    gr_unittest.run(qa_l2_encoder)
+diff --git a/python/qa_psd_encoder.py b/python/qa_psd_encoder.py
+index a274a9c..944240d 100755
+--- python/qa_psd_encoder.py
++++ python/qa_psd_encoder.py
+@@ -23,19 +23,19 @@
+ from gnuradio import blocks
+ import nrsc5_swig as nrsc5
+ 
+-class qa_psd_encoder (gr_unittest.TestCase):
++class qa_psd_encoder(gr_unittest.TestCase):
+ 
+-    def setUp (self):
+-        self.tb = gr.top_block ()
++    def setUp(self):
++        self.tb = gr.top_block()
+ 
+-    def tearDown (self):
++    def tearDown(self):
+         self.tb = None
+ 
+-    def test_001_t (self):
++    def test_001_t(self):
+         # set up fg
+-        self.tb.run ()
++        self.tb.run()
+         # check data
+ 
+ 
+ if __name__ == '__main__':
+-    gr_unittest.run(qa_psd_encoder, "qa_psd_encoder.xml")
++    gr_unittest.run(qa_psd_encoder)
+diff --git a/python/qa_sis_encoder.py b/python/qa_sis_encoder.py
+index 96a83cd..485ab68 100755
+--- python/qa_sis_encoder.py
++++ python/qa_sis_encoder.py
+@@ -23,19 +23,19 @@
+ from gnuradio import blocks
+ import nrsc5_swig as nrsc5
+ 
+-class qa_sis_encoder (gr_unittest.TestCase):
++class qa_sis_encoder(gr_unittest.TestCase):
+ 
+-    def setUp (self):
+-        self.tb = gr.top_block ()
++    def setUp(self):
++        self.tb = gr.top_block()
+ 
+-    def tearDown (self):
++    def tearDown(self):
+         self.tb = None
+ 
+-    def test_001_t (self):
++    def test_001_t(self):
+         # set up fg
+-        self.tb.run ()
++        self.tb.run()
+         # check data
+ 
+ 
+ if __name__ == '__main__':
+-    gr_unittest.run(qa_sis_encoder, "qa_sis_encoder.xml")
++    gr_unittest.run(qa_sis_encoder)
+diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
+index 06747c5..351aa9b 100644
+--- swig/CMakeLists.txt
++++ swig/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ # Copyright 2011 Free Software Foundation, Inc.
+ #
+-# This file is part of GNU Radio
++# This file was generated by gr_modtool, a tool from the GNU Radio framework
++# This file is a part of gr-nrsc5
+ #
+ # GNU Radio is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -21,15 +22,15 @@
+ # Check if there is C++ code at all
+ ########################################################################
+ if(NOT nrsc5_sources)
+-	MESSAGE(STATUS "No C++ sources... skipping swig/")
+-	return()
++    MESSAGE(STATUS "No C++ sources... skipping swig/")
++    return()
+ endif(NOT nrsc5_sources)
+ 
+ ########################################################################
+ # Include swig generation macros
+ ########################################################################
+ find_package(SWIG)
+-find_package(PythonLibs 2)
++find_package(PythonLibs)
+ if(NOT SWIG_FOUND OR NOT PYTHONLIBS_FOUND)
+     return()
+ endif()
+@@ -39,11 +40,11 @@ include(GrPython)
+ ########################################################################
+ # Setup swig generation
+ ########################################################################
+-foreach(incdir ${GNURADIO_RUNTIME_INCLUDE_DIRS})
+-    list(APPEND GR_SWIG_INCLUDE_DIRS ${incdir}/gnuradio/swig)
+-endforeach(incdir)
++set(GR_SWIG_INCLUDE_DIRS $<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>)
++set(GR_SWIG_TARGET_DEPS gnuradio::runtime_swig)
+ 
+ set(GR_SWIG_LIBRARIES gnuradio-nrsc5)
++
+ set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/nrsc5_swig_doc.i)
+ set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include)
+ 
+diff --git a/swig/nrsc5_swig.i b/swig/nrsc5_swig.i
+index 99841a3..4b75b62 100644
+--- swig/nrsc5_swig.i
++++ swig/nrsc5_swig.i
+@@ -2,27 +2,26 @@
+ 
+ #define NRSC5_API
+ 
+-%include "gnuradio.i"			// the common stuff
++%include "gnuradio.i"           // the common stuff
+ 
+ //load generated python docstrings
+ %include "nrsc5_swig_doc.i"
+ 
+ %{
++#include "nrsc5/hdc_encoder.h"
+ #include "nrsc5/l1_fm_encoder.h"
+-#include "nrsc5/sis_encoder.h"
+ #include "nrsc5/l2_encoder.h"
+-#include "nrsc5/hdc_encoder.h"
+ #include "nrsc5/psd_encoder.h"
++#include "nrsc5/sis_encoder.h"
+ %}
+ 
+-
++%include "nrsc5/hdc_encoder.h"
++GR_SWIG_BLOCK_MAGIC2(nrsc5, hdc_encoder);
+ %include "nrsc5/l1_fm_encoder.h"
+ GR_SWIG_BLOCK_MAGIC2(nrsc5, l1_fm_encoder);
+-%include "nrsc5/sis_encoder.h"
+-GR_SWIG_BLOCK_MAGIC2(nrsc5, sis_encoder);
+ %include "nrsc5/l2_encoder.h"
+ GR_SWIG_BLOCK_MAGIC2(nrsc5, l2_encoder);
+-%include "nrsc5/hdc_encoder.h"
+-GR_SWIG_BLOCK_MAGIC2(nrsc5, hdc_encoder);
+ %include "nrsc5/psd_encoder.h"
+ GR_SWIG_BLOCK_MAGIC2(nrsc5, psd_encoder);
++%include "nrsc5/sis_encoder.h"
++GR_SWIG_BLOCK_MAGIC2(nrsc5, sis_encoder);
diff --git a/srcpkgs/gnuradio-nrsc5/template b/srcpkgs/gnuradio-nrsc5/template
index 88ca56272d6..7870d029cf7 100644
--- a/srcpkgs/gnuradio-nrsc5/template
+++ b/srcpkgs/gnuradio-nrsc5/template
@@ -1,11 +1,12 @@
 # Template file for 'gnuradio-nrsc5'
 pkgname=gnuradio-nrsc5
 version=1.0.0
-revision=2
+revision=3
 wrksrc="gr-nrsc5-${version}"
 build_style=cmake
-hostmakedepends="git autoconf automake libtool swig"
-makedepends="gnuradio-devel boost-devel libcppunit-devel python-devel"
+hostmakedepends="git autoconf automake libtool swig pkg-config"
+makedepends="gnuradio-devel boost-devel libcppunit-devel python3-devel
+ log4cpp-devel mpir-devel gsl-devel volk-devel"
 short_desc="GNU Radio implementation of HD Radio"
 maintainer="Remi Pommarel <repk@triplefau.lt>"
 license="GPL-3.0-or-later"

From 52889938917bfef18e9213e8bf8f96ca73e6ab55 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sun, 2 Feb 2020 10:23:13 +0100
Subject: [PATCH 09/10] urh: rebuild against uhd-3.15.0.0_1

---
 srcpkgs/urh/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/urh/template b/srcpkgs/urh/template
index 65a6a1a1bae..ddec89734bd 100644
--- a/srcpkgs/urh/template
+++ b/srcpkgs/urh/template
@@ -1,9 +1,8 @@
 # Template file for 'urh'
 pkgname=urh
 version=2.8.2
-revision=1
+revision=2
 build_style=python3-module
-pycompile_module="urh"
 hostmakedepends="python3-setuptools python3-Cython"
 makedepends="python3-devel python3-PyQt5 libomp-devel libairspy-devel librtlsdr-devel
  libhackrf-devel uhd-devel libgomp-devel"

From 6f38412b68bc0eb06845c0ce679bfcc05cd50b26 Mon Sep 17 00:00:00 2001
From: bra1nwave <bra1nwave@protonmail.com>
Date: Sun, 2 Feb 2020 10:27:42 +0100
Subject: [PATCH 10/10] SoapyUHD: rebuild against uhd-3.15.0.0_1

---
 srcpkgs/SoapyUHD/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/SoapyUHD/template b/srcpkgs/SoapyUHD/template
index 16759ca3642..c0dbc0ad905 100644
--- a/srcpkgs/SoapyUHD/template
+++ b/srcpkgs/SoapyUHD/template
@@ -1,13 +1,13 @@
 # Template file for 'SoapyUHD'
 pkgname=SoapyUHD
 version=0.3.6
-revision=1
+revision=2
 wrksrc="${pkgname}-soapy-uhd-${version}"
 build_style=cmake
 hostmakedepends="pkg-config"
 makedepends="SoapySDR-devel uhd-devel"
 short_desc="SoapySDR module for Ettus UHD"
-maintainer="bra1nwave <brainwave@openmailbox.org>"
+maintainer="bra1nwave <bra1nwave@protonmail.com>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/pothosware/SoapyUHD"
 distfiles="${homepage}/archive/soapy-uhd-${version}.tar.gz"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: gnuradio: update to 3.8.0.0.
  2020-02-02 16:42 [PR PATCH] gnuradio: update to 3.8.0.0 voidlinux-github
@ 2020-02-09 18:08 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2020-02-09 18:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

There's a merged pull request on the void-packages repository

gnuradio: update to 3.8.0.0.
https://github.com/void-linux/void-packages/pull/18741

Description:
fixes https://github.com/void-linux/void-packages/issues/18697

The patches for `gnuradio-osmosdr` are from [Debian](https://sources.debian.org/patches/gr-osmosdr/0.1.5-1/)

Build logs: [i686](http://sprunge.us/MecsiM) | [x86_64](http://sprunge.us/RzdWAq) | [x86_64-musl](http://sprunge.us/lWfNNc)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-09 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 16:42 [PR PATCH] gnuradio: update to 3.8.0.0 voidlinux-github
2020-02-09 18:08 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).