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

Annotation of /oldtrunk/slicer_variables.tcl

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22