From 32f9c796f5b30b7bd802c5f1802a94de2b50ec10 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Wed, 31 Oct 2012 20:21:19 -0700
Subject: build system work
---
python/runtime.i | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 python/runtime.i
(limited to 'python/runtime.i')
diff --git a/python/runtime.i b/python/runtime.i
new file mode 100644
index 0000000..8895a7f
--- /dev/null
+++ b/python/runtime.i
@@ -0,0 +1,71 @@
+//
+// Copyright 2012 Josh Blum
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program 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 Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+
+#define GR_CORE_API
+#define GRAS_API
+
+//not here to fight you swig, reference() is ambigi with shared ptr, but whatevs
+%ignore gri_agc_cc::reference();
+%ignore gri_agc2_ff::reference();
+%ignore gri_agc2_cc::reference();
+
+%{
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+%}
+
+%include
+%include
+%include
+%include
+
+#ifdef SW_RUNTIME
+
+%include "gras.i"
+
+#else
+
+//the bare minimum block inheritance interface to make things work but keep swig cxx file size down
+%include
+namespace gnuradio
+{
+ struct Block : Element{};
+ struct HierBlock : Element{};
+}
+struct gr_hier_block2 : gnuradio::HierBlock{};
+struct gr_block : gnuradio::Block{};
+struct gr_sync_block : gr_block{};
+struct gr_sync_interpolator : gr_sync_block{};
+struct gr_sync_decimator : gr_sync_block{};
+
+#endif
--
cgit