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

Contents of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8971 - (show annotations) (download) (as text)
Wed Mar 25 13:07:13 2009 UTC (8 years, 6 months ago) by pieper
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 21390 byte(s)
BUG: don't print to stderr since other programs may interpret this as an error code
1
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 set ::Slicer3_DATA_ROOT ""
16
17 if {[info exists ::env(Slicer3_HOME)]} {
18 # already set by the launcher
19 set ::Slicer3_HOME $::env(Slicer3_HOME)
20 } else {
21 # 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 set cwd [pwd]
24 cd [file dirname [info script]]
25 set ::Slicer3_HOME [pwd]
26 set ::env(Slicer3_HOME) $::Slicer3_HOME
27 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 set ::SOLARIS "solaris8"
33 set ::LINUX "linux-x86"
34 set ::LINUX_64 "linux-x86_64"
35 set ::DARWIN "darwin-ppc"
36 set ::DARWIN_X86 "darwin-x86"
37 set ::WINDOWS "win32"
38
39 #
40 # set the default locations for the main components
41 #
42 switch $::tcl_platform(os) {
43 "SunOS" { set ::env(BUILD) $::SOLARIS }
44 "Linux" {
45 if {$::tcl_platform(machine) == "x86_64"} {
46 set ::env(BUILD) $::LINUX_64
47 } else {
48 set ::env(BUILD) $::LINUX
49 }
50 }
51 "Darwin" {
52 if {$::tcl_platform(machine) == "i386"} {
53 set ::env(BUILD) $::DARWIN_X86
54 } else {
55 set ::env(BUILD) $::DARWIN
56 }
57 }
58 default {
59 set ::env(BUILD) $::WINDOWS
60 set ::Slicer3_HOME [file attributes $::Slicer3_HOME -shortname]
61 set ::env(Slicer3_HOME) $::Slicer3_HOME
62 }
63 }
64
65 puts "Slicer3_HOME is $::Slicer3_HOME"
66
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 set ::Slicer3_TAG "http://svn.slicer.org/Slicer3/trunk"
76 set ::CMAKE_TAG "CMake-2-6"
77 set ::Teem_TAG http://teem.svn.sourceforge.net/svnroot/teem/teem/tags/1.10.0
78 set ::KWWidgets_TAG "Slicer-3-4"
79 set ::VTK_TAG "VTK-5-2"
80 set ::ITK_TAG ITK-3-10
81 set ::PYTHON_TAG "http://svn.python.org/projects/python/branches/release25-maint"
82 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 #set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/trunk"
85 set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/branches/1.2.x"
86 #set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/trunk"
87 set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/branches/0.7.x"
88 set ::BatchMake_TAG "BatchMake-1-0-8"
89 set ::SLICERLIBCURL_TAG "HEAD"
90 set ::OpenIGTLink_TAG "http://svn.na-mic.org/NAMICSandBox/branches/OpenIGTLink-1-0"
91 # 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
95 # Set library, binary, etc. paths...
96
97 # 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 if { ![info exists ::Slicer3_LIB] } {
101 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 }
110 if { ![info exists ::Slicer3_BUILD] } {
111 if { [info exists ::env(Slicer3_BUILD)] } {
112 set ::Slicer3_BUILD $::env(Slicer3_BUILD)
113 } else {
114 set wd [pwd]
115 cd $::Slicer3_HOME/../Slicer3-build
116 set ::Slicer3_BUILD [pwd]
117 cd $wd
118 }
119 }
120
121 set ::Teem_SRC_DIR $::Slicer3_LIB/teem
122 set ::Teem_BUILD_DIR $::Slicer3_LIB/teem-build
123 set ::VTK_DIR $::Slicer3_LIB/VTK-build
124 set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
125 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 set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
131 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 set ::PYTHON_BIN_DIR $::Slicer3_LIB/python-build
138 set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
139 set ::SOV_BINARY_DIR ""
140 set ::XVNC_EXECUTABLE " "
141 set ::OpenIGTLink_DIR $::Slicer3_LIB/OpenIGTLink-build
142 set ::BatchMake_SRC_DIR $::Slicer3_LIB/BatchMake
143 set ::BatchMake_BUILD_DIR $::Slicer3_LIB/BatchMake-build
144 set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
145 set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
146
147
148 # getbuildtest Option for build using system Python, should be "true" or "false"
149 set ::USE_SYSTEM_PYTHON "false"
150 # CMake option for Python, must be "OFF" on "ON", default is "ON"
151 set ::USE_PYTHON "ON"
152
153 # CMake option for numerical Python, only matters if Python is on
154 set ::USE_NUMPY "ON"
155 # 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 # CMake Option for using OpenIGTLink library. Must be "OFF" or "ON", default is "OFF"
160 set ::USE_OPENIGTLINK "ON"
161
162
163 switch $::tcl_platform(os) {
164 "SunOS" {
165 set shared_lib_ext "so"
166 }
167 "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 "SunOS" {
182 set ::VTK_BUILD_SUBDIR ""
183 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
184
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 if { $::USE_SYSTEM_PYTHON } {
190 error "need to define system python path for $::tcl_platform(os)"
191 }
192 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
193 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
194 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
195 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
196 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 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
199 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
200 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
201 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 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
210 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
211 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
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 }
221 "Darwin" {
222 set ::VTK_BUILD_SUBDIR ""
223 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
224
225 set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
226 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
227 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
228 set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
229 if { $::USE_SYSTEM_PYTHON } {
230 set ::PYTHON_BIN_DIR /usr
231 }
232 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
233 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
234 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
235 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
236 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 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
239 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
240 set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
241 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
242 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
243 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
244 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 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
249 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
250 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
251 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
252 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
253
254 }
255 "Linux" {
256 set ::VTK_BUILD_SUBDIR ""
257 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
258
259 set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
260 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
261 set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
262 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
263 set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
264 if { $::USE_SYSTEM_PYTHON } {
265 error "need to define system python path for $::tcl_platform(os)"
266 }
267 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
268 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
269 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
270 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
271 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 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
274 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
275 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
276 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
277 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
278 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 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
283 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
284 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
285 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/BatchMake
286 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
287
288 }
289 "Windows NT" {
290 # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
291
292 set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
293 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin/$::VTK_BUILD_TYPE
294
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 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
299 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 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
302 set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
303 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu.exe
304 if { $::USE_SYSTEM_PYTHON } {
305 error "need to define system python path for $::tcl_platform(os)"
306 }
307 #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 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
313
314 set ::NETLIB_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
315 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/site-packages/numpy/core/numeric.pyc
316 set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
317 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
318 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
319 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 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/$::VTK_BUILD_TYPE/OpenIGTLink.lib
324 set ::BatchMake_TEST_FILE $::BatchMake_BUILD_DIR/bin/$::VTK_BUILD_TYPE/BatchMake.lib
325 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
326 }
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 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 set ::GENERATOR "Unix Makefiles"
340 set ::COMPILER_PATH "/usr/sfw/bin"
341 set ::COMPILER "g++"
342 set ::CMAKE $::CMAKE_PATH/bin/cmake
343 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
344 set ::MAKE "gmake -j[expr $numCPUs]"
345 set ::SERIAL_MAKE "gmake"
346 }
347 "Linux" {
348 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 set ::GENERATOR "Unix Makefiles"
351 set ::COMPILER_PATH "/usr/bin"
352 set ::COMPILER "g++"
353 set ::FORTRAN_COMPILER "gfortran"
354 set ::CMAKE $::CMAKE_PATH/bin/cmake
355 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
356 set ::MAKE "make -j [expr $numCPUs]"
357 set ::SERIAL_MAKE "make"
358 }
359 "Darwin" {
360 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 set ::GENERATOR "Unix Makefiles"
363 set ::COMPILER_PATH "/usr/bin"
364 set ::COMPILER "g++"
365 set ::FORTRAN_COMPILER "gfortran"
366 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 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
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 # - automatically use newer if available
419 #
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 set ::MSSDK_PATH "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK"
425 }
426
427 #
428 ## for Visual Studio 8
429 # - automatically use newest if available
430 # - use full if available, otherwise express
431 # - use the 64 bit version if available
432 #
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 set ::MSSDK_PATH "C:\Program Files\Microsoft Platform SDK"
438 }
439
440
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 set ::MSSDK_PATH "C:\Program Files\Microsoft Platform SDK"
446 }
447
448 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
449 #set ::GENERATOR "Visual Studio 8 2005 Win64"
450 set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
451 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 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 }
455 #
456 ## for Visual Studio 9
457 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
458 set ::GENERATOR "Visual Studio 9 2008"
459 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 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
462 }
463
464 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 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
469 }
470
471
472 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 set ::MSSDK_PATH "c:/Program Files/Microsoft SDKs/Windows/v6.0A"
477 }
478
479 set ::COMPILER "cl"
480 set ::SERIAL_MAKE $::MAKE
481 }
482 }
483
484
485

  ViewVC Help
Powered by ViewVC 1.1.22