mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
iis: Adds release script
This commit is contained in:
committed by
Felipe Zimmerle
parent
79875b1af8
commit
9477118903
@@ -64,7 +64,7 @@
|
|||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
67
iis/build_release.bat
Normal file
67
iis/build_release.bat
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
|
||||||
|
set RELEASE_DIR=release
|
||||||
|
set OUTPUT_DIR=%cd%\dependencies\release_files
|
||||||
|
set CURRENT_DIR=%cd%
|
||||||
|
|
||||||
|
set AMD64=%RELEASE_DIR%\amd64
|
||||||
|
set X86=%RELEASE_DIR%\x86
|
||||||
|
|
||||||
|
mkdir "%RELEASE_DIR%"
|
||||||
|
|
||||||
|
mkdir "%AMD64%"
|
||||||
|
|
||||||
|
mkdir "%X86%"
|
||||||
|
|
||||||
|
set VCARGS32="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
|
||||||
|
set VCARGS64="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
|
||||||
|
|
||||||
|
call build_dependencies.bat %VCARGS64%
|
||||||
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
call build_modsecurity.bat %VCARGS64%
|
||||||
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
|
||||||
|
copy "%OUTPUT_DIR%\libapr-1.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\libapriconv-1.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\libaprutil-1.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\libcurl.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\libxml2.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\lua5.1.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\mlogc.exe" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\pcre.dll" "%AMD64%"
|
||||||
|
copy "%OUTPUT_DIR%\zlib1.dll" "%AMD64%"
|
||||||
|
|
||||||
|
|
||||||
|
call build_dependencies.bat %VCARGS32%
|
||||||
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
call build_modsecurity.bat %VCARGS32%
|
||||||
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
||||||
|
|
||||||
|
copy "%OUTPUT_DIR%\libapr-1.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\libapriconv-1.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\libaprutil-1.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\libcurl.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\libxml2.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\lua5.1.dll" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\mlogc.exe" "%X86%"
|
||||||
|
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%X86%"
|
||||||
|
copy %OUTPUT_DIR%\pcre.dll "%X86%"
|
||||||
|
copy %OUTPUT_DIR%\zlib1.dll "%X86%"
|
||||||
|
|
||||||
|
|
||||||
|
:: copy %OUTPUT_DIR%\Installer.exe %RELEASE_DIR%
|
||||||
|
:: copy %OUTPUT_DIR%\ModSecurity.xml %RELEASE_DIR%
|
||||||
|
:: copy %OUTPUT_DIR%\owasp_csr.zip %RELEASE_DIR%
|
||||||
|
:: copy %OUTPUT_DIR%\README.txt %RELEASE_DIR%
|
||||||
|
|
||||||
|
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
:build_failed
|
||||||
|
@echo Problems during the building phase
|
||||||
|
@goto failed
|
||||||
|
|
||||||
|
:failed
|
||||||
|
@cd %CURRENT_DIR%
|
||||||
|
@exit /B 1
|
||||||
|
|
Reference in New Issue
Block a user