* harbour/tests/run_prg.bat
* harbour/tests/gnu_test.bat
* harbour/tests/run_test.bat
* harbour/tests/bld4dll.bat
* harbour/doc/genhtm.bat
* harbour/bin/bld.bat
* harbour/bin/postinst.bat
* harbour/bin/bld_b32.bat
* harbour/bin/bld_b16.bat
* harbour/bin/bld_vc.bat
* harbour/make_b32.bat
* harbour/make_vc.bat
* harbour/make_gnu.bat
* harbour/contrib/ole/bldtest.bat
* harbour/contrib/ole/build32.bat
* harbour/contrib/libmisc/make_b32.bat
* harbour/contrib/libmisc/doc/gendoc.bat
* harbour/contrib/libmisc/make_vc.bat
* harbour/contrib/apollo/test/bld.bat
* harbour/contrib/apollo/test/bld_b32.bat
* harbour/contrib/apollo/make_b32.bat
* harbour/contrib/pgsql/make_b32.bat
* harbour/contrib/gd/make_b32.bat
* harbour/contrib/gd/tests/bldtest.bat
* harbour/contrib/libnf/make_b32.bat
* harbour/contrib/libnf/make_vc.bat
* harbour/contrib/htmllib/make_b32.bat
* harbour/contrib/htmllib/make_vc.bat
* harbour/contrib/tip/make_b32.bat
* harbour/contrib/libct/make_b32.bat
* harbour/contrib/libct/make_vc.bat
* harbour/contrib/adordd/make_b32.bat
* harbour/contrib/rdd_ads/doc/gendoc.bat
* harbour/contrib/rdd_ads/make_b32.bat
* harbour/contrib/rdd_ads/make_vc.bat
* harbour/contrib/libgt/make_b32.bat
* harbour/contrib/libgt/doc/gendoc.bat
* harbour/contrib/libgt/make_vc.bat
* harbour/contrib/hbclip/make_clp.bat
* harbour/contrib/btree/make_b32.bat
* harbour/contrib/btree/mktest.bat
* harbour/contrib/ole2/make_b32.bat
* harbour/contrib/directx/buvcdx.bat
* harbour/contrib/hgf/tests/build_b32.bat
* harbour/contrib/hgf/win32/make_b32.bat
* harbour/contrib/hgf/win32/makevc.bat
* harbour/contrib/samples/make_b32.bat
* harbour/contrib/samples/make_vc.bat
* harbour/contrib/delphi/hbdll/start.bat
* harbour/contrib/delphi/hbdll/bld_sdll.bat
* harbour/contrib/mysql/make_b32.bat
* harbour/contrib/runjava/bld_java.bat
* harbour/contrib/runjava/make_vc.bat
* harbour/contrib/odbc/bldodbc.bat
* harbour/contrib/odbc/bld_b32.bat
* harbour/contrib/bmdbfcdx/make_b32.bat
* harbour/contrib/hbzlib/dll_b32.bat
* harbour/contrib/hbzlib/make_b32.bat
* harbour/contrib/hbzlib/make_vc.bat
* harbour/utils/hbextern/make_c5x.bat
* harbour/utils/hbpptest/compare.bat
* harbour/utils/hbtest/make_c5x.bat
* harbour/utils/hbtest/make_xpp.bat
* harbour/samples/guestbk/bld_b32.bat
* harbour/samples/hscript/makehtm.bat
* harbour/samples/hscript/bld_b32.bat
* set svn:eol-style to CRLF
160 lines
3.7 KiB
Batchfile
160 lines
3.7 KiB
Batchfile
@echo off
|
|
rem ***********************************************************
|
|
rem * bldtest.bat
|
|
rem *
|
|
rem * $Id$
|
|
rem *
|
|
rem * Batch file to build test programs in ST or MT environment
|
|
rem *
|
|
rem * (C) 2003 Francesco Saverio Giudice <info@fsgiudice.com>
|
|
rem *
|
|
rem ***********************************************************
|
|
rem *
|
|
rem * This is a generic batch file, if it doesn't fit your own needs
|
|
rem * please DON'T MODIFY IT.
|
|
rem *
|
|
rem * Instead, make a local copy and modify that one, or make a call to
|
|
rem * this batch file from your customized one.
|
|
rem *
|
|
rem ***********************************************************
|
|
|
|
rem Saving current HB_MT state
|
|
set OLDENVMT=%HB_MT%
|
|
set OLDENVGT=%HB_GT_LIB%
|
|
set OLDENVC=%CFLAGS%
|
|
set OLD_HB_ARCHITECTURE=%HB_ARCHITECTURE%
|
|
set OLD_HB_COMPILER=%HB_COMPILER%
|
|
set OLD_HB_USER_LIBS=%HB_USER_LIBS%
|
|
|
|
set HB_INSTALL=..\..\..
|
|
if %HB_ARCHITECTURE%.==. set HB_ARCHITECTURE=w32
|
|
if %HB_COMPILER%.==. set HB_COMPILER=bcc32
|
|
SET HB_BIN_INSTALL=%HB_INSTALL%\bin
|
|
set HB_INC_INSTALL=..;%HB_INSTALL%\include
|
|
set HB_LIB_INSTALL=%HB_INSTALL%\lib
|
|
set HB_USER_LIBS=%HB_LIB_INSTALL%\hbgd.lib %HB_LIB_INSTALL%\libbgd.lib %HB_LIB_INSTALL%\libct.lib
|
|
|
|
echo.
|
|
echo.BldTest.bat - /? or /h to display options
|
|
echo.
|
|
|
|
:ARGUMENTS
|
|
rem Check parameters
|
|
IF %1.==. GOTO SHOWHELP
|
|
IF %1.==/?. GOTO SHOWHELP
|
|
IF %1.==/H. GOTO SHOWHELP
|
|
IF %1.==/h. GOTO SHOWHELP
|
|
IF %1.==/MT. GOTO SETMT
|
|
IF %1.==/mt. GOTO SETMT
|
|
IF %1.==/cgi. GOTO SETCGI
|
|
IF %1.==/CGI. GOTO SETCGI
|
|
IF %1.==/WVT. GOTO SETWVT
|
|
IF %1.==/wvt. GOTO SETWVT
|
|
|
|
IF %BLDDEFAULT%.==N. GOTO CALLBLD
|
|
GOTO SETDEFAULT
|
|
|
|
:SETMT
|
|
echo.Setting MultiThread (MT) mode
|
|
echo.
|
|
SET HB_MT=mt
|
|
SHIFT
|
|
SET BLDDEFAULT=N
|
|
GOTO ARGUMENTS
|
|
|
|
:SETWVT
|
|
echo.Setting Windows Virtual Terminal (WVT) mode
|
|
echo.
|
|
SET HB_GT_LIB=gtwvt
|
|
SET CFLAGS=-W
|
|
SHIFT
|
|
SET BLDDEFAULT=N
|
|
GOTO ARGUMENTS
|
|
|
|
:SETCGI
|
|
echo.Setting CGI Terminal (CGI) mode
|
|
echo.
|
|
SET HB_GT_LIB=gtcgi
|
|
SET CFLAGS=
|
|
SHIFT
|
|
SET BLDDEFAULT=N
|
|
GOTO ARGUMENTS
|
|
|
|
:SETDEFAULT
|
|
echo.Setting Default Settings (ST/GTWIN) mode
|
|
echo.
|
|
SET HB_MT=
|
|
SET HB_GT_LIB=gtwin
|
|
|
|
:CALLBLD
|
|
echo.Running %HB_BIN_INSTALL%\bld.bat %1 %2 %3 %4 %5
|
|
echo.
|
|
echo.please wait ...
|
|
echo.
|
|
call %HB_BIN_INSTALL%\bld.bat %1 %2 %3 %4 %5 > bldtest.log
|
|
IF ERRORLEVEL 1 GOTO SHOWERROR
|
|
|
|
if exist %1.c del %1.c
|
|
if exist %1.obj del %1.obj
|
|
if exist %1.tds del %1.tds
|
|
|
|
if exist %2.c del %2.c
|
|
if exist %2.obj del %2.obj
|
|
if exist %2.tds del %2.tds
|
|
|
|
if exist %3.c del %3.c
|
|
if exist %3.obj del %3.obj
|
|
if exist %3.tds del %3.tds
|
|
|
|
GOTO COMPILEOK
|
|
|
|
:SHOWERROR
|
|
echo.
|
|
echo.Error on compiling ...
|
|
echo.
|
|
echo.Running notepad, please close to end this batch file ...
|
|
echo.
|
|
notepad bldtest.log
|
|
echo.
|
|
echo.Notepad closed, exiting ...
|
|
echo.
|
|
GOTO ENDSET
|
|
|
|
:COMPILEOK
|
|
echo.
|
|
echo.Compiled successfully
|
|
echo.
|
|
if exist bldtest.log del bldtest.log
|
|
GOTO ENDSET
|
|
|
|
:SHOWHELP
|
|
echo.
|
|
echo."bldtest [/MT|/mt|/CGI|/cgi|WVT|/wvt|/?|/H|/h] prgname"
|
|
echo.
|
|
echo. /MT = Set MT envinronment to build test program in MultiThread mode
|
|
echo. otherwise program will be compiled in SingleThread mode
|
|
echo. /CGI = Uses GTCGI instead of GTWIN to build test program.
|
|
echo. /WVT = Uses GTWVT instead of GTWIN to build test program.
|
|
echo. /? or /H = Show this help
|
|
echo. prgname = Name of prg file to compile without extension [.prg]
|
|
echo.
|
|
|
|
:ENDSET
|
|
|
|
rem Restore Old Settings
|
|
set HB_MT=%OLDENVMT%
|
|
set HB_GT_LIB=%OLDENVGT%
|
|
set CFLAGS=%OLDENVC%
|
|
set HB_ARCHITECTURE=%OLD_HB_ARCHITECTURE%
|
|
set HB_COMPILER=%OLD_HB_COMPILER%
|
|
set HB_USER_LIBS=%OLD_HB_USER_LIBS%
|
|
|
|
set OLDENVGT=
|
|
set OLDENVC=
|
|
set OLDENVMT=
|
|
set BLDDEFAULT=
|
|
set OLD_HB_ARCHITECTURE=
|
|
set OLD_HB_COMPILER=
|
|
set OLD_HB_USER_LIBS=
|
|
:END
|