Commit e6f75b9a authored by David Gobbi's avatar David Gobbi

Wrap many more classes with python.

This makes the python wrappers ignore WRAP_EXCLUDE, and instead use
the new property WRAP_EXCLUDE_PYTHON that excludes fewer classes.
The WRAP_SPECIAL flag, which used to act as a whitelist for python,
has been removed.

Because this change causes classes to be wrapped in python by default,
some third-party VTK packages might break until they modify their own
CMakeLists.txt files to add WRAP_EXCLUDE_PYTHON where necessary.
parent 77f7a0dd
......@@ -101,7 +101,9 @@ set_source_files_properties(
${headers}
${cpu_accelerator_srcs}
${CMAKE_CURRENT_BINARY_DIR}/vtkAcceleratorsDaxObjectFactory.cxx
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now for the object factory.
......
......@@ -45,7 +45,9 @@ cuda_compile(Module_CUDA_C_SRCS ${Module_CUDA_SRCS} ${GPGPU_BUILD_TYPE})
set_source_files_properties(
${Module_CUDA_C_SRCS}
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
list(APPEND Module_SRCS ${Module_CUDA_C_SRCS})
......
......@@ -75,7 +75,7 @@ endmacro()
# <module>_HEADER_<header>_EXISTS
# <module>_HEADER_<header>_ABSTRACT
# <module>_HEADER_<header>_WRAP_EXCLUDE
# <module>_HEADER_<header>_WRAP_SPECIAL
# <module>_HEADER_<header>_WRAP_EXCLUDE_PYTHON
macro(vtk_module_headers_load mod)
if(NOT ${mod}_HEADERS_LOADED)
include("${VTK_MODULES_DIR}/${mod}-Headers.cmake"
......
......@@ -7,4 +7,4 @@ endforeach()
@vtk-module-ABSTRACT@
@vtk-module-WRAP_EXCLUDE@
@vtk-module-WRAP_SPECIAL@
@vtk-module-WRAP_EXCLUDE_PYTHON@
......@@ -322,31 +322,33 @@ function(vtk_module_export sources)
string(REGEX REPLACE "\\.(cxx|txx|mm)$" ".h" hdr "${src}")
if("${hdr}" MATCHES "\\.h$")
if(EXISTS "${hdr}")
get_filename_component(_filename "${hdr}" NAME)
get_filename_component(_filename "${hdr}" NAME)
# Make sure header is in one of the expected locations
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_filename}" OR
EXISTS "${CMAKE_CURRENT_BINARY_DIR}/${_filename}")
string(REGEX REPLACE "\\.h$" "" _cls "${_filename}")
get_source_file_property(_wrap_exclude ${src} WRAP_EXCLUDE)
get_source_file_property(_wrap_exclude_python ${src} WRAP_EXCLUDE_PYTHON)
get_source_file_property(_abstract ${src} ABSTRACT)
get_source_file_property(_wrap_special ${src} WRAP_SPECIAL)
if(_wrap_special OR NOT _wrap_exclude)
list(APPEND vtk-module-HEADERS ${_cls})
list(APPEND vtk-module-HEADERS ${_cls})
if(_abstract)
set(vtk-module-ABSTRACT
"${vtk-module-ABSTRACT}set(${vtk-module}_HEADER_${_cls}_ABSTRACT 1)\n")
endif()
if(_abstract)
set(vtk-module-ABSTRACT
"${vtk-module-ABSTRACT}set(${vtk-module}_HEADER_${_cls}_ABSTRACT 1)\n")
endif()
if(_wrap_exclude)
set(vtk-module-WRAP_EXCLUDE
"${vtk-module-WRAP_EXCLUDE}set(${vtk-module}_HEADER_${_cls}_WRAP_EXCLUDE 1)\n")
endif()
if(_wrap_exclude)
set(vtk-module-WRAP_EXCLUDE
"${vtk-module-WRAP_EXCLUDE}set(${vtk-module}_HEADER_${_cls}_WRAP_EXCLUDE 1)\n")
endif()
if(_wrap_special)
set(vtk-module-WRAP_SPECIAL
"${vtk-module-WRAP_SPECIAL}set(${vtk-module}_HEADER_${_cls}_WRAP_SPECIAL 1)\n")
endif()
if(_wrap_exclude_python)
set(vtk-module-WRAP_EXCLUDE_PYTHON
"${vtk-module-WRAP_EXCLUDE_PYTHON}set(${vtk-module}_HEADER_${_cls}_WRAP_EXCLUDE_PYTHON 1)\n")
endif()
endif()
endif()
......@@ -556,7 +558,6 @@ function(vtk_module_library name)
set(vtk-module-HEADERS)
set(vtk-module-ABSTRACT)
set(vtk-module-WRAP_SPECIAL)
# Collect header files matching sources.
set(_hdrs ${${vtk-module}_HDRS})
......
......@@ -42,8 +42,8 @@ macro(VTK_WRAP_HIERARCHY TARGET OUTPUT_DIR SOURCES)
# file properties to include in the hierarchy file
get_property(TMP_WRAP_EXCLUDE SOURCE ${FILE} PROPERTY WRAP_EXCLUDE)
get_source_file_property(TMP_WRAP_SPECIAL ${FILE} WRAP_SPECIAL)
get_source_file_property(TMP_ABSTRACT ${FILE} ABSTRACT)
get_source_file_property(TMP_EXCLUDE_PYTHON ${FILE} WRAP_EXCLUDE_PYTHON)
# what is the filename without the extension
get_filename_component(TMP_FILENAME ${FILE} NAME_WE)
......@@ -61,7 +61,7 @@ macro(VTK_WRAP_HIERARCHY TARGET OUTPUT_DIR SOURCES)
set(TMP_EXCLUDE_FROM_HIERARCHY OFF)
# ensure that header exists (assume it exists if it is marked as wrapped)
if(TMP_WRAP_EXCLUDE AND NOT TMP_WRAP_SPECIAL)
if(TMP_WRAP_EXCLUDE)
if(NOT EXISTS ${TMP_INPUT})
set(TMP_EXCLUDE_FROM_HIERARCHY ON)
endif()
......@@ -88,8 +88,8 @@ macro(VTK_WRAP_HIERARCHY TARGET OUTPUT_DIR SOURCES)
set(VTK_WRAPPER_INIT_DATA "${VTK_WRAPPER_INIT_DATA};WRAP_EXCLUDE")
endif()
if(TMP_WRAP_SPECIAL)
set(VTK_WRAPPER_INIT_DATA "${VTK_WRAPPER_INIT_DATA};WRAP_SPECIAL")
if(TMP_EXCLUDE_PYTHON)
set(VTK_WRAPPER_INIT_DATA "${VTK_WRAPPER_INIT_DATA};WRAP_EXCLUDE_PYTHON")
endif()
set(VTK_WRAPPER_INIT_DATA "${VTK_WRAPPER_INIT_DATA}\n")
......
......@@ -76,11 +76,10 @@ macro(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
# for each class
foreach(FILE ${SOURCES})
# should we wrap the file?
get_source_file_property(TMP_WRAP_EXCLUDE ${FILE} WRAP_EXCLUDE)
get_source_file_property(TMP_WRAP_SPECIAL ${FILE} WRAP_SPECIAL)
get_source_file_property(TMP_EXCLUDE_PYTHON ${FILE} WRAP_EXCLUDE_PYTHON)
# if we should wrap it
if(TMP_WRAP_SPECIAL OR NOT TMP_WRAP_EXCLUDE)
if(NOT TMP_EXCLUDE_PYTHON)
# what is the filename without the extension
get_filename_component(TMP_FILENAME ${FILE} NAME_WE)
......@@ -287,8 +286,7 @@ macro(vtk_wrap_python TARGET SRC_LIST_NAME module)
# Decide what to do for each header.
foreach(header ${${module}_HEADERS})
# Everything in this block is for headers that will be wrapped.
if(${module}_HEADER_${header}_WRAP_SPECIAL OR
NOT ${module}_HEADER_${header}_WRAP_EXCLUDE)
if(NOT ${module}_HEADER_${header}_WRAP_EXCLUDE_PYTHON)
# Find the full path to the header file to be wrapped.
vtk_find_header(${header}.h "${${module}_INCLUDE_DIRS}" class_header_path)
......@@ -332,7 +330,7 @@ macro(vtk_wrap_python TARGET SRC_LIST_NAME module)
endif()
endif()
else()
message("${header} will not be wrapped.")
# message("${header} will not be wrapped.")
endif()
endforeach()
......
......@@ -23,10 +23,9 @@ FUNCTION(VTK_WRAP_PYTHON_SIP KIT SRC_LIST_NAME SOURCES)
FOREACH(FILE ${SOURCES})
# should we wrap the file?
GET_SOURCE_FILE_PROPERTY(TMP_WRAP_EXCLUDE ${FILE} WRAP_EXCLUDE)
GET_SOURCE_FILE_PROPERTY(TMP_WRAP_SPECIAL ${FILE} WRAP_SPECIAL)
# if we should wrap it
IF (NOT TMP_WRAP_SPECIAL AND NOT TMP_WRAP_EXCLUDE)
IF (NOT TMP_WRAP_EXCLUDE)
# what is the filename without the extension
GET_FILENAME_COMPONENT(TMP_FILENAME ${FILE} NAME_WE)
......
......@@ -57,9 +57,4 @@ set_source_files_properties(
WRAP_EXCLUDE
)
set_source_files_properties(
vtkContextPolygon
PROPERTIES WRAP_SPECIAL 1
)
vtk_module_library(vtkChartsCore ${Module_SRCS})
......@@ -6,7 +6,6 @@ set(Module_SRCS
#set_source_files_properties(
# ABSTRACT
# WRAP_EXCLUDE
# PROPERTIES WRAP_SPECIAL 1
#)
vtk_module_library(vtkCommonColor ${Module_SRCS})
......@@ -603,6 +603,32 @@ set_source_files_properties(
WRAP_EXCLUDE
)
# python uses WRAP_EXCLUDE_PYTHON and ignores WRAP_EXCLUDE
set_source_files_properties(
vtkABI.h
vtkAtomic.h
vtkAutoInit.h
vtkDataArrayTemplate.txx
vtkDataArrayTemplateHelper.cxx
vtkDataArrayTemplateImplicit.txx
vtkIOStream.cxx
vtkIOStreamFwd.h
vtkLargeInteger.cxx
vtkOldStyleCallbackCommand.cxx
vtkOStreamWrapper.cxx
vtkOStrStreamWrapper.cxx
vtkNew.h
vtkSetGet.h
vtkSmartPointer.h
vtkSmartPointerBase.h
vtkStdString.cxx
vtkUnicodeString.cxx
vtkWeakPointer.h
vtkWeakPointerBase.cxx
vtkWin32Header.h
PROPERTIES WRAP_EXCLUDE_PYTHON 1
)
set_source_files_properties(
vtkDataArrayTemplate.h
vtkDenseArray.h
......@@ -612,27 +638,6 @@ set_source_files_properties(
HEADER_FILE_ONLY
)
set_source_files_properties(
vtkArrayCoordinates.cxx
vtkArrayExtents.cxx
vtkArrayExtentsList.cxx
vtkArrayRange.cxx
vtkArraySort.cxx
vtkArrayWeights.cxx
vtkTimeStamp.cxx
vtkVariant.cxx
vtkDenseArray.txx
vtkSparseArray.txx
vtkTypedArray.txx
vtkTypeTemplate.h
vtkSystemIncludes.h
vtkType.h
vtkConfigure.h
vtkMathConfigure.h
vtkVersionMacros.h
PROPERTIES WRAP_SPECIAL 1
)
# Activate code in "vtkVariant.cxx". See the comment in the source.
set_source_files_properties(vtkVariant.cxx PROPERTIES
COMPILE_FLAGS -DVTK_VARIANT_IMPL)
......
......@@ -279,14 +279,8 @@ set_source_files_properties(
)
set_source_files_properties(
vtkAtom
vtkBond
vtkCellType.h
vtkBoundingBox.cxx
vtkColor.h
vtkRect.h
vtkVector.h
PROPERTIES WRAP_SPECIAL 1
vtkDispatcher_Private
PROPERTIES WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkCommonDataModel ${Module_SRCS})
......@@ -21,12 +21,6 @@ set_source_files_properties(
WRAP_EXCLUDE
)
set_source_files_properties(
vtkQuaternion.h
vtkTuple.h
PROPERTIES WRAP_SPECIAL 1
)
set(
${vtk-module}_HDRS
vtkQuaternion.txx
......
......@@ -12,10 +12,4 @@ set_source_files_properties(
WRAP_EXCLUDE
)
set_source_files_properties(
vtkErrorCode.cxx
vtkPolygonBuilder.cxx
PROPERTIES WRAP_SPECIAL 1
)
vtk_module_library(vtkCommonMisc ${Module_SRCS})
......@@ -31,7 +31,11 @@ foreach(file ${shader_files})
vtkDomainsChemistryOpenGL2Module.h
)
list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE)
set_source_files_properties(${file_we}
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
endforeach()
# Now for the object factory.
......@@ -46,7 +50,12 @@ vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(${vtk-module}ObjectFactory.cxx WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory.cxx
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkDomainsChemistryOpenGL2 ${Module_SRCS})
include(vtkOpenGL)
......
......@@ -45,7 +45,9 @@ set_source_files_properties(
set_source_files_properties(
${vtk-module}ObjectFactory.cxx
vtkPOutlineFilterInternals.cxx
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkFiltersParallel ${Module_SRCS})
......@@ -31,7 +31,9 @@ list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(
${vtk-module}ObjectFactory.cxx
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkFiltersParallelFlowPaths ${Module_SRCS})
......@@ -29,7 +29,9 @@ set(${vtk-module}_EXPORT_CODE "#include \"vtkFiltersStatisticsGnuRConfigure.h\""
set_source_files_properties(
vtkRAdapter.cxx
${vtk-module}ObjectFactory
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now to generate our object factory.
......
......@@ -19,7 +19,9 @@ set_source_files_properties(
set_source_files_properties(
vtkAMREnzoReaderInternal
vtkAMRFlashReaderInternal
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkIOAMR ${Module_SRCS})
......@@ -20,6 +20,12 @@ set_source_files_properties(
WRAP_EXCLUDE 1
)
set_source_files_properties(
vtkExodusIIReaderVariableCheck
PROPERTIES
WRAP_EXCLUDE_PYTHON 1
)
set_source_files_properties(
vtkExodusIIReaderVariableCheck
PROPERTIES
......
......@@ -43,7 +43,9 @@ set_source_files_properties(
set_source_files_properties(
vtkNIFTIPrivate.h
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkIOImage ${Module_SRCS})
......@@ -17,7 +17,9 @@ set_source_files_properties(
set_source_files_properties(
vtkOBJImporterInternals
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkIOImport ${Module_SRCS})
......@@ -24,6 +24,7 @@ set_source_files_properties(
private/LSDynaMetaData
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
set_source_files_properties(
......
......@@ -6,7 +6,12 @@ set(Module_SRCS
vtkMPIImageReader.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now to generate our object factory.
vtk_add_override(vtkNrrdReader vtkPNrrdReader)
......
......@@ -21,6 +21,11 @@ vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_mpi_link(${vtk-module})
......@@ -8,7 +8,12 @@ set(MySQL_SRCS
vtkIOMySQL_AutoInit.cxx
)
set_source_files_properties(vtkIOMySQL_AutoInit WRAP_EXCLUDE)
set_source_files_properties(
vtkIOMySQL_AutoInit
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
include_directories(${MYSQL_INCLUDE_DIRECTORIES})
......
......@@ -6,7 +6,12 @@ set(ODBC_SRCS
vtkIOODBC_AutoInit.cxx
)
set_source_files_properties(vtkIOODBC_AutoInit WRAP_EXCLUDE)
set_source_files_properties(
vtkIOODBC_AutoInit
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
include_directories(${ODBC_INCLUDE_DIRECTORIES})
......
......@@ -14,7 +14,9 @@ set(Module_SRCS
set_source_files_properties(
vtkMultiBlockPLOT3DReaderInternals
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkIOParallel ${Module_SRCS})
......@@ -5,7 +5,12 @@ set(Module_SRCS
vtkPExodusIIWriter.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now to generate our object factory.
vtk_add_override(vtkExodusIIWriter vtkPExodusIIWriter)
......
......@@ -9,7 +9,12 @@ set(PostgreSQL_SRCS
vtkIOPostgreSQL_AutoInit.cxx
)
set_source_files_properties(vtkIOPostgreSQL_AutoInit WRAP_EXCLUDE)
set_source_files_properties(
vtkIOPostgreSQL_AutoInit
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
include_directories(${PostgreSQL_INCLUDE_DIRS})
......
......@@ -62,7 +62,9 @@ set_source_files_properties(
set_source_files_properties(
vtkXMLWriterC
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkIOXML ${Module_SRCS})
......@@ -14,5 +14,11 @@ set_source_files_properties(
WRAP_EXCLUDE
)
set_source_files_properties(
vtkXdmfHeavyData
vtkXdmfReaderInternal
PROPERTIES WRAP_EXCLUDE_PYTHON 1
)
#set(${vtk-module}_NO_HeaderTest 1) # TODO: helper classes and reenable
vtk_module_library(vtkIOXdmf2 ${Module_SRCS})
......@@ -56,7 +56,9 @@ SET_SOURCE_FILES_PROPERTIES(
SET_SOURCE_FILES_PROPERTIES(
vtkImageStencilIterator
vtkImageBSplineInternals
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkImagingCore ${Module_SRCS})
......@@ -19,6 +19,11 @@ set(Module_SRCS
vtkBoostGraphAdapter.h
)
set_source_files_properties(vtkBoostGraphAdapter WRAP_EXCLUDE)
set_source_files_properties(
vtkBoostGraphAdapter
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkInfovisBoostGraphAlgorithms ${Module_SRCS})
......@@ -24,7 +24,12 @@ set(Module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Now to generate our object factory.
set(vtk_module_overrides "vtkInteractorStyleSwitchBase")
......
......@@ -20,7 +20,9 @@ set_source_files_properties(
set_source_files_properties(
vtkMPI
vtkMPIUtilities
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Needed for mpich 2
......
......@@ -29,8 +29,10 @@ set(${vtk-module}_HDRS
set_source_files_properties(
vtkScalarBarActorInternal.h
HEADER_FILE_ONLY
WRAP_EXCLUDE
PROPERTIES
HEADER_FILE_ONLY 1
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(vtkRenderingAnnotation ${Module_SRCS})
......@@ -29,7 +29,12 @@ vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(${vtk-module} ${module_SRCS})
include(vtkOpenGL)
......
......@@ -26,7 +26,12 @@ vtk_object_factory_configure("${vtk_module_overrides}")
list(APPEND module_SRCS
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
vtk_module_library(${vtk-module} ${module_SRCS})
vtk_module_link_libraries(${vtk-module}
......
......@@ -27,6 +27,10 @@ set(Module_SRCS
set_source_files_properties(
vtkFreeTypeTools
WRAP_EXCLUDE
)
set_source_files_properties(
fonts/face_arial_bold
fonts/face_arial_bold_italic
fonts/face_arial
......@@ -40,7 +44,9 @@ set_source_files_properties(
fonts/face_times
fonts/face_times_italic
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Override some rendering classes. Create object factory:
......
......@@ -12,7 +12,9 @@ set(Module_SRCS
set_source_files_properties(
vtkFontConfigFreeTypeTools
vtkRenderingFreeTypeFontConfigObjectFactory
WRAP_EXCLUDE
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Setup overrides
......
......@@ -55,7 +55,11 @@ foreach(file ${shader_files})
--build-header VTKRENDERINGLIC_EXPORT vtkRenderingLICModule.h
)
list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE)
set_source_files_properties(${file_we}
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
endforeach()
vtk_module_library(${vtk-module} ${Module_SRCS})
......
......@@ -51,7 +51,11 @@ foreach(file ${shader_files})
--build-header VTKRENDERINGLICOPENGL2_EXPORT vtkRenderingLICOpenGL2Module.h
)
list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE)
set_source_files_properties(${file_we}
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
endforeach()
......
......@@ -4,7 +4,12 @@ set(Module_SRCS
vtkMatplotlibMathTextUtilities.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(${vtk-module}ObjectFactory WRAP_EXCLUDE)
set_source_files_properties(
${vtk-module}ObjectFactory
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
# Override some rendering classes. Create object factory:
list(APPEND vtk_module_overrides "vtkMathTextUtilities")
......
......@@ -160,6 +160,15 @@ set_source_files_properties(
WRAP_EXCLUDE
)
set_source_files_properties(
vtkgl
vtkLightingHelper
vtkOpenGLState
vtkOpenGLGL2PSHelper
vtkRenderingOpenGLObjectFactory
PROPERTIES WRAP_EXCLUDE_PYTHON 1
)
include(vtkOpenGL)
# Configuration for vtkOpenGLExtensionManager
......@@ -272,7 +281,11 @@ foreach(file ${shader_files})
ARGS ${res} ${src} ${file_we} --build-header VTKRENDERINGOPENGL_EXPORT vtkRenderingOpenGLModule.h
)
list(APPEND Module_SRCS ${res})
set_source_files_properties(${file_we} WRAP_EXCLUDE)
set_source_files_properties(${file_we}
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
endforeach()
set(opengl_overrides
......@@ -354,7 +367,12 @@ elseif(VTK_USE_COCOA)
vtkCocoaGLView.mm
PROPERTIES COMPILE_FLAGS "${VTK_REQUIRED_OBJCXX_FLAGS}")
endif()
set_source_files_properties(vtkCocoaGLView WRAP_EXCLUDE)
set_source_files_properties(
vtkCocoaGLView