summaryrefslogtreecommitdiff
path: root/BanControl/vsproj/clean.bat
diff options
context:
space:
mode:
Diffstat (limited to 'BanControl/vsproj/clean.bat')
-rw-r--r--BanControl/vsproj/clean.bat49
1 files changed, 49 insertions, 0 deletions
diff --git a/BanControl/vsproj/clean.bat b/BanControl/vsproj/clean.bat
new file mode 100644
index 0000000..19cd5ba
--- /dev/null
+++ b/BanControl/vsproj/clean.bat
@@ -0,0 +1,49 @@
+@echo off
+
+echo Building Resources...
+rc /r /fo ".\BanControl.res" ..\res\BanControl.rc
+
+
+echo Building ANSI version...
+
+\masm32\bin\ml /nologo /c /coff /Zi /Fl /Fm /Cp ..\plugin\BanControl.asm
+ if errorlevel 1 goto errasm
+\masm32\bin\Link /nologo /DEBUG /DEBUGTYPE:CV /DLL /DEF:..\plugin\BanControl.def /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib BanControl.obj BanControl.res
+ if errorlevel 1 goto errlink
+move /Y BanControl.dll ..\bin\BanControlA_d.dll
+
+\masm32\bin\ml /nologo /c /coff /Cp ..\plugin\BanControl.asm
+ if errorlevel 1 goto errasm
+\masm32\bin\Link /nologo /DLL /DEF:..\plugin\BanControl.def /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib BanControl.obj BanControl.res
+ if errorlevel 1 goto errlink
+move /Y BanControl.dll ..\bin\BanControlA.dll
+
+
+echo Building Unicode version...
+
+\masm32\bin\ml /nologo /D_UNICODE /c /coff /Zi /Fl /Fm /Cp ..\plugin\BanControl.asm
+ if errorlevel 1 goto errasm
+\masm32\bin\Link /nologo /DEBUG /DEBUGTYPE:CV /DLL /DEF:..\plugin\BanControl.def /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib BanControl.obj BanControl.res
+ if errorlevel 1 goto errlink
+move /Y BanControl.dll ..\bin\BanControlW_d.dll
+
+\masm32\bin\ml /nologo /D_UNICODE /c /coff /Cp ..\plugin\BanControl.asm
+ if errorlevel 1 goto errasm
+\masm32\bin\Link /nologo /DLL /DEF:..\plugin\BanControl.def /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib BanControl.obj BanControl.res
+ if errorlevel 1 goto errlink
+move /Y BanControl.dll ..\bin\BanControlW.dll
+
+Echo Done.
+cd
+
+goto TheEnd
+:errasm
+echo _
+echo Assembly Error
+goto TheEnd
+:errlink
+echo _
+echo Link Error
+
+:TheEnd
+pause \ No newline at end of file