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