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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22