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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8625 - (hide annotations) (download) (as text)
Wed Feb 11 22:48:16 2009 UTC (8 years, 8 months ago) by pieper
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 21898 byte(s)
BUG: first pass of python and numpy builds from source (fixes but that they weren't building before).  Still turned off by default until more testing is done
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 naucoin 7221 set ::KWWidgets_TAG "HEAD"
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     set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/branches/1.1.x"
86     #set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/trunk"
87     set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/branches/0.6.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     # CMake option for Python, must be "off" on "on", default is "off"
151 pieper 8034 if {$::env(BUILD) == $::WINDOWS} {
152     set ::USE_PYTHON "OFF"
153     } else {
154     set ::USE_PYTHON "ON"
155     }
156 pieper 8625
157 pieper 7556 # CMake option for numerical Python, only matters if Python is on
158 pieper 8625 set ::USE_NUMPY "OFF"
159 pieper 7911 # getbuildtest option for SCIPY - also build support libraries (blas and lapack) needed for scipy
160     # - should be off except for experimentation (does not work on all plaftorms - requires fortran)
161     # - should be "true" or "false"
162     set ::USE_SCIPY "false"
163 hliu 7835 # CMake Option for using OpenIGTLink library. Must be "OFF" or "ON", default is "OFF"
164 hliu 8069 set ::USE_OPENIGTLINK "ON"
165 hliu 7835
166 pieper 7447
167 pieper 376 switch $::tcl_platform(os) {
168 pieper 7336 "SunOS" {
169     set shared_lib_ext "so"
170     }
171 pieper 376 "Linux" {
172     set shared_lib_ext "so"
173     }
174     "Darwin" {
175     set shared_lib_ext "dylib"
176     }
177     "Windows NT" {
178     set shared_lib_ext "dll"
179     }
180     }
181    
182     # TODO: identify files for each platform
183    
184     switch $::tcl_platform(os) {
185 pieper 7336 "SunOS" {
186     set ::VTK_BUILD_SUBDIR ""
187 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
188 pieper 7336
189     set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
190     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
191    
192     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
193 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
194     error "need to define system python path for $::tcl_platform(os)"
195     }
196 pieper 7336 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
197 pieper 8109 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
198     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
199 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
200 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
201     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
202 pieper 7336 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
203     set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
204 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
205 pieper 7336 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
206     set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
207     set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
208     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
209     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
210     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
211     set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
212     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
213 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
214 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
215 pieper 7336 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.$shared_lib_ext
216     set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
217     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
218 pieper 7489
219     # We need a workaround here, because gcc does not pick up libraries in /lib
220     # on Solaris.
221     # The bug, and it's resolution can be found here:
222     # http://bugs.opensolaris.org/view_bug.do?bug_id=6619485
223     set ::env(LDFLAGS) -L/lib
224 pieper 7336 }
225 pieper 376 "Darwin" {
226 pieper 5261 set ::VTK_BUILD_SUBDIR ""
227 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
228 pieper 376
229     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
230     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
231 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
232     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
233 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
234     set ::PYTHON_BIN_DIR /usr
235     }
236 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
237 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
238     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
239 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
240 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
241     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
242 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
243 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
244     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
245 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
246 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
247 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
248 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
249     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
250     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
251     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
252 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
253 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
254 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
255 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
256 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
257 hliu 3004
258 pieper 376 }
259     "Linux" {
260 pieper 5261 set ::VTK_BUILD_SUBDIR ""
261 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
262 pieper 376
263     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
264 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
265     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
266 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
267     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
268 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
269     error "need to define system python path for $::tcl_platform(os)"
270     }
271 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
272 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
273     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
274 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
275 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
276     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
277 pieper 376 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
278 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
279 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
280 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
281 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
282 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
283     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
284     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
285     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
286 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
287 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
288 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
289 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
290 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
291 hliu 3004
292 pieper 376 }
293     "Windows NT" {
294     # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
295    
296     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
297 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin/$::VTK_BUILD_TYPE
298 pieper 376
299     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
300     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh84.exe
301     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish84.exe
302 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
303 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/itcl3.2/itcl32.lib
304     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/itk3.2/itk32.lib
305 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
306     set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
307 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu.exe
308 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
309     error "need to define system python path for $::tcl_platform(os)"
310     }
311 pieper 8625 #set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python.exe
312     #set ::PYTHON_LIB $::PYTHON_BIN_DIR/Libs/python25.lib
313     set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/PCbuild/python.exe
314     set ::PYTHON_LIB $::PYTHON_BIN_DIR/PCbuild/python25.lib
315    
316 blezek 6869 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
317 pieper 8625
318 pieper 7537 set ::NETLIB_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
319 pieper 8625 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/site-packages/numpy/core/numeric.pyc
320 pieper 7390 set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
321 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
322 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
323 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/tcl84.lib
324     set ::VTK_TK_LIB $::TCL_LIB_DIR/tk84.lib
325     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh84.exe
326     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/$::VTK_BUILD_TYPE/ITKCommon.dll
327 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/$::VTK_BUILD_TYPE/OpenIGTLink.lib
328 pieper 8442 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/$::VTK_BUILD_TYPE/BatchMake.lib
329 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
330 pieper 376 }
331     default {
332     puts stderr "Could not match platform \"$::tcl_platform(os)\"."
333     exit
334     }
335     }
336    
337     # System dependent variables
338    
339     switch $::tcl_platform(os) {
340     "SunOS" {
341 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
342     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
343 pieper 376 set ::GENERATOR "Unix Makefiles"
344 pieper 7336 set ::COMPILER_PATH "/usr/sfw/bin"
345 pieper 376 set ::COMPILER "g++"
346     set ::CMAKE $::CMAKE_PATH/bin/cmake
347 pieper 7336 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
348     set ::MAKE "gmake -j[expr $numCPUs]"
349 pieper 376 set ::SERIAL_MAKE "gmake"
350     }
351     "Linux" {
352 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
353     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
354 pieper 376 set ::GENERATOR "Unix Makefiles"
355     set ::COMPILER_PATH "/usr/bin"
356     set ::COMPILER "g++"
357 pieper 7594 set ::FORTRAN_COMPILER "gfortran"
358 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
359 pieper 885 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
360 lorensen 8346 set ::MAKE "make -j [expr $numCPUs]"
361 pieper 376 set ::SERIAL_MAKE "make"
362     }
363     "Darwin" {
364 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
365     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
366 pieper 376 set ::GENERATOR "Unix Makefiles"
367     set ::COMPILER_PATH "/usr/bin"
368 hayes 933 set ::COMPILER "g++"
369 pieper 7560 set ::FORTRAN_COMPILER "gfortran"
370 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
371     set ::MAKE make
372     set ::SERIAL_MAKE make
373     }
374     default {
375     # different windows machines say different things, so assume
376     # that if it doesn't match above it must be windows
377     # (VC7 is Visual C++ 7.0, also known as the .NET version)
378    
379    
380 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
381     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
382 pieper 376
383     set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
384    
385     set MSVC6 0
386     #
387     ## match this to the version of the compiler you have:
388     #
389    
390     ## for Visual Studio 6:
391     #set ::GENERATOR "Visual Studio 6"
392     #set ::MAKE "msdev"
393     #set ::COMPILER_PATH ""
394     #set MSVC6 1
395    
396     if {[info exists ::env(MSVC6)]} {
397     set ::MSVC6 $::env(MSVC6)
398     } else {
399     }
400    
401     ## for Visual Studio 7:
402     if {[info exists ::env(GENERATOR)]} {
403     set ::GENERATOR $::env(GENERATOR)
404     } else {
405     set ::GENERATOR "Visual Studio 7"
406     }
407    
408     if {[info exists ::env(MAKE)]} {
409     set ::MAKE $::env(MAKE)
410     } else {
411     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/IDE/devenv"
412     }
413    
414     if {[info exists ::env(COMPILER_PATH)]} {
415     set ::COMPILER_PATH $::env(COMPILER_PATH)
416     } else {
417     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/Vc7/bin"
418     }
419    
420     #
421     ## for Visual Studio 7.1:
422 pieper 917 # - automatically use newer if available
423 pieper 376 #
424     if { [file exists "c:/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE/devenv.exe"] } {
425     set ::GENERATOR "Visual Studio 7 .NET 2003"
426     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Common7/IDE/devenv"
427     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Vc7/bin"
428 pieper 8625 set ::MSSDK_PATH "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK"
429 pieper 376 }
430    
431 pieper 917 #
432     ## for Visual Studio 8
433     # - automatically use newest if available
434 pieper 1456 # - use full if available, otherwise express
435 pieper 4760 # - use the 64 bit version if available
436 pieper 917 #
437     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"] } {
438     set ::GENERATOR "Visual Studio 8 2005"
439     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
440     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
441 pieper 8625 error "*****\n MSSDK_PATH value not known for this compiler - \nLook at settings for Visual Studio 7.1 and 2008 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."
442 pieper 917 }
443    
444 pieper 1456
445     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
446     set ::GENERATOR "Visual Studio 8 2005"
447     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
448     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
449 pieper 8625 error "*****\n MSSDK_PATH value not known for this compiler - \nLook at settings for Visual Studio 7.1 and 2008 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."
450 pieper 1456 }
451    
452 pieper 4690 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
453 pieper 4760 #set ::GENERATOR "Visual Studio 8 2005 Win64"
454     set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
455 pieper 4690 set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
456     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin"
457 pieper 8625 error "*****\n MSSDK_PATH value not known for this compiler - \nLook at settings for Visual Studio 7.1 and 2008 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."
458 pieper 4690 }
459 hayes 6440 #
460     ## for Visual Studio 9
461     if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
462 hayes 6442 set ::GENERATOR "Visual Studio 9 2008"
463 hayes 6440 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
464     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
465 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
466 hayes 6440 }
467 pieper 4690
468 pieper 7737 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
469     set ::GENERATOR "Visual Studio 9 2008"
470     set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
471     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin"
472 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
473 pieper 7737 }
474    
475    
476 pieper 7379 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
477     set ::GENERATOR "Visual Studio 9 2008"
478     set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
479     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
480 pieper 8625 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
481 pieper 7379 }
482    
483 pieper 376 set ::COMPILER "cl"
484     set ::SERIAL_MAKE $::MAKE
485     }
486     }
487    
488    
489 pieper 7556

  ViewVC Help
Powered by ViewVC 1.1.22