Commit 615e840c authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

COMP: Add WRAP_SPECIAL file property for special type wrapping.

The python wrappers will wrap header files that have WRAP_SPECIAL
set even if they also have WRAP_EXCLUDE set.
parent 897ff391
...@@ -39,9 +39,10 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES) ...@@ -39,9 +39,10 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
FOREACH(FILE ${SOURCES}) FOREACH(FILE ${SOURCES})
# should we wrap the file? # should we wrap the file?
GET_SOURCE_FILE_PROPERTY(TMP_WRAP_EXCLUDE ${FILE} WRAP_EXCLUDE) 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 we should wrap it
IF (NOT TMP_WRAP_EXCLUDE) IF (TMP_WRAP_SPECIAL OR NOT TMP_WRAP_EXCLUDE)
# what is the filename without the extension # what is the filename without the extension
GET_FILENAME_COMPONENT(TMP_FILENAME ${FILE} NAME_WE) GET_FILENAME_COMPONENT(TMP_FILENAME ${FILE} NAME_WE)
...@@ -99,7 +100,7 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES) ...@@ -99,7 +100,7 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
SET(VTK_WRAP_PYTHON_CUSTOM_COUNT) SET(VTK_WRAP_PYTHON_CUSTOM_COUNT)
ENDIF(VTK_WRAP_PYTHON_CUSTOM_COUNT MATCHES "^${VTK_WRAP_PYTHON_CUSTOM_LIMIT}$") ENDIF(VTK_WRAP_PYTHON_CUSTOM_COUNT MATCHES "^${VTK_WRAP_PYTHON_CUSTOM_LIMIT}$")
ENDIF(VTK_WRAP_PYTHON_NEED_CUSTOM_TARGETS) ENDIF(VTK_WRAP_PYTHON_NEED_CUSTOM_TARGETS)
ENDIF (NOT TMP_WRAP_EXCLUDE) ENDIF (TMP_WRAP_SPECIAL OR NOT TMP_WRAP_EXCLUDE)
ENDFOREACH(FILE) ENDFOREACH(FILE)
# finish the data file for the init file # finish the data file for the init file
......
...@@ -392,14 +392,21 @@ SET_SOURCE_FILES_PROPERTIES( ...@@ -392,14 +392,21 @@ SET_SOURCE_FILES_PROPERTIES(
vtkOldStyleCallbackCommand.cxx vtkOldStyleCallbackCommand.cxx
vtkSmartPointerBase.cxx vtkSmartPointerBase.cxx
vtkStdString.cxx vtkStdString.cxx
# vtkTimeStamp.cxx vtkTimeStamp.cxx
# vtkVariant.cxx vtkVariant.cxx
vtkWeakPointerBase.cxx vtkWeakPointerBase.cxx
vtkUnicodeString.cxx vtkUnicodeString.cxx
WRAP_EXCLUDE WRAP_EXCLUDE
) )
SET_SOURCE_FILES_PROPERTIES(
vtkTimeStamp.cxx
vtkVariant.cxx
WRAP_SPECIAL
)
# Activate code in "vtkVariant.cxx". See the comment in the source. # Activate code in "vtkVariant.cxx". See the comment in the source.
SET_SOURCE_FILES_PROPERTIES(vtkVariant.cxx PROPERTIES SET_SOURCE_FILES_PROPERTIES(vtkVariant.cxx PROPERTIES
COMPILE_FLAGS -DVTK_VARIANT_IMPL) COMPILE_FLAGS -DVTK_VARIANT_IMPL)
......
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