| 1 | @echo off |
| 2 | |
| 3 | if "%1" == "-h" ( |
| 4 | echo Launch WPF sample as follows: |
| 5 | echo %~n0 ^[vc9^] ^[win32^|win64^] ^[Debug^|Release^] |
| 6 | echo By default configuration set in ..\..\custom.bat is used |
| 7 | echo Run %~n0 -h to get this help |
| 8 | exit /B |
| 9 | ) |
| 10 | |
| 11 | call "%~dp0..\..\env.bat" %1 %2 %3 |
| 12 | |
| 13 | set "EXEC=%~dp0\win%ARCH%\bin%CASDEB%\IE_WPF.exe" |
| 14 | |
| 15 | if not exist "%EXEC%" goto err_exe |
| 16 | |
| 17 | "%EXEC%" |
| 18 | |
| 19 | goto eof |
| 20 | |
| 21 | :err_exe |
| 22 | echo Executable %EXEC% not found. |
| 23 | echo Check that OCCT and sample are built with the selected configuration: |
| 24 | echo compiler=%VCVER% platform=win%ARCH% %3 |
| 25 | exit /B |
| 26 | |
| 27 | :eof |