summaryrefslogtreecommitdiff
path: root/grc/core/blocks/_build.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-4/+8
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc cpp generation: Establish the possibility to add find packagesVolker Schroer2021-09-021-0/+1
| | | | | | | | | Flowgraphs may use oot modules. When generating cpp code an oot module may require a package that is not provided by gnuradio. So I propose to add an additional entry parameters in the cpp template to provide a list of package names. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: Fix option_attributes check on inherited typeIgor Freire2021-04-191-3/+3
| | | | | | | | | | Run the option_attributes validation routine on the extended dictionary, i.e., after inheriting the properties from the base_key parameter. By doing so, if the dtype property is inherited, the _validate_option_attributes still sees it and does not throw a key error. Signed-off-by: Igor Freire <igor@blockstream.com>
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-201-1/+1
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* grc: Fix C++ code generationTerry May2020-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - Added support for C++ std::map<> from python dict - Fixed default initialization of parameters in main() - Added missing include for realtime scheduling - Added default CMake option for std=c++11 as this is required for gnuradio >= 3.8 - Fixed mako template to add initialization to parameter declarations in main() - Fixed C++ constructor initialization list generation - Fixed parameter type determination when an lvalue is used in an rvalue expression - Improved determining type of C++ variables - Added C++ support for gr_complex parameters - Fixed C++ generation of nested container types - Added C++ support for virtual source/sink - Moved cmake CMAKE_CXX_STANDARD 11 option from options.yml to CMakeLists.txt.mako - Fixed qtqui_sink to allow multiple instances - Revised virtual connection processing in cpp_top_block.py Reviewed-By: Håkon Vagsether <hauk142@gmail.com>
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* grc: introduce flag 'show_id' to show block idBastian Bloessl2019-06-291-1/+4
| | | | useful for variable and parameter blocks, but maybe others too
* grc: fix block flagsSebastian Koslowski2019-02-171-2/+1
|
* grc: fixes in epy and virtual blocks (fixes #2039)Sebastian Koslowski2019-02-121-10/+9
|
* Add C++ generationHåkon Vågsether2018-11-231-2/+12
|
* grc: Fix problems with option_attributesHåkon Vågsether2018-11-221-2/+19
| | | | | | Enabling the option_attributes to be accessed by the rest of the block's parameters by using a new string subtype. Also adding validation.
* grc: move port and param init to block builderSebastian Koslowski2017-11-081-6/+70
|
* grc: disable auto-conversion and implement json cacheSebastian Koslowski2017-11-081-4/+6
|
* [grc] fix conversion of <check> and rename them to assertsSebastian Koslowski2017-10-011-2/+2
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-0/+69
Includes basic converter from XML/Cheetah to YAML/Mako based block format.