summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/Modules/GrPybind.cmake4
-rw-r--r--gr-utils/bindtool/scripts/bind_gr_module.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/cmake/Modules/GrPybind.cmake b/cmake/Modules/GrPybind.cmake
index 4f9fee6eba..5486296a36 100644
--- a/cmake/Modules/GrPybind.cmake
+++ b/cmake/Modules/GrPybind.cmake
@@ -119,6 +119,10 @@ SET(MODULE_NAME ${name})
if (${name} STREQUAL gr)
SET(MODULE_NAME "runtime")
endif()
+if (${name} STREQUAL video_sdl)
+ SET(MODULE_NAME "video-sdl")
+endif()
+
if(ENABLE_DOXYGEN)
add_custom_command(
diff --git a/gr-utils/bindtool/scripts/bind_gr_module.py b/gr-utils/bindtool/scripts/bind_gr_module.py
index 5b3c691461..271ce62765 100644
--- a/gr-utils/bindtool/scripts/bind_gr_module.py
+++ b/gr-utils/bindtool/scripts/bind_gr_module.py
@@ -37,7 +37,7 @@ output_dir = args.output_dir
includes = args.include
for name in args.names:
if name not in ['gr', 'pmt']:
- namespace = ['gr', name]
+ namespace = ['gr', name.replace("-","_")]
module_dir = os.path.abspath(
os.path.join(args.src, 'gr-'+name, 'include'))
prefix_include_root = 'gnuradio/'+name # pmt, gnuradio/digital, etc.
@@ -56,5 +56,5 @@ for name in args.names:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
bg = BindingGenerator(prefix, namespace, prefix_include_root,
- output_dir, addl_includes=includes, match_include_structure=True)
+ output_dir, addl_includes=includes, match_include_structure=True, write_json_output=True)
bg.gen_bindings(module_dir)