summary refs log tree commit diff stats
path: root/win32/deps
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-09-28 13:41:20 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-09-28 13:41:21 +0200
commita738892ad141356d0186c5fb46573182193576c9 (patch)
tree0d1b381c64df40cebc0fe686810d32151f39021e /win32/deps
parent00fbf435842410a5a0af8f2757e4affc6722f405 (diff)
Add zlib build script
Diffstat (limited to 'win32/deps')
-rw-r--r--win32/deps/zlib/build-x86.bat31
1 files changed, 31 insertions, 0 deletions
diff --git a/win32/deps/zlib/build-x86.bat b/win32/deps/zlib/build-x86.bat
new file mode 100644
index 00000000..7382fdac
--- /dev/null
+++ b/win32/deps/zlib/build-x86.bat
@@ -0,0 +1,31 @@
+:: run this from a VS command prompt

+@echo off

+

+SET PACKAGE_NAME=zlib-1.2.7

+nmake -f win32\makefile.msc clean

+nmake -f win32\makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"

+set ZLIB_SRC=%cd%

+set ZLIB_DEST=%cd%-x86

+nmake -f win32\makefile.msc test

+echo.Press return when ready to install!

+pause

+

+rmdir /q /s %ZLIB_DEST%

+mkdir %ZLIB_DEST%

+mkdir %ZLIB_DEST%\bin

+mkdir %ZLIB_DEST%\include

+mkdir %ZLIB_DEST%\lib

+copy zlib.h %ZLIB_DEST%\include

+copy zconf.h %ZLIB_DEST%\include

+copy zdll.lib %ZLIB_DEST%\lib

+copy zlib1.dll %ZLIB_DEST%\bin

+copy README %ZLIB_DEST%\COPYING.ZLIB

+nmake -f win32\makefile.msc clean

+

+cd %ZLIB_DEST%

+set PATH=%PATH%;%ProgramFiles%\7-zip

+7z a ..\%PACKAGE_NAME%-x86.7z *

+cd %ZLIB_SRC%

+

+echo.Finished!

+pause