1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0016472: Improve environment scripts for samples

Output directory for binaries of CSharp samples was corrected.
Common run.bat was created for CSharp samples.
Behaviour of run.bat file from mfc samples was extended.

Recovered separate run_*.bat files for each sample in CSharp sample.
This commit is contained in:
ski
2015-10-27 12:51:21 +03:00
committed by bugmaster
parent 9d99d3c16d
commit f4264b5adb
15 changed files with 116 additions and 126 deletions

View File

@@ -1,27 +1,3 @@
@echo off
if "%1" == "-h" (
echo Launch WPF sample as follows:
echo %~n0 ^[vc9^] ^[win32^|win64^] ^[Debug^|Release^]
echo By default configuration set in ..\..\custom.bat is used
echo Run %~n0 -h to get this help
exit /B
)
call "%~dp0..\..\env.bat" %1 %2 %3
set "EXEC=%~dp0\win%ARCH%\bin%CASDEB%\IE_WPF_WinForms.exe"
if not exist "%EXEC%" goto err_exe
"%EXEC%"
goto eof
:err_exe
echo Executable %EXEC% not found.
echo Check that OCCT and sample are built with the selected configuration:
echo compiler=%VCVER% platform=win%ARCH% %3
exit /B
:eof
call "%~dp0run.bat" WPF_WinForms