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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8346 - (hide annotations) (download) (as text)
Sat Jan 10 21:37:29 2009 UTC (8 years, 9 months ago) by lorensen
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 20031 byte(s)
ENH: be a bit more friendly, reduce # of parallel builds.
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 8092 set ::Teem_TAG http://teem.svn.sourceforge.net/svnroot/teem/teem/trunk
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 naucoin 6040 set ::SLICERLIBCURL_TAG "HEAD"
89 pieper 7489 # set TCL_VERSION to "tcl" to get 8.4, otherwise use tcl85 get 8.5
90     set ::TCL_VERSION tcl
91     #set ::TCL_VERSION tcl85
92 pieper 376
93     # Set library, binary, etc. paths...
94    
95 davisb 7539 # if Slicer3_LIB and Slicer3_BUILD haven't been set, first check
96     # enviornment variables, then assume they are in the 'standard' places
97     # next to the source tree (as created by getbuildtest.tcl
98 barre 6777 if { ![info exists ::Slicer3_LIB] } {
99 davisb 7539 if { [info exists ::env(Slicer3_LIB)] } {
100     set ::Slicer3_LIB $::env(Slicer3_LIB)
101     } else {
102     set wd [pwd]
103     cd $::Slicer3_HOME/../Slicer3-lib
104     set ::Slicer3_LIB [pwd]
105     cd $wd
106     }
107 pieper 433 }
108 barre 6777 if { ![info exists ::Slicer3_BUILD] } {
109 davisb 7539 if { [info exists ::env(Slicer3_BUILD)] } {
110 davisb 7540 set ::Slicer3_BUILD $::env(Slicer3_BUILD)
111 davisb 7539 } else {
112     set wd [pwd]
113     cd $::Slicer3_HOME/../Slicer3-build
114     set ::Slicer3_BUILD [pwd]
115     cd $wd
116     }
117 pieper 433 }
118    
119 pieper 7799 set ::Teem_SRC_DIR $::Slicer3_LIB/teem
120     set ::Teem_BUILD_DIR $::Slicer3_LIB/teem-build
121 barre 6777 set ::VTK_DIR $::Slicer3_LIB/VTK-build
122     set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
123 pieper 5199 if { ![info exists ::VTK_BUILD_TYPE] } {
124     # set a default if it hasn't already been specified
125     set ::VTK_BUILD_TYPE "Debug" ;# options: Release, RelWithDebInfo, Debug
126     }
127     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
128 pieper 376 set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
129 barre 6777 set ::KWWidgets_BUILD_DIR $::Slicer3_LIB/KWWidgets-build
130     set ::KWWIDGETS_DIR $::Slicer3_LIB/KWWidgets
131     set ::ITK_BINARY_PATH $::Slicer3_LIB/Insight-build
132     set ::TCL_BIN_DIR $::Slicer3_LIB/tcl-build/bin
133     set ::TCL_LIB_DIR $::Slicer3_LIB/tcl-build/lib
134     set ::TCL_INCLUDE_DIR $::Slicer3_LIB/tcl-build/include
135 blezek 6869 set ::PYTHON_BIN_DIR $::Slicer3_LIB/python-build
136 barre 6777 set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
137 pieper 376 set ::SOV_BINARY_DIR ""
138     set ::XVNC_EXECUTABLE " "
139 hliu 7835 set ::OpenIGTLink_DIR $::Slicer3_LIB/OpenIGTLink-build
140 barre 6777 set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
141     set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
142 pieper 376
143    
144 pieper 7911 # getbuildtest Option for build using system Python, should be "true" or "false"
145 blezek 7453 set ::USE_SYSTEM_PYTHON "false"
146     # CMake option for Python, must be "off" on "on", default is "off"
147 pieper 8034 if {$::env(BUILD) == $::WINDOWS} {
148     set ::USE_PYTHON "OFF"
149     } else {
150     set ::USE_PYTHON "ON"
151     }
152 pieper 7556 # CMake option for numerical Python, only matters if Python is on
153     set ::USE_NUMPY "ON"
154 pieper 7911 # getbuildtest option for SCIPY - also build support libraries (blas and lapack) needed for scipy
155     # - should be off except for experimentation (does not work on all plaftorms - requires fortran)
156     # - should be "true" or "false"
157     set ::USE_SCIPY "false"
158 hliu 7835 # CMake Option for using OpenIGTLink library. Must be "OFF" or "ON", default is "OFF"
159 hliu 8069 set ::USE_OPENIGTLINK "ON"
160 hliu 7835
161 pieper 7447
162 pieper 376 switch $::tcl_platform(os) {
163 pieper 7336 "SunOS" {
164     set shared_lib_ext "so"
165     }
166 pieper 376 "Linux" {
167     set shared_lib_ext "so"
168     }
169     "Darwin" {
170     set shared_lib_ext "dylib"
171     }
172     "Windows NT" {
173     set shared_lib_ext "dll"
174     }
175     }
176    
177     # TODO: identify files for each platform
178    
179     switch $::tcl_platform(os) {
180 pieper 7336 "SunOS" {
181     set ::VTK_BUILD_SUBDIR ""
182 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
183 pieper 7336
184     set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
185     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
186    
187     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
188 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
189     error "need to define system python path for $::tcl_platform(os)"
190     }
191 pieper 7336 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
192 pieper 8109 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
193     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
194 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
195 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
196     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
197 pieper 7336 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
198     set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
199 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
200 pieper 7336 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
201     set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
202     set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
203     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
204     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
205     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
206     set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
207     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
208 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
209 pieper 7336 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.$shared_lib_ext
210     set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
211     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
212 pieper 7489
213     # We need a workaround here, because gcc does not pick up libraries in /lib
214     # on Solaris.
215     # The bug, and it's resolution can be found here:
216     # http://bugs.opensolaris.org/view_bug.do?bug_id=6619485
217     set ::env(LDFLAGS) -L/lib
218 pieper 7336 }
219 pieper 376 "Darwin" {
220 pieper 5261 set ::VTK_BUILD_SUBDIR ""
221 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
222 pieper 376
223     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
224     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
225 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
226     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
227 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
228     set ::PYTHON_BIN_DIR /usr
229     }
230 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
231 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
232     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
233 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
234 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
235     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
236 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
237 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
238     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
239 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
240 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
241 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
242 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
243     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
244     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
245     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
246 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
247 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
248 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
249 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
250 hliu 3004
251 pieper 376 }
252     "Linux" {
253 pieper 5261 set ::VTK_BUILD_SUBDIR ""
254 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin
255 pieper 376
256     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
257 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
258     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
259 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
260     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
261 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
262     error "need to define system python path for $::tcl_platform(os)"
263     }
264 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
265 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
266     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
267 pieper 7537 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
268 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
269     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
270 pieper 376 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
271 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
272 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu
273 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
274 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
275 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
276     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
277     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
278     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
279 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
280 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
281 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/libOpenIGTLink.$shared_lib_ext
282 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
283 hliu 3004
284 pieper 376 }
285     "Windows NT" {
286     # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
287    
288     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
289 pieper 7799 set ::Teem_BIN_DIR $::Teem_BUILD_DIR/bin/$::VTK_BUILD_TYPE
290 pieper 376
291     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
292     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh84.exe
293     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish84.exe
294 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
295 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/itcl3.2/itcl32.lib
296     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/itk3.2/itk32.lib
297 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
298     set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
299 pieper 7799 set ::Teem_TEST_FILE $::Teem_BIN_DIR/unu.exe
300 pieper 7447 if { $::USE_SYSTEM_PYTHON } {
301     error "need to define system python path for $::tcl_platform(os)"
302     }
303 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python.exe
304     set ::PYTHON_LIB $::PYTHON_BIN_DIR/Libs/python25.lib
305     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
306 pieper 7537 set ::NETLIB_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
307 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
308     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
309 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
310 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
311 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/tcl84.lib
312     set ::VTK_TK_LIB $::TCL_LIB_DIR/tk84.lib
313     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh84.exe
314     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/$::VTK_BUILD_TYPE/ITKCommon.dll
315 hliu 7835 set ::OPENIGTLINK_TEST_FILE $::OpenIGTLink_DIR/bin/$::VTK_BUILD_TYPE/OpenIGTLink.lib
316 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
317 pieper 376 }
318     default {
319     puts stderr "Could not match platform \"$::tcl_platform(os)\"."
320     exit
321     }
322     }
323    
324     # System dependent variables
325    
326     switch $::tcl_platform(os) {
327     "SunOS" {
328 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
329     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
330 pieper 376 set ::GENERATOR "Unix Makefiles"
331 pieper 7336 set ::COMPILER_PATH "/usr/sfw/bin"
332 pieper 376 set ::COMPILER "g++"
333     set ::CMAKE $::CMAKE_PATH/bin/cmake
334 pieper 7336 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
335     set ::MAKE "gmake -j[expr $numCPUs]"
336 pieper 376 set ::SERIAL_MAKE "gmake"
337     }
338     "Linux" {
339 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
340     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
341 pieper 376 set ::GENERATOR "Unix Makefiles"
342     set ::COMPILER_PATH "/usr/bin"
343     set ::COMPILER "g++"
344 pieper 7594 set ::FORTRAN_COMPILER "gfortran"
345 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
346 pieper 885 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
347 lorensen 8346 set ::MAKE "make -j [expr $numCPUs]"
348 pieper 376 set ::SERIAL_MAKE "make"
349     }
350     "Darwin" {
351 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
352     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
353 pieper 376 set ::GENERATOR "Unix Makefiles"
354     set ::COMPILER_PATH "/usr/bin"
355 hayes 933 set ::COMPILER "g++"
356 pieper 7560 set ::FORTRAN_COMPILER "gfortran"
357 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
358     set ::MAKE make
359     set ::SERIAL_MAKE make
360     }
361     default {
362     # different windows machines say different things, so assume
363     # that if it doesn't match above it must be windows
364     # (VC7 is Visual C++ 7.0, also known as the .NET version)
365    
366    
367 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
368     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
369 pieper 376
370     set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
371    
372     set MSVC6 0
373     #
374     ## match this to the version of the compiler you have:
375     #
376    
377     ## for Visual Studio 6:
378     #set ::GENERATOR "Visual Studio 6"
379     #set ::MAKE "msdev"
380     #set ::COMPILER_PATH ""
381     #set MSVC6 1
382    
383     if {[info exists ::env(MSVC6)]} {
384     set ::MSVC6 $::env(MSVC6)
385     } else {
386     }
387    
388     ## for Visual Studio 7:
389     if {[info exists ::env(GENERATOR)]} {
390     set ::GENERATOR $::env(GENERATOR)
391     } else {
392     set ::GENERATOR "Visual Studio 7"
393     }
394    
395     if {[info exists ::env(MAKE)]} {
396     set ::MAKE $::env(MAKE)
397     } else {
398     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/IDE/devenv"
399     }
400    
401     if {[info exists ::env(COMPILER_PATH)]} {
402     set ::COMPILER_PATH $::env(COMPILER_PATH)
403     } else {
404     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/Vc7/bin"
405     }
406    
407     #
408     ## for Visual Studio 7.1:
409 pieper 917 # - automatically use newer if available
410 pieper 376 #
411     if { [file exists "c:/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE/devenv.exe"] } {
412     set ::GENERATOR "Visual Studio 7 .NET 2003"
413     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Common7/IDE/devenv"
414     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Vc7/bin"
415     }
416    
417 pieper 917 #
418     ## for Visual Studio 8
419     # - automatically use newest if available
420 pieper 1456 # - use full if available, otherwise express
421 pieper 4760 # - use the 64 bit version if available
422 pieper 917 #
423     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"] } {
424     set ::GENERATOR "Visual Studio 8 2005"
425     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
426     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
427     }
428    
429 pieper 1456
430     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
431     set ::GENERATOR "Visual Studio 8 2005"
432     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
433     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
434     }
435    
436 pieper 4690 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
437 pieper 4760 #set ::GENERATOR "Visual Studio 8 2005 Win64"
438     set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
439 pieper 4690 set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
440     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin"
441     }
442 hayes 6440 #
443     ## for Visual Studio 9
444     if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
445 hayes 6442 set ::GENERATOR "Visual Studio 9 2008"
446 hayes 6440 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
447     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
448    
449     }
450 pieper 4690
451 pieper 7737 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
452     set ::GENERATOR "Visual Studio 9 2008"
453     set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
454     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin"
455     }
456    
457    
458 pieper 7379 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
459     set ::GENERATOR "Visual Studio 9 2008"
460     set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
461     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
462     }
463    
464 pieper 376 set ::COMPILER "cl"
465     set ::SERIAL_MAKE $::MAKE
466     }
467     }
468    
469    
470 pieper 7556

  ViewVC Help
Powered by ViewVC 1.1.22