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

Contents of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7594 - (show annotations) (download) (as text)
Thu Sep 18 18:39:12 2008 UTC (9 years, 1 month ago) by pieper
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 19592 byte(s)
COMP: fix python building to use the latest fortran compilers on linux by default
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 stderr "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 "Teem-1-9-0-patches"
78 set ::KWWidgets_TAG "HEAD"
79 set ::VTK_TAG "VTK-5-2"
80 set ::ITK_TAG ITK-3-8
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.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 set ::SLICERLIBCURL_TAG "HEAD"
89 # 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
93 # Set library, binary, etc. paths...
94
95 # 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 if { ![info exists ::Slicer3_LIB] } {
99 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 }
108 if { ![info exists ::Slicer3_BUILD] } {
109 if { [info exists ::env(Slicer3_BUILD)] } {
110 set ::Slicer3_BUILD $::env(Slicer3_BUILD)
111 } else {
112 set wd [pwd]
113 cd $::Slicer3_HOME/../Slicer3-build
114 set ::Slicer3_BUILD [pwd]
115 cd $wd
116 }
117 }
118
119 set ::TEEM_SRC_DIR $::Slicer3_LIB/teem
120 set ::TEEM_BUILD_DIR $::Slicer3_LIB/teem-build
121 set ::VTK_DIR $::Slicer3_LIB/VTK-build
122 set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
123 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 set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
129 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 set ::PYTHON_BIN_DIR $::Slicer3_LIB/python-build
136 set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
137 set ::SOV_BINARY_DIR ""
138 set ::XVNC_EXECUTABLE " "
139 set ::IGSTK_DIR $::Slicer3_LIB/IGSTK-build
140 set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
141 set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
142
143
144 # Options for building IGT modules in Slicer
145 set ::IGSTK "OFF"
146 set ::NAVITRACK "OFF"
147
148 # 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 "off"
151 set ::USE_PYTHON "off"
152 # CMake option for numerical Python, only matters if Python is on
153 set ::USE_NUMPY "ON"
154
155 # The absolute path and directory containing the navitrack library,
156 # for instance on linux the libNaviTrack.so
157 # set ::NAVITRACK_LIB_DIR /home/hliu/projects/navitrack/NaviTrack-build
158 set ::NAVITRACK_LIB_DIR ""
159
160 # The navitrack include directry, e.g.
161 # /home/hliu/projects/navitrack/NaviTrack/include
162 # set ::NAVITRACK_INC_DIR /home/hliu/projects/navitrack/NaviTrack/include
163 set ::NAVITRACK_INC_DIR ""
164
165 switch $::tcl_platform(os) {
166 "SunOS" {
167 set shared_lib_ext "so"
168 }
169 "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 "SunOS" {
184 set ::VTK_BUILD_SUBDIR ""
185 set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin
186
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 if { $::USE_SYSTEM_PYTHON } {
192 error "need to define system python path for $::tcl_platform(os)"
193 }
194 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
195 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython25.so
196 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python25
197 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
198 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 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
201 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
202 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu
203 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 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
212 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.$shared_lib_ext
213 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
214 set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
215
216 # We need a workaround here, because gcc does not pick up libraries in /lib
217 # on Solaris.
218 # The bug, and it's resolution can be found here:
219 # http://bugs.opensolaris.org/view_bug.do?bug_id=6619485
220 set ::env(LDFLAGS) -L/lib
221 }
222 "Darwin" {
223 set ::VTK_BUILD_SUBDIR ""
224 set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin
225
226 set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
227 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
228 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
229 set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
230 if { $::USE_SYSTEM_PYTHON } {
231 set ::PYTHON_BIN_DIR /usr
232 }
233 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
234 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
235 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
236 set ::NETLIB_TEST_FILE $::Slicer3_LIB/netlib-build/BLAS-build/libblas.a
237 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
238 set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
239 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
240 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
241 set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
242 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu
243 set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
244 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
245 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
246 set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
247 set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
248 set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
249 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
250 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
251 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
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 ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
285 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
286
287 }
288 "Windows NT" {
289 # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
290
291 set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
292 set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin/$::VTK_BUILD_TYPE
293
294 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
295 set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh84.exe
296 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish84.exe
297 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
298 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/itcl3.2/itcl32.lib
299 set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/itk3.2/itk32.lib
300 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
301 set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
302 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu.exe
303 if { $::USE_SYSTEM_PYTHON } {
304 error "need to define system python path for $::tcl_platform(os)"
305 }
306 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python.exe
307 set ::PYTHON_LIB $::PYTHON_BIN_DIR/Libs/python25.lib
308 set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
309 set ::NETLIB_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
310 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
311 set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
312 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
313 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
314 set ::VTK_TCL_LIB $::TCL_LIB_DIR/tcl84.lib
315 set ::VTK_TK_LIB $::TCL_LIB_DIR/tk84.lib
316 set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh84.exe
317 set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/$::VTK_BUILD_TYPE/ITKCommon.dll
318 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/$::VTK_BUILD_TYPE/IGSTK.lib
319 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
320 }
321 default {
322 puts stderr "Could not match platform \"$::tcl_platform(os)\"."
323 exit
324 }
325 }
326
327 # System dependent variables
328
329 switch $::tcl_platform(os) {
330 "SunOS" {
331 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
332 set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
333 set ::GENERATOR "Unix Makefiles"
334 set ::COMPILER_PATH "/usr/sfw/bin"
335 set ::COMPILER "g++"
336 set ::CMAKE $::CMAKE_PATH/bin/cmake
337 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
338 set ::MAKE "gmake -j[expr $numCPUs]"
339 set ::SERIAL_MAKE "gmake"
340 }
341 "Linux" {
342 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
343 set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
344 set ::GENERATOR "Unix Makefiles"
345 set ::COMPILER_PATH "/usr/bin"
346 set ::COMPILER "g++"
347 set ::FORTRAN_COMPILER "gfortran"
348 set ::CMAKE $::CMAKE_PATH/bin/cmake
349 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
350 set ::MAKE "make -j [expr $numCPUs * 2]"
351 set ::SERIAL_MAKE "make"
352 }
353 "Darwin" {
354 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
355 set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
356 set ::GENERATOR "Unix Makefiles"
357 set ::COMPILER_PATH "/usr/bin"
358 set ::COMPILER "g++"
359 set ::FORTRAN_COMPILER "gfortran"
360 set ::CMAKE $::CMAKE_PATH/bin/cmake
361 set ::MAKE make
362 set ::SERIAL_MAKE make
363 }
364 default {
365 # different windows machines say different things, so assume
366 # that if it doesn't match above it must be windows
367 # (VC7 is Visual C++ 7.0, also known as the .NET version)
368
369
370 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
371 set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
372
373 set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
374
375 set MSVC6 0
376 #
377 ## match this to the version of the compiler you have:
378 #
379
380 ## for Visual Studio 6:
381 #set ::GENERATOR "Visual Studio 6"
382 #set ::MAKE "msdev"
383 #set ::COMPILER_PATH ""
384 #set MSVC6 1
385
386 if {[info exists ::env(MSVC6)]} {
387 set ::MSVC6 $::env(MSVC6)
388 } else {
389 }
390
391 ## for Visual Studio 7:
392 if {[info exists ::env(GENERATOR)]} {
393 set ::GENERATOR $::env(GENERATOR)
394 } else {
395 set ::GENERATOR "Visual Studio 7"
396 }
397
398 if {[info exists ::env(MAKE)]} {
399 set ::MAKE $::env(MAKE)
400 } else {
401 set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/IDE/devenv"
402 }
403
404 if {[info exists ::env(COMPILER_PATH)]} {
405 set ::COMPILER_PATH $::env(COMPILER_PATH)
406 } else {
407 set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/Vc7/bin"
408 }
409
410 #
411 ## for Visual Studio 7.1:
412 # - automatically use newer if available
413 #
414 if { [file exists "c:/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE/devenv.exe"] } {
415 set ::GENERATOR "Visual Studio 7 .NET 2003"
416 set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Common7/IDE/devenv"
417 set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Vc7/bin"
418 }
419
420 #
421 ## for Visual Studio 8
422 # - automatically use newest if available
423 # - use full if available, otherwise express
424 # - use the 64 bit version if available
425 #
426 if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"] } {
427 set ::GENERATOR "Visual Studio 8 2005"
428 set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
429 set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
430 }
431
432
433 if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
434 set ::GENERATOR "Visual Studio 8 2005"
435 set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
436 set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
437 }
438
439 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
440 #set ::GENERATOR "Visual Studio 8 2005 Win64"
441 set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
442 set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
443 set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin"
444 }
445 #
446 ## for Visual Studio 9
447 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
448 set ::GENERATOR "Visual Studio 9 2008"
449 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
450 set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
451
452 }
453
454 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
455 set ::GENERATOR "Visual Studio 9 2008"
456 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
457 set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
458 }
459
460 set ::COMPILER "cl"
461 set ::SERIAL_MAKE $::MAKE
462 }
463 }
464
465
466

  ViewVC Help
Powered by ViewVC 1.1.22