0027639: Add possibility to build OCCT 7X without TCL/TK
[occt.git] / samples / qt / FuncDemo / genproj.bat
CommitLineData
aff5997d 1@echo off
2REM Generation of vcproj files with qmake utilite
3REM Variable QTDIR and PATH to qmake executable must be defined without fail
4
5REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10),
6REM second argument specifies architecture) (win32 or win64)
7REM third argument specifies Debug or Release mode
8
4b3541c6 9Setlocal EnableDelayedExpansion
10
aff5997d 11call "%~dp0env.bat" %1 %2 %3
12
13set EXT=vcproj
14
15if not "%VCVER%" == "" (
16 if /I "%VCVER%" == "vc8" (
17 set VCVER=vc8
18 set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat"
19 ) else if /I "%VCVER%" == "vc9" (
20 set VCVER=vc9
21 set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat"
22 ) else if /I "%VCVER%" == "vc10" (
23 set VCVER=vc10
24 set EXT=vcxproj
25 set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
26 ) else if /I "%VCVER%" == "vc11" (
27 set VCVER=vc11
28 set EXT=vcxproj
29 set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
30 ) else if /I "%VCVER%" == "vc12" (
31 set VCVER=vc12
32 set EXT=vcxproj
33 set "VCVARS=%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
34 ) else (
35 echo Error: first argument ^(%VCVER%^) should specify supported version of Visual C++,
36 echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^)
37 exit
38 )
39)
40
41if ["%ARCH%"] == ["32"] set VCARCH=x86
42if ["%ARCH%"] == ["64"] set VCARCH=amd64
43
44call "%VCVARS%" %VCARCH%
45
46qmake -tp vc -o FuncDemo-%VCVER%.%EXT% FuncDemo.pro