/[Slicer3]/oldtrunk/slicer_variables.tcl
ViewVC logotype

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8881 - (hide annotations) (download) (as text)
Sun Mar 15 21:02:06 2009 UTC (8 years, 7 months ago) by pieper
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 21397 byte(s)
COMP: update to latest numpy (and scipy)
1 pieper 376
2     #
3     # Note: this local vars file overrides sets the default environment for :
4     # Scripts/genlib.tcl -- make all the support libs
5     # Scripts/cmaker.tcl -- makes slicer code
6     # launch.tcl -- sets up the runtime env and starts slicer
7     # Scripts/tarup.tcl -- makes a tar.gz files with all the support files
8     #
9     # - use this file to set your local environment and then your change won't
10     # be overwritten when those files are updated through CVS
11     #
12    
13    
14     ## variables that are the same for all systems
15 barre 6777 set ::Slicer3_DATA_ROOT ""
16 pieper 376
17 barre 6777 if {[info exists ::env(Slicer3_HOME)]} {
18 pieper 376 # already set by the launcher
19 barre 6777 set ::Slicer3_HOME $::env(Slicer3_HOME)
20 pieper 376 } else {
21 barre 6777 # if sourcing this into cmaker, Slicer3_HOME may not be set
22     # set the Slicer3_HOME directory to the one in which this script resides
23 pieper 376 set cwd [pwd]
24     cd [file dirname [info script]]
25 barre 6777 set ::Slicer3_HOME [pwd]
26     set ::env(Slicer3_HOME) $::Slicer3_HOME
27 pieper 376 cd $cwd
28     }
29    
30     # set up variables for the OS Builds, to facilitate the move to solaris9
31     # - solaris can be solaris8 or solaris9
32 pieper 435 set ::SOLARIS "solaris8"
33     set ::LINUX "linux-x86"
34     set ::LINUX_64 "linux-x86_64"
35     set ::DARWIN "darwin-ppc"
36 naucoin 2494 set ::DARWIN_X86 "darwin-x86"
37 pieper 435 set ::WINDOWS "win32"
38    
39 pieper 376 #
40     # set the default locations for the main components
41     #
42     switch $::tcl_platform(os) {
43 pieper 435 "SunOS" { set ::env(BUILD) $::SOLARIS }
44 pieper 376 "Linux" {
45     if {$::tcl_platform(machine) == "x86_64"} {
46 pieper 435 set ::env(BUILD) $::LINUX_64
47 pieper 376 } else {
48 pieper 435 set ::env(BUILD) $::LINUX
49 pieper 376 }
50     }
51 naucoin 2494 "Darwin" {
52 lauren 2510 if {$::tcl_platform(machine) == "i386"} {
53 naucoin 2494 set ::env(BUILD) $::DARWIN_X86
54     } else {
55     set ::env(BUILD) $::DARWIN
56     }
57     }
58 pieper 376 default {
59 pieper 435 set ::env(BUILD) $::WINDOWS
60 barre 6777 set ::Slicer3_HOME [file attributes $::Slicer3_HOME -shortname]
61     set ::env(Slicer3_HOME) $::Slicer3_HOME
62 pieper 376 }
63     }
64    
65 barre 6777 puts stderr "Slicer3_HOME is $::Slicer3_HOME"
66 pieper 376
67     # Choose which library versions you want to compile against. These
68     # shouldn't be changed between releases except for testing purposes.
69     # If you change them and Slicer breaks, you get to keep both pieces.
70     #
71     # When modifying these variables, make sure to make appropriate
72     # changes in the "Files to test if library has already been built"
73     # section below, or genlib will happily build the library again.
74    
75 hayes 7173 set ::Slicer3_TAG "http://svn.slicer.org/Slicer3/trunk"
76 pieper 6641 set ::CMAKE_TAG "CMake-2-6"
77 pieper 8506 set ::Teem_TAG http://teem.svn.sourceforge.net/svnroot/teem/teem/tags/1.10.0
78 pieper 8631 set ::KWWidgets_TAG "Slicer-3-4"
79 pieper 6641 set ::VTK_TAG "VTK-5-2"
80 pieper 8332 set ::ITK_TAG ITK-3-10
81 blezek 6869 set ::PYTHON_TAG "http://svn.python.org/projects/python/branches/release25-maint"
82 pieper 7537 set ::BLAS_TAG http://svn.slicer.org/Slicer3-lib-mirrors/trunk/netlib/BLAS
83     set ::LAPACK_TAG http://svn.slicer.org/Slicer3-lib-mirrors/trunk/netlib/lapack-3.1.1
84 pieper 7488 #set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/trunk"
85 pieper 8881 set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/branches/1.2.x"
86 pieper 7488 #set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/trunk"
87 pieper 8881 set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/branches/0.7.x"
88 hayes 8491 set ::BatchMake_TAG "BatchMake-1-0-8"
89 naucoin 6040 set ::SLICERLIBCURL_TAG "HEAD"
90 tokuda 8495 set ::OpenIGTLink_TAG "http://svn.na-mic.org/NAMICSandBox/branches/OpenIGTLink-1-0"
91 pieper 7489 # set TCL_VERSION to "tcl" to get 8.4, otherwise use tcl85 get 8.5
92     set ::TCL_VERSION tcl
93     #set ::TCL_VERSION tcl85
94 pieper 376
95     # Set library, binary, etc. paths...
96    
97 davisb 7539 # if Slicer3_LIB and Slicer3_BUILD haven't been set, first check
98     # enviornment variables, then assume they are in the 'standard' places
99     # next to the source tree (as created by getbuildtest.tcl
100 barre 6777 if { ![info exists ::Slicer3_LIB] } {
101 davisb 7539 if { [info exists ::env(Slicer3_LIB)] } {
102     set ::Slicer3_LIB $::env(Slicer3_LIB)
103     } else {
104     set wd [pwd]
105     cd $::Slicer3_HOME/../Slicer3-lib
106     set ::Slicer3_LIB [pwd]
107     cd $wd
108     }
109 pieper 433 }
110 barre 6777 if { ![info exists ::Slicer3_BUILD] } {
111 davisb 7539 if { [info exists ::env(Slicer3_BUILD)] } {
112 davisb 7540 set ::Slicer3_BUILD $::env(Slicer3_BUILD)
113 davisb 7539 } else {
114     set wd [pwd]
115     cd $::Slicer3_HOME/../Slicer3-build
116     set ::Slicer3_BUILD [pwd]
117     cd $wd
118     }
119 pieper 433 }
120    
121 pieper 7799 set ::Teem_SRC_DIR $::Slicer3_LIB/teem
122     set ::Teem_BUILD_DIR $::Slicer3_LIB/teem-build
123 barre 6777 set ::VTK_DIR $::Slicer3_LIB/VTK-build
124     set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
125 pieper 5199 if { ![info exists ::VTK_BUILD_TYPE] } {
126     # set a default if it hasn't already been specified
127     set ::VTK_BUILD_TYPE "Debug" ;# options: Release, RelWithDebInfo, Debug
128     }
129     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
130 pieper 376 set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
131 barre 6777 set ::KWWidgets_BUILD_DIR $::Slicer3_LIB/KWWidgets-build
132     set ::KWWIDGETS_DIR $::Slicer3_LIB/KWWidgets
133     set ::ITK_BINARY_PATH $::Slicer3_LIB/Insight-build
134     set ::TCL_BIN_DIR $::Slicer3_LIB/tcl-build/bin
135     set ::TCL_LIB_DIR $::Slicer3_LIB/tcl-build/lib
136     set ::TCL_INCLUDE_DIR $::Slicer3_LIB/tcl-build/include
137 blezek 6869 set ::PYTHON_BIN_DIR $::Slicer3_LIB/python-build
138 barre 6777 set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
139 pieper 376 set ::SOV_BINARY_DIR ""
140     set ::XVNC_EXECUTABLE " "
141 hliu 7835 set ::OpenIGTLink_DIR $::Slicer3_LIB/OpenIGTLink-build
142 pieper 8442 set ::BatchMake_SRC_DIR $::Slicer3_LIB/BatchMake
143     set ::BatchMake_BUILD_DIR $::Slicer3_LIB/BatchMake-build
144 barre 6777 set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
145     set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
146 pieper 376
147    
148 pieper 7911 # getbuildtest Option for build using system Python, should be "true" or "false"
149 blezek 7453 set ::USE_SYSTEM_PYTHON "false"
150 pieper 8632 # CMake option for Python, must be "OFF" on "ON", default is "ON"
151     set ::USE_PYTHON "ON"
152 pieper 8625
153 pieper 7556 # CMake option for numerical Python, only matters if Python is on
154 pieper 8727 set ::USE_NUMPY "ON"
155 pieper 7911 # getbuildtest option for SCIPY - also build support libraries (blas and lapack) needed for scipy
156     # - should be off except for experimentation (does not work on all plaftorms - requires fortran)
157     # - should be "true" or "false"
158     set ::USE_SCIPY "false"
159 hliu 7835 # CMake Option for using OpenIGTLink library. Must be "OFF" or "ON", default is "OFF"
160 hliu 8069 set ::USE_OPENIGTLINK "ON"
161 hliu 7835
162 pieper 7447
163 pieper 376 switch $::tcl_platform(os) {
164 pieper 7336 "SunOS" {
165     set shared_lib_ext "so"
166     }
167 pieper 376 "Linux" {
168     set shared_lib_ext "so"
169     }
170     "Darwin" {
171     set shared_lib_ext "dylib"
172     }
173     "Windows NT" {
174     set shared_lib_ext "dll"
175     }
176     }
177    
178     # TODO: identify files for each platform
179    
180     switch $::tcl_platform(os) {
181 pieper 7336 "SunOS" {
182     set ::VTK_BUILD_SUBDIR ""
183 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
184 pieper 7336
185     set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
186     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
187    
188     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
189 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
190     error "need to define system python path for $::tcl_platform(os)"
191     }
192 pieper 7336 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
193 pieper 8109 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
194     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
195 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
196 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
197     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
198 pieper 7336 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
199     set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
200 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
201 pieper 7336 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
202     set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
203     set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
204     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
205     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
206     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
207     set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
208     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
209 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
210 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
211 pieper 7336 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.$shared_lib_ext
212     set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
213     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
214 pieper 7489
215     # We need a workaround here, because gcc does not pick up libraries in /lib
216     # on Solaris.
217     # The bug, and it's resolution can be found here:
218     # http://bugs.opensolaris.org/view_bug.do?bug_id=6619485
219     set ::env(LDFLAGS) -L/lib
220 pieper 7336 }
221 pieper 376 "Darwin" {
222 pieper 5261 set ::VTK_BUILD_SUBDIR ""
223 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
224 pieper 376
225     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
226     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
227 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
228     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
229 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
230     set ::PYTHON_BIN_DIR /usr
231     }
232 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
233 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
234     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
235 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
236 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
237     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
238 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
239 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
240     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
241 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
242 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
243 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
244 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
245     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
246     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
247     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
248 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
249 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
250 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
251 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
252 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
253 hliu 3004
254 pieper 376 }
255     "Linux" {
256 pieper 5261 set ::VTK_BUILD_SUBDIR ""
257 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
258 pieper 376
259     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
260 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
261     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
262 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
263     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
264 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
265     error "need to define system python path for $::tcl_platform(os)"
266     }
267 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
268 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
269     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
270 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
271 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
272     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
273 pieper 376 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
274 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
275 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
276 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
277 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
278 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
279     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
280     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
281     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
282 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
283 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
284 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
285 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
286 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
287 hliu 3004
288 pieper 376 }
289     "Windows NT" {
290     # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
291    
292     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
293 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin/$::VTK_BUILD_TYPE
294 pieper 376
295     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
296     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh84.exe
297     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish84.exe
298 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
299 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/itcl3.2/itcl32.lib
300     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/itk3.2/itk32.lib
301 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
302     set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
303 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu.exe
304 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
305     error "need to define system python path for $::tcl_platform(os)"
306     }
307 pieper 8625 #set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python.exe
308     #set ::PYTHON_LIB $::PYTHON_BIN_DIR/Libs/python25.lib
309     set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/PCbuild/python.exe
310     set ::PYTHON_LIB $::PYTHON_BIN_DIR/PCbuild/python25.lib
311    
312 blezek 6869 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
313 pieper 8625
314 pieper 7537 set ::NETLIB_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
315 pieper 8625 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/site-packages/numpy/core/numeric.pyc
316 pieper 7390 set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
317 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
318 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
319 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/tcl84.lib
320     set ::VTK_TK_LIB $::TCL_LIB_DIR/tk84.lib
321     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh84.exe
322     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/$::VTK_BUILD_TYPE/ITKCommon.dll
323 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/$::VTK_BUILD_TYPE/OpenIGTLink.lib
324 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/$::VTK_BUILD_TYPE/BatchMake.lib
325 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
326 pieper 376 }
327     default {
328     puts stderr "Could not match platform \"$::tcl_platform(os)\"."
329     exit
330     }
331     }
332    
333     # System dependent variables
334    
335     switch $::tcl_platform(os) {
336     "SunOS" {
337 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
338     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
339 pieper 376 set ::GENERATOR "Unix Makefiles"
340 pieper 7336 set ::COMPILER_PATH "/usr/sfw/bin"
341 pieper 376 set ::COMPILER "g++"
342     set ::CMAKE $::CMAKE_PATH/bin/cmake
343 pieper 7336 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
344     set ::MAKE "gmake -j[expr $numCPUs]"
345 pieper 376 set ::SERIAL_MAKE "gmake"
346     }
347     "Linux" {
348 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
349     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
350 pieper 376 set ::GENERATOR "Unix Makefiles"
351     set ::COMPILER_PATH "/usr/bin"
352     set ::COMPILER "g++"
353 pieper 7594 set ::FORTRAN_COMPILER "gfortran"
354 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
355 pieper 885 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
356 lorensen 8346 set ::MAKE "make -j [expr $numCPUs]"
357 pieper 376 set ::SERIAL_MAKE "make"
358     }
359     "Darwin" {
360 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
361     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
362 pieper 376 set ::GENERATOR "Unix Makefiles"
363     set ::COMPILER_PATH "/usr/bin"
364 hayes 933 set ::COMPILER "g++"
365 pieper 7560 set ::FORTRAN_COMPILER "gfortran"
366 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
367     set ::MAKE make
368     set ::SERIAL_MAKE make
369     }
370     default {
371     # different windows machines say different things, so assume
372     # that if it doesn't match above it must be windows
373     # (VC7 is Visual C++ 7.0, also known as the .NET version)
374    
375    
376 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
377     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
378 pieper 376
379     set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
380    
381     set MSVC6 0
382     #
383     ## match this to the version of the compiler you have:
384     #
385    
386     ## for Visual Studio 6:
387     #set ::GENERATOR "Visual Studio 6"
388     #set ::MAKE "msdev"
389     #set ::COMPILER_PATH ""
390     #set MSVC6 1
391    
392     if {[info exists ::env(MSVC6)]} {
393     set ::MSVC6 $::env(MSVC6)
394     } else {
395     }
396    
397     ## for Visual Studio 7:
398     if {[info exists ::env(GENERATOR)]} {
399     set ::GENERATOR $::env(GENERATOR)
400     } else {
401     set ::GENERATOR "Visual Studio 7"
402     }
403    
404     if {[info exists ::env(MAKE)]} {
405     set ::MAKE $::env(MAKE)
406     } else {
407     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/IDE/devenv"
408     }
409    
410     if {[info exists ::env(COMPILER_PATH)]} {
411     set ::COMPILER_PATH $::env(COMPILER_PATH)
412     } else {
413     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/Vc7/bin"
414     }
415    
416     #
417     ## for Visual Studio 7.1:
418 pieper 917 # - automatically use newer if available
419 pieper 376 #
420     if { [file exists "c:/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE/devenv.exe"] } {
421     set ::GENERATOR "Visual Studio 7 .NET 2003"
422     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Common7/IDE/devenv"
423     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Vc7/bin"
424 pieper 8625 set ::MSSDK_PATH "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK"
425 pieper 376 }
426    
427 pieper 917 #
428     ## for Visual Studio 8
429     # - automatically use newest if available
430 pieper 1456 # - use full if available, otherwise express
431 pieper 4760 # - use the 64 bit version if available
432 pieper 917 #
433     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"] } {
434     set ::GENERATOR "Visual Studio 8 2005"
435     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
436     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
437 pieper 8633 set ::MSSDK_PATH "C:\Program Files\Microsoft Platform SDK"
438 pieper 917 }
439    
440 pieper 1456
441     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
442     set ::GENERATOR "Visual Studio 8 2005"
443     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
444     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
445 pieper 8633 set ::MSSDK_PATH "C:\Program Files\Microsoft Platform SDK"
446 pieper 1456 }
447    
448 pieper 4690 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
449 pieper 4760 #set ::GENERATOR "Visual Studio 8 2005 Win64"
450     set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
451 pieper 4690 set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
452     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin"
453 pieper 8633 error "*****\n MSSDK_PATH value not known for this compiler - \nLook at settings for other Visual Studio 2005 configuration for possible locations of the SDK include and library files. \ncontact slicer-devel@bwh.harvard.edu for more instructions or to report correct path for this compiler."
454 pieper 4690 }
455 hayes 6440 #
456     ## for Visual Studio 9
457     if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
458 hayes 6442 set ::GENERATOR "Visual Studio 9 2008"
459 hayes 6440 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
460     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
461 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
462 hayes 6440 }
463 pieper 4690
464 pieper 7737 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
465     set ::GENERATOR "Visual Studio 9 2008"
466     set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
467     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin"
468 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
469 pieper 7737 }
470    
471    
472 pieper 7379 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
473     set ::GENERATOR "Visual Studio 9 2008"
474     set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
475     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
476 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
477 pieper 7379 }
478    
479 pieper 376 set ::COMPILER "cl"
480     set ::SERIAL_MAKE $::MAKE
481     }
482     }
483    
484    
485 pieper 7556

  ViewVC Help
Powered by ViewVC 1.1.22