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