0027176: Configuration, CMake - INSTALL_DIR is a common prefix for all other install...
[occt.git] / src / OS / Visualization.tcl
CommitLineData
973c2be1 1# Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2#
973c2be1 3# This file is part of Open CASCADE Technology software library.
b311480e 4#
d5f74e42 5# This library is free software; you can redistribute it and/or modify it under
6# the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7# by the Free Software Foundation, with special exception defined in the file
8# OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9# distribution for complete text of the license and disclaimer of any warranty.
b311480e 10#
973c2be1 11# Alternatively, this file may be used under the terms of Open CASCADE
12# commercial license or contractual agreement.
b311480e 13
7fd59977 14;#
15;# Liste des toolkits WOK sous forme de full path
16;#
17proc Visualization:toolkits { } {
913a4c4a 18 set aResult [list TKService \
19 TKV3d \
20 TKOpenGl \
6ce0df1e 21 TKMeshVS]
913a4c4a 22
53c888d1 23 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
913a4c4a 24 lappend aResult "TKIVtk"
25 }
26
62e1beed 27 if { "$::tcl_platform(platform)" == "windows" } {
4b3541c6 28 if { [info exists ::env(HAVE_D3D)] } {
29 if { "$::env(HAVE_D3D)" == "true" } {
30 lappend aResult "TKD3DHost"
31 }
62e1beed 32 } elseif { [info exists ::env(VCVER)] && "$::env(VCVER)" != "vc8" && "$::env(VCVER)" != "vc9" && "$::env(VCVER)" != "vc10" } {
33 lappend aResult "TKD3DHost"
34 }
35 }
36
913a4c4a 37 return $aResult
7fd59977 38}
39;#
40;# Autres UDs a prendre.
41;#
42proc Visualization:ressources { } {
43 return [list \
7fd59977 44 [list both r Textures {}] \
4058ef10 45 [list both r Shaders {}] \
7fd59977 46 ]
47}
48;#
49;# Nom du module
50;#
51proc Visualization:name { } {
52 return Visualization
53}
54proc Visualization:alias { } {
55 return VIS
56}
57proc Visualization:depends { } {
58 return [list ModelingAlgorithms]
59}
046fed1e 60
61proc Visualization:acdepends { } {
7cf07fa5 62 set aList [list X11 GL FREETYPE]
63
53c888d1 64 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
7cf07fa5 65 lappend aList "VTK"
66 }
67
68 return $aList
046fed1e 69}
70
7fd59977 71;#
72;# Returns a list of exported features.
73;# source : Source files
74;# runtime: Shareables
75;# wokadm : WOK admin files
76;# api : Public include files
77;#
78proc Visualization:Export { } {
79 return [list source runtime wokadm api]
80}