mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-02 22:54:54 +03:00
iis: Improves the iis build system
Now checking for common errors while building. Refactoring on the build scripts, now there is this build_dependencies.bat script on the iis sub-folder. By calling this script all the dependencies should be build under the winbuild/. This commit also removes build scripts that were not needed anymore.
This commit is contained in:
committed by
Felipe Zimmerle
parent
a946a163f0
commit
b277e538f2
@@ -1,12 +1,24 @@
|
||||
cd %WORK%
|
||||
rmdir /s /q %PCRE%
|
||||
7z.exe x %PCRE%.zip
|
||||
cd %PCRE%
|
||||
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
|
||||
cd "%WORK_DIR%"
|
||||
|
||||
@if NOT EXIST "%SOURCE_DIR%\%APACHE_BIN%" goto file_not_found_bin
|
||||
|
||||
7z.exe x "%SOURCE_DIR%\%PCRE%"
|
||||
set PCRE_DIR=%PCRE:~0,-4%
|
||||
|
||||
cd "%PCRE_DIR%"
|
||||
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
|
||||
NMAKE
|
||||
IF NOT DEFINED FULLBUILD pause
|
||||
cd %WORK%
|
||||
cd "%WORK%"
|
||||
|
||||
copy /y "%WORK_DIR%\%PCRE_DIR%\pcre.dll" "%OUTPUT_DIR%"
|
||||
copy /y "%WORK_DIR%\%PCRE_DIR%\pcre.pdb" "%OUTPUT_DIR%"
|
||||
copy /y "%WORK_DIR%\%PCRE_DIR%\pcre.lib" "%OUTPUT_DIR%"
|
||||
echo "a"
|
||||
@exit /B 0
|
||||
|
||||
:file_not_found_bin
|
||||
@echo File not found: "%SOURCE_DIR%\%PCRE%"
|
||||
@goto failed
|
||||
|
||||
copy /y %WORK%\%PCRE%\pcre.dll %DROP%
|
||||
copy /y %WORK%\%PCRE%\pcre.pdb %DROP%
|
||||
copy /y %WORK%\%PCRE%\pcre.lib %DROP%
|
||||
:failed
|
||||
@exit /B 1
|
||||
|
||||
Reference in New Issue
Block a user