|
| 1 | + |
| 2 | +set RELEASE_DIR=release |
| 3 | +set OUTPUT_DIR=%cd%\dependencies\release_files |
| 4 | +set CURRENT_DIR=%cd% |
| 5 | + |
| 6 | +set AMD64=%RELEASE_DIR%\amd64 |
| 7 | +set X86=%RELEASE_DIR%\x86 |
| 8 | + |
| 9 | +mkdir "%RELEASE_DIR%" |
| 10 | + |
| 11 | +mkdir "%AMD64%" |
| 12 | + |
| 13 | +mkdir "%X86%" |
| 14 | + |
| 15 | +set VCARGS32="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat" |
| 16 | +set VCARGS64="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" |
| 17 | + |
| 18 | +call build_dependencies.bat %VCARGS64% |
| 19 | +@if NOT (%ERRORLEVEL%) == (0) goto build_failed |
| 20 | +call build_modsecurity.bat %VCARGS64% |
| 21 | +@if NOT (%ERRORLEVEL%) == (0) goto build_failed |
| 22 | + |
| 23 | +copy "%OUTPUT_DIR%\libapr-1.dll" "%AMD64%" |
| 24 | +copy "%OUTPUT_DIR%\libapriconv-1.dll" "%AMD64%" |
| 25 | +copy "%OUTPUT_DIR%\libaprutil-1.dll" "%AMD64%" |
| 26 | +copy "%OUTPUT_DIR%\libcurl.dll" "%AMD64%" |
| 27 | +copy "%OUTPUT_DIR%\libxml2.dll" "%AMD64%" |
| 28 | +copy "%OUTPUT_DIR%\lua5.1.dll" "%AMD64%" |
| 29 | +copy "%OUTPUT_DIR%\mlogc.exe" "%AMD64%" |
| 30 | +copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%AMD64%" |
| 31 | +copy "%OUTPUT_DIR%\pcre.dll" "%AMD64%" |
| 32 | +copy "%OUTPUT_DIR%\zlib1.dll" "%AMD64%" |
| 33 | + |
| 34 | + |
| 35 | +call build_dependencies.bat %VCARGS32% |
| 36 | +@if NOT (%ERRORLEVEL%) == (0) goto build_failed |
| 37 | +call build_modsecurity.bat %VCARGS32% |
| 38 | +@if NOT (%ERRORLEVEL%) == (0) goto build_failed |
| 39 | + |
| 40 | +copy "%OUTPUT_DIR%\libapr-1.dll" "%X86%" |
| 41 | +copy "%OUTPUT_DIR%\libapriconv-1.dll" "%X86%" |
| 42 | +copy "%OUTPUT_DIR%\libaprutil-1.dll" "%X86%" |
| 43 | +copy "%OUTPUT_DIR%\libcurl.dll" "%X86%" |
| 44 | +copy "%OUTPUT_DIR%\libxml2.dll" "%X86%" |
| 45 | +copy "%OUTPUT_DIR%\lua5.1.dll" "%X86%" |
| 46 | +copy "%OUTPUT_DIR%\mlogc.exe" "%X86%" |
| 47 | +copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%X86%" |
| 48 | +copy %OUTPUT_DIR%\pcre.dll "%X86%" |
| 49 | +copy %OUTPUT_DIR%\zlib1.dll "%X86%" |
| 50 | + |
| 51 | + |
| 52 | +:: copy %OUTPUT_DIR%\Installer.exe %RELEASE_DIR% |
| 53 | +:: copy %OUTPUT_DIR%\ModSecurity.xml %RELEASE_DIR% |
| 54 | +:: copy %OUTPUT_DIR%\owasp_csr.zip %RELEASE_DIR% |
| 55 | +:: copy %OUTPUT_DIR%\README.txt %RELEASE_DIR% |
| 56 | + |
| 57 | + |
| 58 | +exit /B 0 |
| 59 | + |
| 60 | +:build_failed |
| 61 | +@echo Problems during the building phase |
| 62 | +@goto failed |
| 63 | + |
| 64 | +:failed |
| 65 | +@cd %CURRENT_DIR% |
| 66 | +@exit /B 1 |
| 67 | + |
0 commit comments