diff --git a/iis/build_modsecurity.bat b/iis/build_modsecurity.bat new file mode 100644 index 00000000..339e1a87 --- /dev/null +++ b/iis/build_modsecurity.bat @@ -0,0 +1,38 @@ + +set DEPENDENCIES_DIR=dependencies\build_dir +set OUTPUT_DIR=dependencies\release_files + +set CURRENT_DIR=%cd% + +@echo Checking for vcargs... %1 +@if NOT (%1) == "" call %1 +@if (%ERRORLEVEL%) == (1) goto build_wrong_vcarg + + +cd ..\apache2 +del *.obj *.dll *.lib +NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS + +cd ..\mlogc +nmake -f Makefile.win clean +nmake -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre CURL=..\iis\%DEPENDENCIES_DIR%\curl VERSION=VERSION_IIS + +cd ..\iis +nmake -f Makefile.win clean +NMAKE -f Makefile.win APACHE=..\iis\%DEPENDENCIES_DIR%\Apache24 PCRE=..\iis\%DEPENDENCIES_DIR%\pcre LIBXML2=..\iis\%DEPENDENCIES_DIR%\libxml2 LUA=..\iis\%DEPENDENCIES_DIR%\lua\src VERSION=VERSION_IIS + +cd %CURRENT_DIR% + +copy /y ..\mlogc\mlogc.exe %OUTPUT_DIR% +copy /y ..\iis\modsecurityiis.dll %OUTPUT_DIR% +copy /y ..\iis\modsecurityiis.pdb %OUTPUT_DIR% + +exit /B 0 + +:build_wrong_vcargs +@echo Please specify a valid vcargs +@goto failed + +:failed +@cd %CURRENT_DIR% +@exit /B diff --git a/iis/dependencies/build_module.bat b/iis/dependencies/build_module.bat deleted file mode 100644 index 50cd83a1..00000000 --- a/iis/dependencies/build_module.bat +++ /dev/null @@ -1,16 +0,0 @@ -cd %WORK% -CD mod_security\apache2 -del *.obj *.dll *.lib -NMAKE -f Makefile.win APACHE=%APACHE% PCRE=%WORK%\%PCRE% LIBXML2=%WORK%\%LIBXML2% LUA=%WORK%\%LUA%\src VERSION=VERSION_IIS -cd ..\mlogc -copy /y %WORK%\Makefile.win . -nmake -f Makefile.win clean -nmake -f Makefile.win APACHE=%APACHE% PCRE=%WORK%\%PCRE% CURL=%WORK%\%CURL% VERSION=VERSION_IIS -cd ..\iis -nmake -f Makefile.win clean -NMAKE -f Makefile.win APACHE=%APACHE% PCRE=%WORK%\%PCRE% LIBXML2=%WORK%\%LIBXML2% LUA=%WORK%\%LUA%\src VERSION=VERSION_IIS -cd %WORK% - -copy /y %WORK%\mod_security\mlogc\mlogc.exe %DROP% -copy /y %WORK%\mod_security\iis\modsecurityiis.dll %DROP% -copy /y %WORK%\mod_security\iis\modsecurityiis.pdb %DROP%