diff options
Diffstat (limited to 'plugins/ImportTXT/make.bat')
-rw-r--r-- | plugins/ImportTXT/make.bat | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/plugins/ImportTXT/make.bat b/plugins/ImportTXT/make.bat index f9136ac2d4..83df36685c 100644 --- a/plugins/ImportTXT/make.bat +++ b/plugins/ImportTXT/make.bat @@ -1,13 +1,22 @@ -rem @echo off
-set OUTDIR="..\..\bin10\Release\Plugins"
+@echo off
+if /i '%1' == 'fpc' (
+ set OUTDIR="..\..\bin10\Release\Plugins"
+ set FPCBIN=fpc.exe
+) else if /i '%1' == 'fpc64' (
+ set OUTDIR="..\..\bin10\Release64\Plugins"
+ set FPCBIN=ppcrossx64.exe
+)
+set PROJECT=ImportTXT
+
if not exist %OUTDIR% mkdir %OUTDIR%
+md tmp
+
+rem brcc32 -foImpTxt_Ver.res ImpTxt_Ver.rc
+rem brcc32 -foImpTxtDlg.res ImpTxtDlg.rc
+rem brcc32 -foImpTxtWiz.res ImpTxtWiz.rc
+
+%FPCBIN% @..\Utils.pas\fpc.cfg %PROJECT%.dpr %2 %3 %4 %5 %6 %7 %8 %9
-set COMPDIR=-$A8 -$D- -$J+ -$L- -$O+ -$Q- -$R- -$Y- -$C-
-set INCDIR=".\kol;..\..\include\delphi;..\ExternalAPI\delphi"
-set DCUDIR="tmp"
-md %DCUDIR% 2>nul
-brcc32 -foImpTxt_Ver.res ImpTxt_Ver.rc
-brcc32 -foImpTxtDlg.res ImpTxtDlg.rc
-brcc32 -foImpTxtWiz.res ImpTxtWiz.rc
-dcc32 -B -CG -U%INCDIR% -R%INCDIR% -I%INCDIR% -E%OUTDIR% -LE%DCUDIR% -LN%DCUDIR% -N%DCUDIR% %COMPDIR% ImportTXT.dpr
-rd /q /s %DCUDIR%
+move .\tmp\%PROJECT%.dll %OUTDIR%
+del /Q tmp\*
+rd tmp
|