1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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,22 +1,35 @@
@echo off
if ["%4"] == [""] (
echo Launch selected sample as follows:
echo Run.bat [^vc8^|^vc9^|^vc10^|^vc11^|vc12] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
echo Use option -d to run Debug mode
exit /B
if "%1" == "-h" (
goto err_bat
)
call "%~dp0env.bat" %1 %2 %3
if not ["%4"] == [""] (
set "SampleName=%4"
call "%~dp0env.bat" %1 %2 %3
) else if not ["%1"] == [""] (
set "SampleName=%1"
call "%~dp0env.bat"
) else (
goto err_bat
)
if not exist "%~dp0%BIN_DIR%\%4.exe" goto err_exe
if not exist "%~dp0%BIN_DIR%\%SampleName%.exe" goto err_exe
"%~dp0%BIN_DIR%\%4.exe"
"%~dp0%BIN_DIR%\%SampleName%.exe"
goto eof
:err_bat
echo Launch selected sample as follows:
echo %~n0.bat [^vc8^|^vc9^|^vc10^|^vc11^|vc12] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
echo or
echo %~n0.bat [^SampleName^]
echo Run %~n0.bat -h to get this help
exit /B
:err_exe
echo Executable %~dp0%BIN_DIR%\%4.exe not found.
echo Executable %~dp0%BIN_DIR%\%SampleName%.exe not found.
echo Probably you didn't compile the application.
exit /B