From 937effb649e1e5094fd6596c3a00e7a7218d4280 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Wed, 31 Jul 2013 14:08:18 +0000 Subject: [PATCH] More or less working project for Visual Studio. --- lib/filesystem/CZipLoader.cpp | 3 +- lib/minizip/ioapi.h | 25 +++++++-- minizip/minizip.vcxproj | 97 +++++++++++++++++++++++++++++++++ minizip/minizip.vcxproj.filters | 33 +++++++++++ minizip/minizip.vcxproj.user | 4 ++ 5 files changed, 155 insertions(+), 7 deletions(-) create mode 100644 minizip/minizip.vcxproj create mode 100644 minizip/minizip.vcxproj.filters create mode 100644 minizip/minizip.vcxproj.user diff --git a/lib/filesystem/CZipLoader.cpp b/lib/filesystem/CZipLoader.cpp index f0123495e..642cd519d 100644 --- a/lib/filesystem/CZipLoader.cpp +++ b/lib/filesystem/CZipLoader.cpp @@ -1,4 +1,5 @@ -#include "Global.h" +#include "StdInc.h" +#include "../../Global.h" #include "CZipLoader.h" /* diff --git a/lib/minizip/ioapi.h b/lib/minizip/ioapi.h index a8975996a..f5e93dd41 100644 --- a/lib/minizip/ioapi.h +++ b/lib/minizip/ioapi.h @@ -75,7 +75,7 @@ #endif #endif -/* + #ifndef ZPOS64_T #ifdef _WIN32 #define ZPOS64_T fpos_t @@ -84,7 +84,7 @@ #define ZPOS64_T uint64_t #endif #endif -*/ + #ifdef HAVE_MINIZIP64_CONF_H #include "mz64conf.h" @@ -102,12 +102,25 @@ typedef uint64_t ZPOS64_T; /* Maximum unsigned 32-bit value used as placeholder for zip64 */ #define MAXU32 0xffffffff -#if defined(_MSC_VER) || defined(__BORLANDC__) -typedef unsigned __int64 ZPOS64_T; -#else -typedef unsigned long long int ZPOS64_T; +//#if defined(_MSC_VER) || defined(__BORLANDC__) +// typedef unsigned __int64 ZPOS64_T; +//#else +// typedef unsigned long long int ZPOS64_T; +//#endif #endif #endif + +#if defined(_MSC_VER) + /* If building or using zlib as a DLL, define ZLIB_DLL. + * This is not mandatory, but it offers a little performance increase. + */ +# ifdef ZLIB_DLL +# ifdef ZLIB_INTERNAL +# define ZEXPORT __declspec(dllexport) +# else +# define ZEXPORT __declspec(dllimport) +# endif +# endif /* ZLIB_DLL */ #endif diff --git a/minizip/minizip.vcxproj b/minizip/minizip.vcxproj new file mode 100644 index 000000000..dc9434df1 --- /dev/null +++ b/minizip/minizip.vcxproj @@ -0,0 +1,97 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4949F16A-A2E3-4BAD-9D88-2A687C5555D1} + Win32Proj + minizip + + + + DynamicLibrary + true + v110 + Unicode + + + DynamicLibrary + false + v110 + true + Unicode + + + + + + + + + + + + + true + + + $(SolutionDir)..\include;$(IncludePath) + ..\.. + $(SolutionDir)..\libs\$(PlatformShortName);$(VCMI_Out);$(LibraryPath) + + + + + + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;MINIZIP_EXPORTS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + + + Full + + + true + ZLIB_DLL;ZLIB_INTERNAL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + true + F:\Programowanie\VCMI\include;%(AdditionalIncludeDirectories) + + + Windows + true + true + true + ..\..\libs;..\.. + zlib.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + \ No newline at end of file diff --git a/minizip/minizip.vcxproj.filters b/minizip/minizip.vcxproj.filters new file mode 100644 index 000000000..c05e1f922 --- /dev/null +++ b/minizip/minizip.vcxproj.filters @@ -0,0 +1,33 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + \ No newline at end of file diff --git a/minizip/minizip.vcxproj.user b/minizip/minizip.vcxproj.user new file mode 100644 index 000000000..7cbb3216a --- /dev/null +++ b/minizip/minizip.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file