0026196: Wrong result obtained by projection algorithm.
[occt.git] / samples / qt / IESample / genproj.bat
CommitLineData
cf236913 1REM Generation of vcproj files with qmake utilite
2REM Variable QTDIR and PATH to qmake executable must be defined without fail
3
4REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10),
5REM second argument specifies architecture) (win32 or win64)
cc5ac00d 6REM third argument specifies Debug or Release mode
cf236913 7
63fb818e 8call "%~dp0env.bat" %1 %2 %3
5ce17593 9
861a7b03 10set EXT=vcproj
11
5ce17593 12if not "%1" == "" (
13 if /I "%1" == "vc8" (
14 set VCVER=vc8
15 set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat"
16 ) else if /I "%1" == "vc9" (
17 set VCVER=vc9
18 set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat"
19 ) else if /I "%1" == "vc10" (
20 set VCVER=vc10
861a7b03 21 set EXT=vcxproj
5ce17593 22 set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
fc3a37cd 23 ) else if /I "%1" == "vc11" (
24 set VCVER=vc11
861a7b03 25 set EXT=vcxproj
fc3a37cd 26 set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
5ce17593 27 ) else (
28 echo Error: first argument ^(%1^) should specify supported version of Visual C++,
aea58b16 29 echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^)
5ce17593 30 exit
31 )
32)
33
34if ["%ARCH%"] == ["32"] set VCARCH=x86
35if ["%ARCH%"] == ["64"] set VCARCH=amd64
36
37call "%VCVARS%" %VCARCH%
cf236913 38
861a7b03 39qmake -tp vc -o IESample.%EXT% IESample.pro