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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7391 - (hide annotations) (download) (as text)
Fri Aug 1 15:16:41 2008 UTC (9 years, 2 months ago) by pieper
Original Path: trunk/slicer_variables.tcl
File MIME type: application/x-tcl
File size: 17470 byte(s)
COMP: additional python build variables
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 376 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     set ::ITK_TAG ITK-3-6
81 blezek 6869 set ::PYTHON_TAG "http://svn.python.org/projects/python/branches/release25-maint"
82 pieper 7391 set ::NUMPY_TAG "http://svn.scipy.org/svn/numpy/trunk"
83     set ::SCIPY_TAG "http://svn.scipy.org/svn/scipy/trunk"
84 naucoin 6040 set ::SLICERLIBCURL_TAG "HEAD"
85 pieper 376
86     # Set library, binary, etc. paths...
87    
88 barre 6777 # if Slicer3_LIB and Slicer3_BUILD haven't been set,
89 pieper 433 # then assume they are in the 'standard' places next to the source tree
90     # (as created by getbuildtest.tcl
91 barre 6777 if { ![info exists ::Slicer3_LIB] } {
92 pieper 433 set wd [pwd]
93 barre 6777 cd $::Slicer3_HOME/../Slicer3-lib
94     set ::Slicer3_LIB [pwd]
95 pieper 433 cd $wd
96     }
97 barre 6777 if { ![info exists ::Slicer3_BUILD] } {
98 pieper 433 set wd [pwd]
99 barre 6777 cd $::Slicer3_HOME/../Slicer3-build
100     set ::Slicer3_BUILD [pwd]
101 pieper 433 cd $wd
102     }
103    
104 barre 6777 set ::TEEM_SRC_DIR $::Slicer3_LIB/teem
105     set ::TEEM_BUILD_DIR $::Slicer3_LIB/teem-build
106     set ::VTK_DIR $::Slicer3_LIB/VTK-build
107     set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
108 pieper 5199 if { ![info exists ::VTK_BUILD_TYPE] } {
109     # set a default if it hasn't already been specified
110     set ::VTK_BUILD_TYPE "Debug" ;# options: Release, RelWithDebInfo, Debug
111     }
112     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
113 pieper 376 set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
114 barre 6777 set ::KWWidgets_BUILD_DIR $::Slicer3_LIB/KWWidgets-build
115     set ::KWWIDGETS_DIR $::Slicer3_LIB/KWWidgets
116     set ::ITK_BINARY_PATH $::Slicer3_LIB/Insight-build
117     set ::TCL_BIN_DIR $::Slicer3_LIB/tcl-build/bin
118     set ::TCL_LIB_DIR $::Slicer3_LIB/tcl-build/lib
119     set ::TCL_INCLUDE_DIR $::Slicer3_LIB/tcl-build/include
120 blezek 6869 set ::PYTHON_BIN_DIR $::Slicer3_LIB/python-build
121 barre 6777 set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
122 pieper 376 set ::SOV_BINARY_DIR ""
123     set ::XVNC_EXECUTABLE " "
124 barre 6777 set ::IGSTK_DIR $::Slicer3_LIB/IGSTK-build
125     set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
126     set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
127 pieper 376
128    
129 hliu 3004 # Options for building IGT modules in Slicer
130     set ::IGSTK "OFF"
131 hliu 3301 set ::NAVITRACK "OFF"
132 pieper 376
133 hliu 3301 # The absolute path and directory containing the navitrack library,
134     # for instance on linux the libNaviTrack.so
135     # set ::NAVITRACK_LIB_DIR /home/hliu/projects/navitrack/NaviTrack-build
136     set ::NAVITRACK_LIB_DIR ""
137 hliu 3004
138 hliu 3301 # The navitrack include directry, e.g.
139     # /home/hliu/projects/navitrack/NaviTrack/include
140     # set ::NAVITRACK_INC_DIR /home/hliu/projects/navitrack/NaviTrack/include
141     set ::NAVITRACK_INC_DIR ""
142 hliu 3004
143 pieper 376 switch $::tcl_platform(os) {
144 pieper 7336 "SunOS" {
145     set shared_lib_ext "so"
146     }
147 pieper 376 "Linux" {
148     set shared_lib_ext "so"
149     }
150     "Darwin" {
151     set shared_lib_ext "dylib"
152     }
153     "Windows NT" {
154     set shared_lib_ext "dll"
155     }
156     }
157    
158     # TODO: identify files for each platform
159    
160     switch $::tcl_platform(os) {
161 pieper 7336 "SunOS" {
162     set ::VTK_BUILD_SUBDIR ""
163     set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin
164    
165     set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
166     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
167    
168     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
169     set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
170     set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython25.so
171     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python25
172 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
173     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
174 pieper 7336 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
175     set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
176     set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu
177     set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
178     set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
179     set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
180     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
181     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
182     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
183     set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
184     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
185     set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
186     set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.$shared_lib_ext
187     set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
188     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
189     }
190 pieper 376 "Darwin" {
191 pieper 5261 set ::VTK_BUILD_SUBDIR ""
192 pieper 376 set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin
193    
194     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
195     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
196 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.dylib
197     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.dylib
198 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
199 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.dylib
200     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
201 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
202     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
203 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.dylib
204 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
205     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
206 pieper 376 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu
207     set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
208 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.$shared_lib_ext
209 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
210     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
211     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
212     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
213 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
214 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
215 pieper 4775 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
216 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
217 hliu 3004
218 pieper 376 }
219     "Linux" {
220 pieper 5261 set ::VTK_BUILD_SUBDIR ""
221 pieper 376 set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin
222    
223     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh8.4
224 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/libitcl3.2.so
225     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/libitk3.2.so
226 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.1/iwidgets.tcl
227     set ::BLT_TEST_FILE $::TCL_BIN_DIR/bltwish24
228 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python
229 blezek 6909 set ::PYTHON_LIB $::PYTHON_BIN_DIR/lib/libpython2.5.so
230     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include/python2.5
231 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
232     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
233 pieper 376 set ::TK_TEST_FILE $::TCL_BIN_DIR/wish8.4
234 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/libitcl3.2.so
235 pieper 376 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu
236     set ::VTK_TEST_FILE $::VTK_DIR/bin/vtk
237 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/libKWWidgets.so
238 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/libtcl8.4.$shared_lib_ext
239     set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
240     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
241     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
242 barre 6777 set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
243 pieper 376 set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
244 pieper 4775 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
245 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
246 hliu 3004
247 pieper 376 }
248     "Windows NT" {
249     # Windows NT currently covers WinNT, Win2000, XP Home, XP Pro
250    
251     set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
252     set ::TEEM_BIN_DIR $::TEEM_BUILD_DIR/bin/$::VTK_BUILD_TYPE
253    
254     set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
255     set ::TCL_TEST_FILE $::TCL_BIN_DIR/tclsh84.exe
256     set ::TK_TEST_FILE $::TCL_BIN_DIR/wish84.exe
257 pieper 6641 set ::ITCL_TEST_FILE $::TCL_LIB_DIR/itclConfig.sh
258 pieper 6875 set ::INCR_TCL_LIB $::TCL_LIB_DIR/lib/itcl3.2/itcl32.lib
259     set ::INCR_TK_LIB $::TCL_LIB_DIR/lib/itk3.2/itk32.lib
260 naucoin 7113 set ::IWIDGETS_TEST_FILE $::TCL_LIB_DIR/iwidgets4.0.2/iwidgets.tcl
261     set ::BLT_TEST_FILE $::TCL_BIN_DIR/BLT24.dll
262 pieper 376 set ::TEEM_TEST_FILE $::TEEM_BIN_DIR/unu.exe
263 blezek 6869 set ::PYTHON_TEST_FILE $::PYTHON_BIN_DIR/bin/python.exe
264     set ::PYTHON_LIB $::PYTHON_BIN_DIR/Libs/python25.lib
265     set ::PYTHON_INCLUDE $::PYTHON_BIN_DIR/include
266 pieper 7390 set ::NUMPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/numpy/core/numeric.pyc
267     set ::SCIPY_TEST_FILE $::PYTHON_BIN_DIR/lib/python2.5/site-packages/scipy/version.pyc
268 pieper 376 set ::VTK_TEST_FILE $::VTK_DIR/bin/$::VTK_BUILD_TYPE/vtk.exe
269 pieper 435 set ::KWWidgets_TEST_FILE $::KWWidgets_BUILD_DIR/bin/$::env(VTK_BUILD_SUBDIR)/KWWidgets.lib
270 pieper 376 set ::VTK_TCL_LIB $::TCL_LIB_DIR/tcl84.lib
271     set ::VTK_TK_LIB $::TCL_LIB_DIR/tk84.lib
272     set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh84.exe
273     set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/$::VTK_BUILD_TYPE/ITKCommon.dll
274 pieper 3016 set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/$::VTK_BUILD_TYPE/IGSTK.lib
275 naucoin 6040 set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/$::VTK_BUILD_TYPE/slicerlibcurl.lib
276 pieper 376 }
277     default {
278     puts stderr "Could not match platform \"$::tcl_platform(os)\"."
279     exit
280     }
281     }
282    
283     # System dependent variables
284    
285     switch $::tcl_platform(os) {
286     "SunOS" {
287 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
288     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
289 pieper 376 set ::GENERATOR "Unix Makefiles"
290 pieper 7336 set ::COMPILER_PATH "/usr/sfw/bin"
291 pieper 376 set ::COMPILER "g++"
292     set ::CMAKE $::CMAKE_PATH/bin/cmake
293 pieper 7336 set numCPUs [lindex [exec /usr/sbin/psrinfo | grep on-line | wc -l | tr -d ''] 0]
294     set ::MAKE "gmake -j[expr $numCPUs]"
295 pieper 376 set ::SERIAL_MAKE "gmake"
296     }
297     "Linux" {
298 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
299     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
300 pieper 376 set ::GENERATOR "Unix Makefiles"
301     set ::COMPILER_PATH "/usr/bin"
302     set ::COMPILER "g++"
303     set ::CMAKE $::CMAKE_PATH/bin/cmake
304 pieper 885 set numCPUs [lindex [exec grep processor /proc/cpuinfo | wc] 0]
305 pieper 883 set ::MAKE "make -j [expr $numCPUs * 2]"
306 pieper 376 set ::SERIAL_MAKE "make"
307     }
308     "Darwin" {
309 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
310     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
311 pieper 376 set ::GENERATOR "Unix Makefiles"
312     set ::COMPILER_PATH "/usr/bin"
313 hayes 933 set ::COMPILER "g++"
314 pieper 376 set ::CMAKE $::CMAKE_PATH/bin/cmake
315     set ::MAKE make
316     set ::SERIAL_MAKE make
317     }
318     default {
319     # different windows machines say different things, so assume
320     # that if it doesn't match above it must be windows
321     # (VC7 is Visual C++ 7.0, also known as the .NET version)
322    
323    
324 barre 6777 set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
325     set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
326 pieper 376
327     set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
328    
329     set MSVC6 0
330     #
331     ## match this to the version of the compiler you have:
332     #
333    
334     ## for Visual Studio 6:
335     #set ::GENERATOR "Visual Studio 6"
336     #set ::MAKE "msdev"
337     #set ::COMPILER_PATH ""
338     #set MSVC6 1
339    
340     if {[info exists ::env(MSVC6)]} {
341     set ::MSVC6 $::env(MSVC6)
342     } else {
343     }
344    
345     ## for Visual Studio 7:
346     if {[info exists ::env(GENERATOR)]} {
347     set ::GENERATOR $::env(GENERATOR)
348     } else {
349     set ::GENERATOR "Visual Studio 7"
350     }
351    
352     if {[info exists ::env(MAKE)]} {
353     set ::MAKE $::env(MAKE)
354     } else {
355     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/IDE/devenv"
356     }
357    
358     if {[info exists ::env(COMPILER_PATH)]} {
359     set ::COMPILER_PATH $::env(COMPILER_PATH)
360     } else {
361     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Common7/Vc7/bin"
362     }
363    
364     #
365     ## for Visual Studio 7.1:
366 pieper 917 # - automatically use newer if available
367 pieper 376 #
368     if { [file exists "c:/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE/devenv.exe"] } {
369     set ::GENERATOR "Visual Studio 7 .NET 2003"
370     set ::MAKE "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Common7/IDE/devenv"
371     set ::COMPILER_PATH "c:/Program\ Files/Microsoft\ Visual\ Studio\ .NET 2003/Vc7/bin"
372     }
373    
374 pieper 917 #
375     ## for Visual Studio 8
376     # - automatically use newest if available
377 pieper 1456 # - use full if available, otherwise express
378 pieper 4760 # - use the 64 bit version if available
379 pieper 917 #
380     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"] } {
381     set ::GENERATOR "Visual Studio 8 2005"
382     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe"
383     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
384     }
385    
386 pieper 1456
387     if { [file exists "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
388     set ::GENERATOR "Visual Studio 8 2005"
389     set ::MAKE "c:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
390     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 8/VC/bin"
391     }
392    
393 pieper 4690 if { [file exists "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"] } {
394 pieper 4760 #set ::GENERATOR "Visual Studio 8 2005 Win64"
395     set ::GENERATOR "Visual Studio 8 2005" ;# do NOT use the 64 bit target
396 pieper 4690 set ::MAKE "c:/Program Files (x86)/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"
397     set ::COMPILER_PATH "c:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin"
398     }
399 hayes 6440 #
400     ## for Visual Studio 9
401     if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"] } {
402 hayes 6442 set ::GENERATOR "Visual Studio 9 2008"
403 hayes 6440 set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/VCExpress.exe"
404     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
405    
406     }
407 pieper 4690
408 pieper 7379 if { [file exists "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"] } {
409     set ::GENERATOR "Visual Studio 9 2008"
410     set ::MAKE "c:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/devenv.exe"
411     set ::COMPILER_PATH "c:/Program Files/Microsoft Visual Studio 9.0/VC/bin"
412     }
413    
414 pieper 376 set ::COMPILER "cl"
415     set ::SERIAL_MAKE $::MAKE
416     }
417     }
418    
419    

  ViewVC Help
Powered by ViewVC 1.1.22