Commit 7dc6d9f0 authored by David C. Lonie's avatar David C. Lonie

Disable GL2PS on Android/IOS.

parent 0e557921
if(VTK_RENDERING_BACKEND STREQUAL "OpenGL")
set(opengl_depends vtkRenderingGL2PS)
if(ANDROID OR APPLE_IOS) # No gl2ps on mobile
set(gl2ps_depends)
set(gl2ps_test_depends)
elseif(VTK_RENDERING_BACKEND STREQUAL "OpenGL")
set(gl2ps_depends vtkRenderingGL2PS)
set(gl2ps_test_depends vtkIOExportOpenGL)
elseif(VTK_RENDERING_BACKEND STREQUAL "OpenGL2")
set(opengl_depends vtkRenderingGL2PSOpenGL2)
set(gl2ps_depends vtkRenderingGL2PSOpenGL2)
set(gl2ps_test_depends vtkIOExportOpenGL2)
endif()
vtk_module(vtkIOExport
......@@ -9,9 +14,9 @@ vtk_module(vtkIOExport
Rendering
DEPENDS
vtkCommonCore
${opengl_depends}
vtkImagingCore
vtkRenderingCore
${gl2ps_depends}
PRIVATE_DEPENDS
vtkIOImage
vtkFiltersGeometry
......@@ -19,7 +24,6 @@ vtk_module(vtkIOExport
vtkCommonColor
vtkChartsCore
vtkInteractionImage
vtkIOExport${VTK_RENDERING_BACKEND}
vtkIOParallel
vtkTestingRendering
vtkInteractionStyle
......@@ -28,4 +32,5 @@ vtk_module(vtkIOExport
vtkRenderingLabel
vtkRenderingVolume${VTK_RENDERING_BACKEND}
vtkViewsContext2D
${gl2ps_test_depends}
)
if(ANDROID OR APPLE_IOS) # No GL2PS on mobile
return()
endif()
vtk_module(vtkIOExportOpenGL
IMPLEMENTS
vtkIOExport
......
if(ANDROID OR APPLE_IOS) # No GL2PS on mobile
return()
endif()
vtk_module(vtkIOExportOpenGL2
IMPLEMENTS
vtkIOExport
......
if(ANDROID OR APPLE_IOS) # No GL2PS on mobile
return()
endif()
vtk_module(vtkRenderingGL2PS
TCL_NAME vtkRenderingGLtoPS
BACKEND
......
if(ANDROID OR APPLE_IOS) # No GL2PS on mobile
return()
endif()
vtk_module(vtkRenderingGL2PSOpenGL2
TCL_NAME vtkRenderingGLtoPSOpenGLII
IMPLEMENTS
......
if(VTK_RENDERING_BACKEND STREQUAL "OpenGL")
set(gl2ps_depends vtkRenderingGL2PS)
if(ANDROID OR APPLE_IOS)
set(gl2ps_depends)
elseif(VTK_RENDERING_BACKEND STREQUAL "OpenGL")
set(gl2ps_depends vtkRenderingGL2PS vtkIOExportOpenGL)
elseif(VTK_RENDERING_BACKEND STREQUAL "OpenGL2")
set(gl2ps_depends vtkRenderingGL2PSOpenGL2)
set(gl2ps_depends vtkRenderingGL2PSOpenGL2 vtkIOExportOpenGL2)
endif()
vtk_module(vtkRenderingMatplotlib
......@@ -17,7 +19,6 @@ vtk_module(vtkRenderingMatplotlib
vtkCommonColor
vtkInteractionImage
vtkInteractionWidgets
vtkIOExport${VTK_RENDERING_BACKEND}
vtkIOGeometry
vtkIOParallel
vtkTestingRendering
......
if(ANDROID OR APPLE_IOS) # No GL2PS on mobile
return()
endif()
vtk_module(vtkgl2ps
DEPENDS
vtkpng
......
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