0023107: Update of OCCT service files for generation of Makefile files by WOK
[occt.git] / src / OS / ModelingAlgorithms.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 ModelingAlgorithms:toolkits { } {
22     return [list TKGeomAlgo \
23                 TKTopAlgo \
24                 TKPrim \
25                 TKBO \
26                 TKBool \
27                 TKHLR \
28                 TKFillet \
29                 TKOffset \
30                 TKFeat \
31                 TKMesh \
32                 TKXMesh \
33                 TKShHealing \
34                ]
35 }
36 ;#
37 ;# Autres UDs a prendre.
38 ;#
39 proc ModelingAlgorithms:ressources { } {
40     
41 }
42 ;#
43 ;# Nom du module 
44 ;#
45 proc ModelingAlgorithms:name { } {
46     return ModelingAlgorithms
47 }
48 proc ModelingAlgorithms:alias { } {
49     return ALGO
50 }
51 proc ModelingAlgorithms:depends { } {
52     return [list ModelingData]
53 }
54 ;#
55 ;# Pre-requis pour la compilation ( -I ... )
56 ;# Returns a list of directory that should be used in -I directives
57 ;# while compiling c or c++ files.
58 ;#
59 proc ModelingAlgorithms:CompileWith { } {
60     
61     set l {}
62     switch -- [OS:os] {
63         HP-UX {
64         }
65         Linux {
66             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
67             lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
68             lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
69            lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]" 
70         }
71         SunOS {
72             lappend l "/usr/openwin/include"
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 ModelingAlgorithms:LinksoWith { } {
92     
93     set l {}
94     switch -- [OS:os] {
95         HP-UX {
96         }
97         Linux {
98         }
99         SunOS {
100             lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
101             lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
102             lappend l /usr/openwin/lib
103         }
104         IRIX {
105             lappend l /usr/lib32 
106         }
107
108     }
109     return $l
110 }
111 ;#
112 ;# Returns a list of exported features.
113 ;# source : Source files
114 ;# runtime: Shareables
115 ;# wokadm : WOK admin files
116 ;# api    : Public include files
117 ;#
118 proc ModelingAlgorithms:Export { } {
119     return [list source runtime wokadm api]
120 }