0032315: Configuration, CMake - fix building Draw Harness plugins as static libraries
[occt.git] / src / OS / Draw.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
a34bddcf 14;# Return list of toolkits
7fd59977 15proc Draw:toolkits { } {
b8db9379 16 set aResult [list TKDraw TKTopTest TKViewerTest TKXSDRAW TKDCAF TKXDEDRAW TKTObjDRAW TKQADraw]
52f99d93 17
b8db9379 18 lappend aResult "TKOpenGlTest"
b8ef513c 19 if { [info exists ::env(HAVE_GLES2)] && "$::env(HAVE_GLES2)" == "true" } {
20 lappend aResult "TKOpenGlesTest"
21 }
cdcb843e 22
23 if { [info exists ::env(HAVE_D3D)] } {
24 if { "$::env(HAVE_D3D)" == "true" } {
b8db9379 25 lappend aResult "TKD3DHostTest"
52f99d93 26 }
b8db9379 27 }
cdcb843e 28
b8db9379 29 if { [info exists ::env(HAVE_VTK)] && "$::env(HAVE_VTK)" == "true" } {
30 lappend aResult "TKIVtkDraw"
31 }
52f99d93 32
b8db9379 33 return $aResult
7fd59977 34}
52f99d93 35
7fd59977 36;# Autres UDs a prendre. Listes de triplets
37;# { ar typ UD str } Tous les types de UD vont dans un sous directory nomme root/str
38;# Ils seront dans CAS3.0/str de l'archive de type ar (source/runtime)
39;# { ar typ UD {} } Tous les types de UD vont dans root/UD/src => CAS3.0/src
7fd59977 40proc Draw:ressources { } {
a34bddcf 41 return [list \
42 [list both r DrawResources {}] \
43 [list both x DRAWEXE {}] \
44 ]
7fd59977 45}
46
a34bddcf 47proc Draw:freefiles { } { return {} }
48
49proc Draw:name { } { return Draw }
50proc Draw:alias { } { return DRAW }
51proc Draw:depends { } { return [list DataExchange] }
52proc Draw:acdepends { } { return [list TCLTK] }
7fd59977 53
7fd59977 54;# Returns a list of exported features.
a34bddcf 55proc Draw:Export { } { return [list source runtime wokadm api] }