bld.bat 871 B

1234567891011121314151617181920212223242526272829303132
  1. cd win32
  2. :: Have to set manifest for VS2008.
  3. :: No idea why, but exe's won't run otherwise.
  4. set MANIFEST=no
  5. if "%VS_MAJOR%" == "9" (
  6. set MANIFEST=yes
  7. )
  8. cscript configure.js compiler=msvc iconv=yes icu=no zlib=yes lzma=no python=no ^
  9. vcmanifest=%MANIFEST% ^
  10. prefix=%LIBRARY_PREFIX% ^
  11. include=%LIBRARY_INC% ^
  12. lib=%LIBRARY_LIB%
  13. if errorlevel 1 exit 1
  14. nmake /f Makefile.msvc
  15. if errorlevel 1 exit 1
  16. nmake /f Makefile.msvc install
  17. if errorlevel 1 exit 1
  18. :: For some reason the includes get put down one level.
  19. move %LIBRARY_INC%\libxml2\libxml %LIBRARY_INC%
  20. if errorlevel 1 exit 1
  21. rmdir %LIBRARY_INC%\libxml2
  22. del %LIBRARY_PREFIX%\bin\test*.exe || exit 1
  23. del %LIBRARY_PREFIX%\bin\runsuite.exe || exit 1
  24. del %LIBRARY_PREFIX%\bin\runtest.exe || exit 1