diff options
author | Volker Schroer <3470424+dl1ksv@users.noreply.github.com> | 2020-10-22 14:51:45 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-10-28 13:45:58 -0400 |
commit | 30aa9bf5dc0a1032356a655830815fc541810d23 (patch) | |
tree | 42f8fb4852a45d6c66457aad402255c8086b6053 /gr-utils/modtool/core/bind.py | |
parent | 85dd61cbd2eede24a91039dd50f97670d5f3bac7 (diff) |
Make additional includes and defines available in the bind process
Diffstat (limited to 'gr-utils/modtool/core/bind.py')
-rw-r--r-- | gr-utils/modtool/core/bind.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-utils/modtool/core/bind.py b/gr-utils/modtool/core/bind.py index 726622406c..b11e9b675e 100644 --- a/gr-utils/modtool/core/bind.py +++ b/gr-utils/modtool/core/bind.py @@ -38,6 +38,7 @@ class ModToolGenBindings(ModTool): ModTool.__init__(self, blockname, **kwargs) self.info['pattern'] = blockname self.info['addl_includes'] = kwargs['addl_includes'] + self.info['define_symbols'] = kwargs['define_symbols'] def validate(self): """ Validates the arguments """ @@ -58,6 +59,8 @@ class ModToolGenBindings(ModTool): with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) file_to_process = os.path.join(self.dir, self.info['includedir'], self.info['blockname'] + '.h') + bg = BindingGenerator(prefix=gr.prefix(), namespace=[ - 'gr', self.info['modname']], prefix_include_root=self.info['modname'], output_dir=os.path.join(self.dir, 'python'), addl_includes=self.info['addl_includes']) + 'gr', self.info['modname']], prefix_include_root=self.info['modname'], output_dir=os.path.join(self.dir, 'python'), + define_symbols=self.info['define_symbols'], addl_includes=self.info['addl_includes']) bg.gen_file_binding(file_to_process) |