summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/core/rm.py
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 15:03:55 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commit999c0e723240ee783bca17942f77a9d05bbfc168 (patch)
tree3661aeb0ef10bad228df014a20e5b0a63627c833 /gr-utils/modtool/core/rm.py
parenta4e6d4d55b35ac36dd5915dec5145073d8ec3b9a (diff)
utils: add functionality to generate bindings
This currently exists in two places 1) Bindtool (longevity TBD) which calls blocktool to parse the public header file in the include directory 2) Modtool - binding of headers added to add and bind. rm, update, info, etc still TODO
Diffstat (limited to 'gr-utils/modtool/core/rm.py')
-rw-r--r--gr-utils/modtool/core/rm.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/gr-utils/modtool/core/rm.py b/gr-utils/modtool/core/rm.py
index 6c0746aba4..1a2a3535e4 100644
--- a/gr-utils/modtool/core/rm.py
+++ b/gr-utils/modtool/core/rm.py
@@ -90,24 +90,12 @@ class ModToolRemove(ModTool):
ed.delete_entry('GR_ADD_TEST', filebase)
ed.remove_double_newlines()
- def _make_swig_regex(filename):
- filebase = os.path.splitext(filename)[0]
- pyblockname = filebase.replace(self.info['modname'] + '_', '')
- regexp = r'(^\s*GR_SWIG_BLOCK_MAGIC2?\({},\s*{}\);|^\s*.include\s*"({}/)?{}"\s*)'.format \
- (self.info['modname'], pyblockname, self.info['modname'], filename)
- return regexp
# Go, go, go!
if not self.skip_subdirs['lib']:
self._run_subdir('lib', ('*.cc', '*.h'), ('add_library', 'list'),
cmakeedit_func=_remove_cc_test_case)
if not self.skip_subdirs['include']:
incl_files_deleted = self._run_subdir(self.info['includedir'], ('*.h',), ('install',))
- if not self.skip_subdirs['swig']:
- swig_files_deleted = self._run_subdir('swig', ('*.i',), ('install',))
- for f in incl_files_deleted + swig_files_deleted:
- # TODO do this on all *.i files
- remove_pattern_from_file(self._file['swig'], _make_swig_regex(f))
- self.scm.mark_file_updated(self._file['swig'])
if not self.skip_subdirs['python']:
py_files_deleted = self._run_subdir('python', ('*.py',), ('GR_PYTHON_INSTALL',),
cmakeedit_func=_remove_py_test_case)