Commit d10ef021 authored by Dave Demarle's avatar Dave Demarle
Browse files

STYLE: Remove Tcl amd Java wrapping which do not appear to work. Move contents...

STYLE: Remove Tcl amd Java wrapping which do not appear to work. Move contents of binsrc to Examples/Cxx
parent 0fae716a
......@@ -58,7 +58,7 @@ SET( XdmfPythonSource
)
OPTION(XDMF_REGENERATE_WRAPPERS
"Regenerate XdmfPython.cxx XdmfTcl.cxx and XdmfJava.cxx" OFF)
"Regenerate XdmfPython.cxx" OFF)
MARK_AS_ADVANCED(XDMF_REGENERATE_WRAPPERS)
IF(XDMF_REGENERATE_WRAPPERS)
FIND_PROGRAM(SWIG_EXECUTABLE
......@@ -86,12 +86,9 @@ IF(XDMF_REGENERATE_WRAPPERS)
-I${SWIG_LIB_PATH}/python
)
ENDIF(EXISTS "${SWIG_LIB_PATH}")
FOREACH(LANGUAGE Tcl Python Java)
FOREACH(LANGUAGE Python)
STRING(TOLOWER ${LANGUAGE} lang)
SET(swigtarget ${Xdmf_BINARY_DIR}/libsrc/Xdmf${LANGUAGE}.cxx)
IF(LANGUAGE MATCHES "Tcl")
SET(swig_extra_args -prefix Xdmf -namespace)
ENDIF(LANGUAGE MATCHES "Tcl")
ADD_CUSTOM_COMMAND(
OUTPUT ${swigtarget}
DEPENDS ${Xdmf_SOURCE_DIR}/libsrc/Xdmf.i
......@@ -100,9 +97,7 @@ IF(XDMF_REGENERATE_WRAPPERS)
ENDFOREACH(LANGUAGE)
ADD_CUSTOM_TARGET(RerunSwig DEPENDS
${Xdmf_BINARY_DIR}/libsrc/XdmfTcl.cxx
${Xdmf_BINARY_DIR}/libsrc/XdmfPython.cxx
${Xdmf_BINARY_DIR}/libsrc/XdmfJava.cxx
)
ENDIF(SWIG_EXECUTABLE)
ENDIF(XDMF_REGENERATE_WRAPPERS)
......@@ -315,20 +310,6 @@ IF(XDMF_WRAP_PYTHON)
ADD_DEPENDENCIES(_Xdmf Xdmf)
ENDIF(XDMF_WRAP_PYTHON)
OPTION(XDMF_WRAP_TCL "Build a TCL wrapping interface" OF)
IF(XDMF_WRAP_TCL)
IF(NOT BUILD_SHARED_LIBS)
MESSAGE("Tcl wrapping only works on shared libraries")
ENDIF(NOT BUILD_SHARED_LIBS)
INCLUDE_DIRECTORIES(${TCL_INCLUDE_PATH})
INCLUDE (${CMAKE_ROOT}/Modules/FindTCL.cmake)
ADD_LIBRARY(XdmfTCL SHARED ${XdmfTclSource})
TARGET_LINK_LIBRARIES(XdmfTCL Xdmf ${TCL_LIBRARY} ${HDF5_LIBRARY} ${XDMF_ZLIB_LIBRARIES} )
ADD_EXECUTABLE(DummyTCL dummy.cxx)
TARGET_LINK_LIBRARIES(DummyTCL XdmfTCL)
ADD_DEPENDENCIES(XdmfTCL Xdmf)
ENDIF(XDMF_WRAP_TCL)
IF(XDMF_BUILD_TESTING)
SUBDIRS(Testing)
ENDIF(XDMF_BUILD_TESTING)
......@@ -356,7 +337,4 @@ IF(NOT XDMF_INSTALL_NO_LIBRARIES)
IF(XDMF_WRAP_PYTHON)
INSTALL_TARGETS(${XDMF_INSTALL_LIB_DIR} _Xdmf)
ENDIF(XDMF_WRAP_PYTHON)
IF(XDMF_WRAP_TCL)
INSTALL_TARGETS(${XDMF_INSTALL_LIB_DIR} XdmfTCL)
ENDIF(XDMF_WRAP_TCL)
ENDIF(NOT XDMF_INSTALL_NO_LIBRARIES)
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