diff options
author | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 11:48:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 11:48:10 -0500 |
commit | d3e49a4e0c72ab81d18bf479d2f6cdccf443b616 (patch) | |
tree | 45576799fd50fe01dc894ce89c53682f8ddf680d /gr-utils/modtool/core/bind.py | |
parent | 6a4eef30b0ff16006ec31a901937619ff136737a (diff) |
modtool: move OOTs equal to components for 3.10
* modtool: move OOTs equal to components for 3.10
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* pybind: update some python dir references
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* cmake: have pybind address the correct header
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* runtime: extend the python search path
allow OOT modules to be installed in other places in PYTHONPATH that
have a gnuradio directory
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: update python paths for rm
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: minor fixes for new dir structure
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: update the installed cmake targets
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: add include(CMakePackageConfigHelpers)
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: test_modules dir under gnuradio
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-utils/modtool/core/bind.py')
-rw-r--r-- | gr-utils/modtool/core/bind.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-utils/modtool/core/bind.py b/gr-utils/modtool/core/bind.py index c83a320c00..2adf4d002d 100644 --- a/gr-utils/modtool/core/bind.py +++ b/gr-utils/modtool/core/bind.py @@ -69,9 +69,14 @@ class ModToolGenBindings(ModTool): else: raise ModToolException("No block name or regex was specified!") + if self.info['version'] in ['310']: + prefix_include_root = '/'.join(('gnuradio',self.info['modname'])) + else: + prefix_include_root = self.info['modname'] + files_to_process = [os.path.join(self.dir, self.info['includedir'], f'{blockname}.h') for blockname in blocknames_to_process] bg = BindingGenerator(prefix=gr.prefix(), namespace=[ - 'gr', self.info['modname']], prefix_include_root=self.info['modname'], output_dir=os.path.join(self.dir, 'python'), + 'gr', self.info['modname']], prefix_include_root=prefix_include_root, output_dir=self.info['pydir'], define_symbols=self.info['define_symbols'], addl_includes=self.info['addl_includes'], update_hash_only=self.info['update_hash_only']) for file_to_process in files_to_process: if self.info['update_hash_only']: |