package vtk: disable gui components in native build

pull/13/head
Tony Theodore 13 years ago
parent dda43d4646
commit 793d2a88f9

@ -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

@ -23,7 +23,12 @@ define $(PKG)_BUILD
# 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

Loading…
Cancel
Save