Updates will be applied - 3:30pm EDT (UTC -400). No downtime expected.

Commit ba551468 authored by Ben Boeckel's avatar Ben Boeckel

wrapping: add variables to exclude from language-specific wrapping

This is to allow language-specific classes (e.g., vtkPythonAlgorithm) to
exclude themselves from languages known not to be supported. A blacklist
is used because there exist things like lunatic (a two-way Lua ←→ Python
bridge) and new any languages should try to wrap as much as possible.

Change-Id: I81ee4c8df2ad74d158adb2b673b2413703a730ec
parent 232953d2
......@@ -63,6 +63,9 @@ macro(vtk_module _name)
elseif("${arg}" MATCHES "^EXCLUDE_FROM_WRAPPING$")
set(_doing "")
set(${vtk-module}_EXCLUDE_FROM_WRAPPING 1)
elseif("${arg}" MATCHES "^EXCLUDE_FROM_\([A-Z]+\)_WRAPPING$")
set(_doing "")
set(${vtk-module}_EXCLUDE_FROM_${CMAKE_MATCH_1}_WRAPPING 1)
elseif("${arg}" MATCHES "^EXCLUDE_FROM_WRAP_HIERARCHY$")
set(_doing "")
set(${vtk-module}_EXCLUDE_FROM_WRAP_HIERARCHY 1)
......
......@@ -54,15 +54,15 @@ function(vtk_add_wrapping module_name module_srcs module_hdrs)
endif()
# Now to wrap the languages that are on.
if(VTK_WRAP_PYTHON AND ${module_name}_WRAP_PYTHON)
if(VTK_WRAP_PYTHON AND ${module_name}_WRAP_PYTHON AND NOT ${module_name}_EXCLUDE_FROM_PYTHON_WRAPPING)
# Note that the module should be Python wrapped.
set_property(GLOBAL APPEND PROPERTY VTK_PYTHON_WRAPPED ${module_name})
endif()
if(VTK_WRAP_TCL)
if(VTK_WRAP_TCL AND NOT ${module_name}_EXCLUDE_FROM_TCL_WRAPPING)
set_property(GLOBAL APPEND PROPERTY VTK_TCL_WRAPPED ${module_name})
vtk_add_tcl_wrapping(${module_name} "${module_srcs}" "${module_hdrs}")
endif()
if(VTK_WRAP_JAVA)
if(VTK_WRAP_JAVA AND NOT ${module_name}_EXCLUDE_FROM_JAVA_WRAPPING)
set_property(GLOBAL APPEND PROPERTY VTK_JAVA_WRAPPED ${module_name})
vtk_add_java_wrapping(${module_name} "${module_srcs}" "${module_hdrs}")
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment