changeset 2120:b50bbb325aa7

package vtk: disable gui components in native build
author Tony Theodore <tonyt@logyst.com>
date Tue, 22 Nov 2011 22:18:31 +1100
parents fa8d6e3b7a5d
children d4e14e4508f2
files src/vtk-4-native-no-gui.patch src/vtk.mk
diffstat 2 files changed, 25 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/vtk-4-native-no-gui.patch	Tue Nov 22 22:18:31 2011 +1100
@@ -0,0 +1,19 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+diff -r 26cf498f1dac Utilities/CMakeLists.txt
+--- a/Utilities/CMakeLists.txt	Tue Nov 22 18:02:40 2011 +1100
++++ b/Utilities/CMakeLists.txt	Tue Nov 22 18:04:01 2011 +1100
+@@ -68,10 +68,8 @@
+   VTK_THIRD_PARTY_SUBDIR(Cosmo Cosmo)
+ ENDIF(VTK_USE_PARALLEL)
+ 
+-IF(VTK_USE_RENDERING)
+-  ADD_SUBDIRECTORY(ftgl)
+-  ADD_SUBDIRECTORY(ParseOGLExt)
+-ENDIF(VTK_USE_RENDERING)
++ADD_SUBDIRECTORY(ftgl)
++ADD_SUBDIRECTORY(ParseOGLExt)
+ 
+ IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
+   INSTALL(FILES
--- a/src/vtk.mk	Mon Nov 21 23:26:42 2011 +0100
+++ b/src/vtk.mk	Tue Nov 22 22:18:31 2011 +1100
@@ -23,7 +23,12 @@
 
     # first we need a native build to create the compile tools
     mkdir '$(1)/native_build'
-    cd '$(1)/native_build' && cmake -DCMAKE_BUILD_TYPE='Release' ..
+    cd '$(1)/native_build' && cmake \
+        -DCMAKE_BUILD_TYPE='Release' \
+        -DBUILD_TESTING=FALSE \
+        -DOPENGL_INCLUDE_DIR='$(1)/Utilities/ParseOGLExt/headers' \
+        -DVTK_USE_RENDERING=FALSE \
+        ..
     
     # only the newly created CompileTools target need to be built
     $(MAKE) -C '$(1)/native_build' -j '$(JOBS)' VERBOSE=1 CompileTools