zlib: Add build script and build libs.
authormark <mark@2c67d6c2-4361-4cd7-bd83-1149b1926c9b>
Mon, 20 May 2013 20:01:51 +0000 (20:01 +0000)
committermark <mark@2c67d6c2-4361-4cd7-bd83-1149b1926c9b>
Mon, 20 May 2013 20:01:51 +0000 (20:01 +0000)
git-svn-id: https://valelab.ucsf.edu/svn/3rdpartypublic@137 2c67d6c2-4361-4cd7-bd83-1149b1926c9b

zlib_build/VS2008/Win32/Debug/zlibstat.lib [new file with mode: 0644]
zlib_build/VS2008/Win32/Release/zlibstat.lib [new file with mode: 0644]
zlib_build/VS2008/build_zlib.bat [new file with mode: 0644]
zlib_build/VS2008/x64/Debug/zlibstat.lib [new file with mode: 0644]
zlib_build/VS2008/x64/Release/zlibstat.lib [new file with mode: 0644]

diff --git a/zlib_build/VS2008/Win32/Debug/zlibstat.lib b/zlib_build/VS2008/Win32/Debug/zlibstat.lib
new file mode 100644 (file)
index 0000000..03f9b5c
Binary files /dev/null and b/zlib_build/VS2008/Win32/Debug/zlibstat.lib differ
diff --git a/zlib_build/VS2008/Win32/Release/zlibstat.lib b/zlib_build/VS2008/Win32/Release/zlibstat.lib
new file mode 100644 (file)
index 0000000..a59a082
Binary files /dev/null and b/zlib_build/VS2008/Win32/Release/zlibstat.lib differ
diff --git a/zlib_build/VS2008/build_zlib.bat b/zlib_build/VS2008/build_zlib.bat
new file mode 100644 (file)
index 0000000..f570ce6
--- /dev/null
@@ -0,0 +1,88 @@
+@echo off\r
+setlocal ENABLEDELAYEDEXPANSION\r
+rem Author: Mark Tsuchida\r
+rem See contrib\vstudio\readme.txt.\r
+rem\r
+rem Change these two paths as needed:\r
+set ZLIB_SRC_ROOT=..\..\zlib\r
+set VC_DIR="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC"\r
+\r
+\r
+if "%1" == "/f" (\r
+  call :do_build\r
+  goto :EOF\r
+)\r
+if "%1" == "/F" (\r
+  call :do_build\r
+  goto :EOF\r
+)\r
+echo.\r
+echo Before building, you should modify the project files to disable debug\r
+echo information generation, to prevent linker warnings when linking to the\r
+echo zlib static libraries.\r
+echo To do so, open %ZLIB_SRC_ROOT%\contrib\vstudio\vc9\zlibvc.sln, select all\r
+echo projects, view Properties, select All Configurations and All Platforms,\r
+echo and set C/C++ ^> General ^> Debug Information Format to Disabled.\r
+echo Rerun this batch file as '%0 /f' to bypass this message.\r
+goto :EOF\r
+\r
+\r
+:do_build\r
+call :build_asm\r
+call :build_libs\r
+call :stage_libs\r
+goto :EOF\r
+\r
+\r
+:clear_env\r
+set INCLUDE=\r
+set LIBS=\r
+set LIBPATH=\r
+goto :EOF\r
+\r
+\r
+:build_asm\r
+call :clear_env\r
+pushd %VC_DIR%\r
+call vcvarsall.bat\r
+popd\r
+pushd %ZLIB_SRC_ROOT%\contrib\masmx86\r
+call bld_ml32.bat\r
+popd\r
+\r
+call :clear_env\r
+pushd %VC_DIR%\r
+call bin\vcvars64.bat\r
+popd\r
+pushd %ZLIB_SRC_ROOT%\contrib\masmx64\r
+call bld_ml64.bat\r
+popd\r
+goto :EOF\r
+\r
+\r
+:build_libs\r
+call :clear_env\r
+pushd %VC_DIR%\r
+call vcvarsall.bat\r
+popd\r
+\r
+pushd %ZLIB_SRC_ROOT%\contrib\vstudio\vc9\r
+vcbuild /rebuild zlibvc.sln "Debug|Win32"\r
+vcbuild /rebuild zlibvc.sln "Release|Win32"\r
+vcbuild /rebuild zlibvc.sln "Debug|x64"\r
+vcbuild /rebuild zlibvc.sln "Release|x64"\r
+popd\r
+goto :EOF\r
+\r
+\r
+:stage_libs\r
+for %%I in (Debug Release) do (\r
+  set DEST_DIR=.\Win32\%%I\r
+  if not exist !DEST_DIR! md !DEST_DIR!\r
+  copy "%ZLIB_SRC_ROOT%\contrib\vstudio\vc9\x86\ZlibStat%%I\zlibstat.lib" !DEST_DIR!\r
+\r
+  set DEST_DIR=.\x64\%%I\r
+  if not exist !DEST_DIR! md !DEST_DIR!\r
+  copy "%ZLIB_SRC_ROOT%\contrib\vstudio\vc9\x64\ZlibStat%%I\zlibstat.lib" !DEST_DIR!\r
+)\r
+goto :EOF\r
diff --git a/zlib_build/VS2008/x64/Debug/zlibstat.lib b/zlib_build/VS2008/x64/Debug/zlibstat.lib
new file mode 100644 (file)
index 0000000..b66afe4
Binary files /dev/null and b/zlib_build/VS2008/x64/Debug/zlibstat.lib differ
diff --git a/zlib_build/VS2008/x64/Release/zlibstat.lib b/zlib_build/VS2008/x64/Release/zlibstat.lib
new file mode 100644 (file)
index 0000000..f970b39
Binary files /dev/null and b/zlib_build/VS2008/x64/Release/zlibstat.lib differ