Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (20 sloc) 899 Bytes
@echo off
set lib=d:\dev\lib
set bin=d:\dev\lib\tempbuild\fpc
set fpc=c:\np\fpc\bin\i386-win32\fpc.exe
if exist %fpc% (
cd \dev\lib
if not exist %bin% mkdir %bin%
del %bin%\*.exe %bin%\*.o %bin%\*.a %bin%\*.ppu %bin%\*.map %bin%\*.db3 %bin%\*.ini %bin%\*.data %bin%\*.mdb %bin%\TestSQL3.* > nul 2> nul
echo.
cd \dev\lib\SQLite3
echo Compiling using %fpc%...
@rem -O2 don't make GPF during DDD tests any more...
%fpc% -B -MObjFPC -Scgi -CX -O2 -XX -ve -dFPCSQLITE3STATIC -Fi%lib% -Fu%lib% -Fu%lib%\SQLite3 -Fu%lib%\kylix -l -Fl%lib%\fpc-win32 -FE%bin% TestSQL3.dpr >%bin%\compilMsg
rem %fpc% -B -MObjFPC -Scgi -CX -O1 -XX -ve -Fi%lib% -Fu%lib% -Fu%lib%\SQLite3 -l -Fl%lib%\fpc-win32 -FE%bin% TestSQL3.dpr >%bin%\compilation
del %bin%\*.o %bin%\*.a %bin%\*.ppu %bin%\*.mdb > nul
%bin%\TestSQL3
) else (
echo !!!! %fpc% not found !!!!
)
pause