ModSecurity/iis/dependencies/build_libxml2.bat
Felipe \\\"Zimmerle\\\" Costa 368617ddb2 iis: Relative paths on the VS project file
There are a ModSecurityIIS solution and project files, those
were using hard coded paths to meet the dependencies. As
consequence of the last update in our build scripts, now we
are able to built the dependencies and load it to our Visual
Studio project using relative paths.
2013-11-05 20:55:23 -06:00

30 lines
677 B
Batchfile

cd "%WORK_DIR%"
@if NOT EXIST "%SOURCE_DIR%\%LIBXML2%" goto file_not_found_bin
@7z.exe x "%SOURCE_DIR%\%LIBXML2%" -so | 7z.exe x -aoa -si -ttar
set LIBXML2_DIR=%LIBXML2:~0,-7%
mklink /D "libxml2" "%LIBXML2_DIR%"
fart.exe -r -i -C "%WORK_DIR%\%LIBXML2_DIR%\win32\*.*" \x2Fopt:nowin98 " "
cd "%LIBXML2_DIR%\win32"
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
NMAKE -f Makefile.msvc
cd "%WORK%"
copy /y "%WORK_DIR%\%LIBXML2_DIR%\win32\bin.msvc\libxml2.dll" "%OUTPUT_DIR%"
copy /y "%WORK_DIR%\%LIBXML2_DIR%\win32\bin.msvc\libxml2.lib" "%OUTPUT_DIR%"
@exit /B 0
:file_not_found_bin
@echo File not found: "%SOURCE_DIR%\%LIBXML2%"
@goto failed
:failed
@exit /B 1