summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-06-01 13:42:05 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commit7842e287b56950ea95e7f1961992b6e2d38ca27f (patch)
tree0df077b9625b61d31e4fdba2426fb0fc16502d7f
parent4866d618d9f37dafe9f4ea54ee5c33588db9e72e (diff)
pybind11: update binding generation scripts
-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)