0026467: Configuration, genproj.tcl - restore generation of Code::Blocks and XCode...
[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 \
21 TKMeshVS \
913a4c4a 22 TKVoxel]
23
53c888d1 24 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
913a4c4a 25 lappend aResult "TKIVtk"
26 }
27
62e1beed 28 if { "$::tcl_platform(platform)" == "windows" } {
29 if { [info exists ::env(HAVE_D3D)] && "$::env(HAVE_D3D)" == "true" } {
30 lappend aResult "TKD3DHost"
31 } elseif { [info exists ::env(VCVER)] && "$::env(VCVER)" != "vc8" && "$::env(VCVER)" != "vc9" && "$::env(VCVER)" != "vc10" } {
32 lappend aResult "TKD3DHost"
33 }
34 }
35
913a4c4a 36 return $aResult
7fd59977 37}
38;#
39;# Autres UDs a prendre.
40;#
41proc Visualization:ressources { } {
42 return [list \
7fd59977 43 [list both r Textures {}] \
4058ef10 44 [list both r Shaders {}] \
7fd59977 45 ]
46}
47;#
48;# Nom du module
49;#
50proc Visualization:name { } {
51 return Visualization
52}
53proc Visualization:alias { } {
54 return VIS
55}
56proc Visualization:depends { } {
57 return [list ModelingAlgorithms]
58}
046fed1e 59
60proc Visualization:acdepends { } {
7cf07fa5 61 set aList [list X11 GL FREETYPE]
62
53c888d1 63 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
7cf07fa5 64 lappend aList "VTK"
65 }
66
67 return $aList
046fed1e 68}
69
7fd59977 70;#
7fd59977 71;# Returns a list of exported features.
72;# source : Source files
73;# runtime: Shareables
74;# wokadm : WOK admin files
75;# api : Public include files
76;#
77proc Visualization:Export { } {
78 return [list source runtime wokadm api]
79}