Update of environment files of qt samples for compilation in batch mode.
[occt.git] / samples / qt / IESample / generation-vc-projects.bat
... / ...
CommitLineData
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)
6REM third argument specifies Debug or Release mode
7
8call "%~dp0env.bat" %1 %2 %3
9
10if not "%1" == "" (
11 if /I "%1" == "vc8" (
12 set VCVER=vc8
13 set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat"
14 ) else if /I "%1" == "vc9" (
15 set VCVER=vc9
16 set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat"
17 ) else if /I "%1" == "vc10" (
18 set VCVER=vc10
19 set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
20 ) else if /I "%1" == "vc11" (
21 set VCVER=vc11
22 set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
23 ) else (
24 echo Error: first argument ^(%1^) should specify supported version of Visual C++,
25 echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^)
26 exit
27 )
28)
29
30if ["%ARCH%"] == ["32"] set VCARCH=x86
31if ["%ARCH%"] == ["64"] set VCARCH=amd64
32
33call "%VCVARS%" %VCARCH%
34
35qmake -tp vc -r IESample.pro