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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22