summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/swig
Commit message (Collapse)AuthorAgeFilesLines
* pybind: removal of swig componentsJosh Morman2020-06-0430-2002/+0
|
* pmt: stop treating all pairs like they are dictsJacob Gilbert2020-05-051-0/+2
| | | | create a new derived class for pmt dicts so they can be distinguished without complicated try/catch logic, updated QA with a few additional checks. also added an is_pdu() method which returns true if the pmt is a pair of a dict-type PMT and a uniform-vector type, otherwise false
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-0114-33/+33
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* pmt: Fix RuntimeError in pmt_to_pythonMichael Byers2020-02-091-0/+3
| | | | | | | Python has a RuntimeError that's thrown during the pmt to_python function. Instead of throwing this error, SWIG has been updated to throw a TypeError. This allows us to keep the same behavior whereby we iterate over PMT types until the proper conversion is found
* Update license header to SPDX formatdevnulling2020-01-2728-363/+28
|
* Add a top_block parameter to control exception handlingScott Torborg2020-01-051-2/+2
| | | | | | | | | This restores past behavior where the scheduler catches exceptions raised in block threads, allowing flowgraphs to continue running after the failure of an individual block. It also adds optional new behavior, selected by setting catch_exceptions=False to the top block, which causes exceptions to not be caught. In this mode of operation, a std::terminate handler can be installed to print a stack trace before the flowgraph exits.
* Disable Python 2kMarcus Müller2020-01-045-25/+0
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* cmake: fix install dir of runtime_swigMichael Dickens2019-07-191-1/+1
|
* Add GR_PYTHON_RELATIVE to fix issue #2515 with runtime_swigTargets-release.cmakeToby Flynn2019-07-171-1/+1
| | | | | | | | | This commit fixes issue #2515. A new CMake variable, GR_PYTHON_RELATIVE is needed to properly create the CMake files used by OOTs when cross compiling or using sysroot based build systems see https://cmake.org/Bug/print_bug_page.php?bug_id=14367 for more information
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* runtime swig: correct the destination for runtime_swigTargets.cmakeMichael Dickens2019-05-281-1/+1
| | | | This destination matches that from GrMiscUtils.
* pmt: remove intrusive_ptrAndrej Rode2019-04-193-116/+5
|
* cmake: add CTRLPORT flag to swig defines for ctrlport blocksAndrej Rode2019-03-041-0/+3
|
* cmake: Update to modern CMake usageAndrej Rode2019-03-046-188/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes using target based setting of includes and link libraries. This will transitively add the includes and linking flags to dependent targets. This is still a work in progress since only the dynamic libraries have been touched and not all of include_directories directives are gone yet. cmake: remove GR_INCLUDE_SUBDIRECTORY macro Previously this macro was used to inject subdirectories in the current CMake namespace. This is generally undesired and pollutes the current context. previously GNU Radio CMake had a non-default option ENABLE_STATIC_LIBS to build both, shared libraries and static libraries. This seems to be a construction taken over from autotools and serves no purpuose in CMake and complicates the library building. cmake: remove GR_LIBTOOL and la generation support This looks like it was primarily used to support projects using autotools, but comments state that the generated .la files aren't compatible with autotools anyway. cmake: Bump required CMake version to 3.8 UseSWIG cmake uses syntax which requires at least CMake 3.8 and is non-trivial to change
* CMake: remove duplicately installed filesMarcus Müller2018-11-121-1/+0
| | | | | These subsequently appeared twice in install_manifest.txt, which lead to warnings/errors on deinstallation.
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-3112-108/+114
|\
| * Killing gengen: Merge branch 'cxx_templates_next' into nextMarcus Müller2018-08-292-2/+11
| |\
| | * pmt: replace file generation with pre-generated filesAndrej Rode2018-08-261-1/+0
| | |
| | * swig: add template block magicAndrej Rode2018-08-251-1/+11
| | |
| * | Removed unused complex_vec_testMarcus Müller2018-08-272-26/+0
| |/ | | | | | | doesn't seem to be a test fixture of any kind(?)
| * swig: enable SWIG_PYTHON_CAST_MODE to convert npy int types in py3kAndrej Rode2018-08-181-0/+1
| |
| * py3k: remove the six.b call since only py2.6 support depends on thatAndrej Rode2018-08-171-0/+8
| | | | | | | | | | | | | | | | | | Replace with encode('utf-8') mapping the surrogate mapped characters back to their original byte values. As per documentation http://www.swig.org/Doc3.0/Python.html 36.12.4 Add wrappercode to the swig definition to run python encode for Python3 and return raw bytes for Python2.
| * pmt: Serialize PMTs to byte strings in Python (and vice versa)Martin Braun2018-06-291-0/+41
| |
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-245-0/+31
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| | * swig: Install the py3compat.i moduleSylvain Munaut2017-09-111-0/+1
| | | | | | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| | * Merge branch 'next' into python3Johnathan Corgan2017-03-221-1/+0
| | |\ | | | | | | | | | | | | | | | | Conflicts: cmake/Modules/GrSwig.cmake
| | * | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-264-0/+30
| | | |
| * | | cleanup: remove dynamic exception specificationsAndrej Rode2018-02-062-16/+16
| | | |
| * | | Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
| |\ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into nextJohnathan Corgan2017-03-221-1/+0
| |\ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: gr-wxgui/lib/CMakeLists.txt
| * | | Merge branch 'master' into nextJohnathan Corgan2017-01-121-0/+1
| |\ \ \
| * | | | runtime: remove single-threaded schedulerJohnathan Corgan2016-09-032-55/+0
| | | | |
| * | | | runtime: add interface to get log_level for blocksNathan West2016-08-042-0/+2
| | | | |
| * | | | runtime: expose set_log_level for hier_blocksNathan West2016-08-041-0/+2
| | | | |
| * | | | runtime: expose set_log_level for blocksNathan West2016-08-041-0/+2
| | | | |
| * | | | Merge remote-tracking branch 'github/nuke-cpack' into nextJohnathan Corgan2016-08-031-3/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-vocoder/CMakeLists.txt
| | * | | | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
| * | | | | cmake: remove ENABLE_GR_LOG and require log4cppJohnathan Corgan2016-06-261-6/+0
| |/ / / /
* | | | | runtime: Use multiprecision rational arithmetic to propagate tagsAndy Walls2018-08-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid floating point precision problems in propagation of tags for the following cases: - Common relative rates that are non-terminating in binary (1/3, 1/5, 1/7, ...) - Large tag offsets - Inexact floating point reciprocals when specifying the relative rate This change to the runtime only fixes the tag propagation problems for blocks with a fixed/unchanging relative rate. This change adds a dependency on the MIPR library (a fork of the GMP library) to perform multiple precision interger rational arithmetic. MIPR was chosen as it purports to maintain a properly working Windows build for cross-platform compatability. Optimizations in MIPR are also targeted to ARM in additional to x86-64.
* | | | | swig block.i: add void set_output_multiple(int multiple)Jeff Long2018-06-251-0/+1
| |_|_|/ |/| | | | | | | | | | | Issue #1757
* | | | Comment typo fixing.luz.paz2018-02-031-1/+1
| |_|/ |/| | | | | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | | cmake: add log4cpp to runtime includesBastian Bloessl2017-03-221-1/+0
| |/ |/|
* | gnuradio-runtime/swig/tags.i: Making swig ignore gr::tag_t::operator= so ↵Darek Kawamoto2017-01-101-0/+1
|/ | | | that the annoying compile-time warning messages go away.
* include random.h in swig; add qa_random testcaseStefan2015-09-011-0/+2
|
* cmake & swig: more generic way to replace std::vector<size_t> by its ↵Michael Dickens2015-04-281-8/+12
| | | | correct-sized std::vector<TYPE>, but only with SWIG < 3.0; this issue seems to have been fixed with SWIG >= 3.0.
* Merge branch 'ctrlport'Johnathan Corgan2015-04-151-1/+3
|\
| * runtime: more generic version of prefs class.Tom Rondeau2015-04-021-1/+3
| | | | | | | | Adds another constructor to open a particular file to configure specific preferences.
* | Merge branch 'maint'Johnathan Corgan2015-04-041-0/+8
|\ \ | |/ |/| | | | | Conflicts: volk
| * runtime: fix deadlock in unlock() from Python #594Jiří Pinkava2015-04-011-0/+8
| |
* | gnuradio-runtime: modified buffer length types to size_t, moved buffer ↵Bill Clark2015-04-011-6/+6
| | | | | | | | length vectors into detail