0023024: Update headers of OCCT files
[occt.git] / src / OS / Visualization.tcl
1 # Copyright (c) 1999-2012 OPEN CASCADE SAS
2 #
3 # The content of this file is subject to the Open CASCADE Technology Public
4 # License Version 6.5 (the "License"). You may not use the content of this file
5 # except in compliance with the License. Please obtain a copy of the License
6 # at http://www.opencascade.org and read it completely before using this file.
7 #
8 # The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9 # main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10 #
11 # The Original Code and all software distributed under the License is
12 # distributed on an "AS IS" basis, without warranty of any kind, and the
13 # Initial Developer hereby disclaims all such warranties, including without
14 # limitation, any warranties of merchantability, fitness for a particular
15 # purpose or non-infringement. Please see the License for the specific terms
16 # and conditions governing the rights and limitations under the License.
17
18 ;#
19 ;# Liste des toolkits WOK sous forme de full path
20 ;# 
21 proc Visualization:toolkits { } {
22     return [list TKService \
23                  TKV2d \
24                  TKV3d \
25                  TKOpenGl \
26                  TKMeshVS \
27                  TKNIS \
28                  TKVoxel \
29             ]
30 }
31 ;#
32 ;# Autres UDs a prendre.
33 ;#
34 proc Visualization:ressources { } {
35     return [list \
36            [list both r FontMFT {}] \
37            [list both r Textures {}] \
38            [list both n VoxelClient {}] \
39             ]
40 }
41 ;#
42 ;# Nom du module 
43 ;#
44 proc Visualization:name { } {
45     return Visualization
46 }
47 proc Visualization:alias { } {
48     return VIS
49 }
50 proc Visualization:depends { } {
51     return [list ModelingAlgorithms]
52 }
53 ;#
54 ;# Pre-requis pour la compilation ( -I ... )
55 ;# Returns a list of directory that should be used in -I directives
56 ;# while compiling c or c++ files.
57 ;#
58 proc Visualization:CompileWith {} {
59     
60     set l {}
61     switch -- [OS:os] {
62         HP-UX {
63         }
64         Linux {
65             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
66             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
67             lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
68            lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]" 
69         }
70         SunOS {
71             lappend l "\$OPENWINHOME/include"
72             lappend l "/usr/openwin/include/X11"
73             lappend l "/usr/dt/include"
74             lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
75             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
76             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
77             lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
78         }
79         IRIX {
80             lappend l /usr/include/CC
81         }
82
83     }
84     return $l
85 }
86 ;#
87 ;# Pre-requis pour la compilation ( -L ... )
88 ;# Returns a list of directory that should be used in -L directives
89 ;# while creating shareable.
90 ;#
91 proc Visualization:LinksoWith { } {
92     
93     set l {}
94     switch -- [OS:os] {
95         HP-UX {
96         }
97         Linux {
98             lappend l /usr/X11R6/lib
99         }
100         SunOS {
101             lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
102             lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
103             lappend l /usr/openwin/lib
104         }
105         IRIX {
106             lappend l /usr/lib32 
107         }
108
109     }
110     return $l
111 }
112 ;#
113 ;# Returns a list of exported features.
114 ;# source : Source files
115 ;# runtime: Shareables
116 ;# wokadm : WOK admin files
117 ;# api    : Public include files
118 ;#
119 proc Visualization:Export { } {
120     return [list source runtime wokadm api]
121 }