mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Since the directory becomes all about dependencies there is no need to call it winbuild anymore.
27 lines
590 B
Batchfile
27 lines
590 B
Batchfile
cd "%WORK_DIR%"
|
|
|
|
@if NOT EXIST "%SOURCE_DIR%\%ZLIB%" goto file_not_found_bin
|
|
|
|
@7z.exe x "%SOURCE_DIR%\%ZLIB%" -so | 7z.exe x -aoa -si -ttar
|
|
|
|
set ZLIB_DIR=%ZLIB:~0,-7%
|
|
|
|
cd "%ZLIB_DIR%"
|
|
nmake -f win32\Makefile.msc
|
|
SET INCLUDE=%INCLUDE%;%WORK_DIR%\%ZLIB_DIR%
|
|
SET LIB=%LIB%;%WORK_DIR%\%ZLIB_DIR%
|
|
cd "%WORK_DIR%"
|
|
|
|
copy /y "%WORK_DIR%\%ZLIB_DIR%\zlib1.dll" "%OUTPUT_DIR%"
|
|
copy /y "%WORK_DIR%\%ZLIB_DIR%\zlib1.pdb" "%OUTPUT_DIR%"
|
|
copy /y "%WORK_DIR%\%ZLIB_DIR%\zdll.lib" "%OUTPUT_DIR%"
|
|
|
|
@exit /B 0
|
|
|
|
:file_not_found_bin
|
|
@echo File not found: "%SOURCE_DIR%\%ZLIB%"
|
|
@goto failed
|
|
|
|
:failed
|
|
@exit /B 1
|