1 # Copyright (c) 1999-2014 OPEN CASCADE SAS
3 # This file is part of Open CASCADE Technology software library.
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
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.
11 # Alternatively, this file may be used under the terms of Open CASCADE
12 # commercial license or contractual agreement.
15 ;# Liste des toolkits WOK sous forme de full path
17 proc Visualization:toolkits { } {
18 set aResult [list TKService \
24 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
25 lappend aResult "TKIVtk"
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"
39 ;# Autres UDs a prendre.
41 proc Visualization:ressources { } {
43 [list both r Textures {}] \
44 [list both r Shaders {}] \
50 proc Visualization:name { } {
53 proc Visualization:alias { } {
56 proc Visualization:depends { } {
57 return [list ModelingAlgorithms]
60 proc Visualization:acdepends { } {
61 set aList [list X11 GL FREETYPE]
63 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
71 ;# Pre-requis pour la compilation ( -I ... )
72 ;# Returns a list of directory that should be used in -I directives
73 ;# while compiling c or c++ files.
75 proc Visualization:CompileWith {} {
82 lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
83 lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/linux"
84 lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
85 lappend l "[lindex [lindex [wokparam -v %STLPortInclude] 0] 0]"
88 lappend l "\$OPENWINHOME/include"
89 lappend l "/usr/openwin/include/X11"
90 lappend l "/usr/dt/include"
91 lappend l "[lindex [wokparam -v %CSF_CXX_INCLUDE] 0]"
92 lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include"
93 lappend l "-I[lindex [wokparam -v %CSF_JavaHome] 0]/include/solaris"
94 lappend l "[lindex [wokparam -v %CSF_TCL_HOME] 0]/include"
97 lappend l /usr/include/CC
104 ;# Pre-requis pour la compilation ( -L ... )
105 ;# Returns a list of directory that should be used in -L directives
106 ;# while creating shareable.
108 proc Visualization:LinksoWith { } {
115 lappend l /usr/X11R6/lib
118 lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltcl"
119 lappend l "-L[wokparam -v %CSF_TCL_HOME]/lib -R[wokparam -v %CSF_TCL_HOME]/lib -ltk"
120 lappend l /usr/openwin/lib
130 ;# Returns a list of exported features.
131 ;# source : Source files
132 ;# runtime: Shareables
133 ;# wokadm : WOK admin files
134 ;# api : Public include files
136 proc Visualization:Export { } {
137 return [list source runtime wokadm api]