summaryrefslogtreecommitdiff
path: root/grc/compiler.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-1/+2
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Implement grcc --output switch for hierarchical blocksJaredD2021-09-271-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * grc: Implement --output functionality for grcc Reference gnradio Issue #2799. This commit adjusts some logic and code to enable the --output switch for grcc. Prior to this commit, grcc would only output to the GRC_HIER_PATH. The commit adjusts the various Generators in grc/core/generator to consistently use output_dir for the output directory. If it's None, then take from the platform.config.hier_block_lib_dir attribute which can be set via the GRC_HIER_PATH env var. The cpp_top_block generator was also modified to remote its __init__ function which appeared identical to its base TopBlockGenerator. I did not test c++ GRC output. * Make output directory if does not exist * Duplicate TopBlockGenerator __init__ without .py extension; base class object * Typo in os.makedirs kwarg * Added _warnings method from TopBlockGenerator Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com>
* 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
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-1/+3
| | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
* Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-11-171-1/+1
|
* grc: changes to grcc CLISebastian Koslowski2016-09-281-12/+15
|
* grc: rewrite grccSebastian Koslowski2016-09-231-0/+73