From: apn Date: Tue, 18 Nov 2014 10:41:56 +0000 (+0300) Subject: 0023460: Update QT products samples X-Git-Tag: V6_9_0_beta~274 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ee0a5d25281e7aa650e50afae0512049c6695af9;p=occt-copy.git 0023460: Update QT products samples Rename all generation-vc-projects.bat (in OCCT) to genproj.bat. Fixed warnings in VoxelDemo. --- diff --git a/samples/qt/IESample/generation-vc-projects.bat b/samples/qt/IESample/generation-vc-projects.bat deleted file mode 100644 index 1c5a7fd864..0000000000 --- a/samples/qt/IESample/generation-vc-projects.bat +++ /dev/null @@ -1,39 +0,0 @@ -REM Generation of vcproj files with qmake utilite -REM Variable QTDIR and PATH to qmake executable must be defined without fail - -REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10), -REM second argument specifies architecture) (win32 or win64) -REM third argument specifies Debug or Release mode - -call "%~dp0env.bat" %1 %2 %3 - -set EXT=vcproj - -if not "%1" == "" ( - if /I "%1" == "vc8" ( - set VCVER=vc8 - set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc9" ( - set VCVER=vc9 - set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc10" ( - set VCVER=vc10 - set EXT=vcxproj - set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc11" ( - set VCVER=vc11 - set EXT=vcxproj - set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else ( - echo Error: first argument ^(%1^) should specify supported version of Visual C++, - echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^) - exit - ) -) - -if ["%ARCH%"] == ["32"] set VCARCH=x86 -if ["%ARCH%"] == ["64"] set VCARCH=amd64 - -call "%VCVARS%" %VCARCH% - -qmake -tp vc -o IESample.%EXT% IESample.pro diff --git a/samples/qt/IESample/genproj.bat b/samples/qt/IESample/genproj.bat new file mode 100644 index 0000000000..1c5a7fd864 --- /dev/null +++ b/samples/qt/IESample/genproj.bat @@ -0,0 +1,39 @@ +REM Generation of vcproj files with qmake utilite +REM Variable QTDIR and PATH to qmake executable must be defined without fail + +REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10), +REM second argument specifies architecture) (win32 or win64) +REM third argument specifies Debug or Release mode + +call "%~dp0env.bat" %1 %2 %3 + +set EXT=vcproj + +if not "%1" == "" ( + if /I "%1" == "vc8" ( + set VCVER=vc8 + set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc9" ( + set VCVER=vc9 + set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc10" ( + set VCVER=vc10 + set EXT=vcxproj + set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc11" ( + set VCVER=vc11 + set EXT=vcxproj + set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else ( + echo Error: first argument ^(%1^) should specify supported version of Visual C++, + echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^) + exit + ) +) + +if ["%ARCH%"] == ["32"] set VCARCH=x86 +if ["%ARCH%"] == ["64"] set VCARCH=amd64 + +call "%VCVARS%" %VCARCH% + +qmake -tp vc -o IESample.%EXT% IESample.pro diff --git a/samples/qt/Tutorial/generation-vc-projects.bat b/samples/qt/Tutorial/generation-vc-projects.bat deleted file mode 100644 index b93f8ff5cd..0000000000 --- a/samples/qt/Tutorial/generation-vc-projects.bat +++ /dev/null @@ -1,39 +0,0 @@ -REM Generation of vcproj files with qmake utilite -REM Variable QTDIR and PATH to qmake executable must be defined without fail - -REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10), -REM second argument specifies architecture) (win32 or win64) -REM third argument specifies Debug or Release mode - -call "%~dp0env.bat" %1 %2 %3 - -set EXT=vcproj - -if not "%1" == "" ( - if /I "%1" == "vc8" ( - set VCVER=vc8 - set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc9" ( - set VCVER=vc9 - set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc10" ( - set VCVER=vc10 - set EXT=vcxproj - set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else if /I "%1" == "vc11" ( - set VCVER=vc11 - set EXT=vcxproj - set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" - ) else ( - echo Error: first argument ^(%1^) should specify supported version of Visual C++, - echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^) - exit - ) -) - -if ["%ARCH%"] == ["32"] set VCARCH=x86 -if ["%ARCH%"] == ["64"] set VCARCH=amd64 - -call "%VCVARS%" %VCARCH% - -qmake -tp vc -o Tutorial.%EXT% Tutorial.pro diff --git a/samples/qt/Tutorial/genproj.bat b/samples/qt/Tutorial/genproj.bat new file mode 100644 index 0000000000..b93f8ff5cd --- /dev/null +++ b/samples/qt/Tutorial/genproj.bat @@ -0,0 +1,39 @@ +REM Generation of vcproj files with qmake utilite +REM Variable QTDIR and PATH to qmake executable must be defined without fail + +REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10), +REM second argument specifies architecture) (win32 or win64) +REM third argument specifies Debug or Release mode + +call "%~dp0env.bat" %1 %2 %3 + +set EXT=vcproj + +if not "%1" == "" ( + if /I "%1" == "vc8" ( + set VCVER=vc8 + set "VCVARS=%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc9" ( + set VCVER=vc9 + set "VCVARS=%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc10" ( + set VCVER=vc10 + set EXT=vcxproj + set "VCVARS=%VS100COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else if /I "%1" == "vc11" ( + set VCVER=vc11 + set EXT=vcxproj + set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" + ) else ( + echo Error: first argument ^(%1^) should specify supported version of Visual C++, + echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^) + exit + ) +) + +if ["%ARCH%"] == ["32"] set VCARCH=x86 +if ["%ARCH%"] == ["64"] set VCARCH=amd64 + +call "%VCVARS%" %VCARCH% + +qmake -tp vc -o Tutorial.%EXT% Tutorial.pro diff --git a/samples/qt/VoxelDemo/VoxelDemo.vcproj b/samples/qt/VoxelDemo/VoxelDemo.vcproj index 1745563d36..68d7d2e44f 100644 --- a/samples/qt/VoxelDemo/VoxelDemo.vcproj +++ b/samples/qt/VoxelDemo/VoxelDemo.vcproj @@ -48,7 +48,7 @@ RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" - Detect64BitPortabilityProblems="true" + Detect64BitPortabilityProblems="false" DebugInformationFormat="4" />