diff --git a/Windows.sln b/Windows.sln index 05edb10..db5de85 100644 --- a/Windows.sln +++ b/Windows.sln @@ -98,6 +98,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "freetype", "project\windows EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libwebp", "project\windows\dep\libwebp\libwebp.vcxproj", "{EA1D1B51-F067-3C93-8F54-669095725F4B}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mongoc", "project\windows\dep\mongoc\mongoc.vcxproj", "{65EBD877-099B-3F4E-9E5F-3D2EA6490307}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bson", "project\windows\dep\bson\bson.vcxproj", "{044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzmq", "project\windows\dep\libzmq\libzmq.vcxproj", "{641C5F36-32EE-4323-B740-992B651CF9D6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -394,6 +400,30 @@ Global {EA1D1B51-F067-3C93-8F54-669095725F4B}.Release|Win32.Build.0 = Release|Win32 {EA1D1B51-F067-3C93-8F54-669095725F4B}.Release|x64.ActiveCfg = Release|x64 {EA1D1B51-F067-3C93-8F54-669095725F4B}.Release|x64.Build.0 = Release|x64 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Debug|Win32.ActiveCfg = Debug|Win32 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Debug|Win32.Build.0 = Debug|Win32 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Debug|x64.ActiveCfg = Debug|x64 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Debug|x64.Build.0 = Debug|x64 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Release|Win32.ActiveCfg = Release|Win32 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Release|Win32.Build.0 = Release|Win32 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Release|x64.ActiveCfg = Release|x64 + {65EBD877-099B-3F4E-9E5F-3D2EA6490307}.Release|x64.Build.0 = Release|x64 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Debug|Win32.ActiveCfg = Debug|Win32 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Debug|Win32.Build.0 = Debug|Win32 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Debug|x64.ActiveCfg = Debug|x64 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Debug|x64.Build.0 = Debug|x64 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Release|Win32.ActiveCfg = Release|Win32 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Release|Win32.Build.0 = Release|Win32 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Release|x64.ActiveCfg = Release|x64 + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F}.Release|x64.Build.0 = Release|x64 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Debug|Win32.ActiveCfg = Debug|Win32 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Debug|Win32.Build.0 = Debug|Win32 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Debug|x64.ActiveCfg = Debug|x64 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Debug|x64.Build.0 = Debug|x64 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Release|Win32.ActiveCfg = Release|Win32 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Release|Win32.Build.0 = Release|Win32 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Release|x64.ActiveCfg = Release|x64 + {641C5F36-32EE-4323-B740-992B651CF9D6}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -437,6 +467,9 @@ Global {67CAA87B-7CF1-4F93-BB67-21C513F40803} = {43E7C20B-0BE5-4774-930A-B875BB50A587} {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B} = {4C3F0F90-CB04-4AC3-B49A-AD8CE115AC2A} {EA1D1B51-F067-3C93-8F54-669095725F4B} = {C9B5FF09-339F-46B2-BEE1-4704283CEFAC} + {65EBD877-099B-3F4E-9E5F-3D2EA6490307} = {8B78C654-0550-43A0-B0B0-82304584AB3F} + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F} = {8B78C654-0550-43A0-B0B0-82304584AB3F} + {641C5F36-32EE-4323-B740-992B651CF9D6} = {8B78C654-0550-43A0-B0B0-82304584AB3F} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {E6EA96F6-C769-42B8-B9C2-DDF3F46F5FA9} diff --git a/project/windows/dep/bson/bson-config.h b/project/windows/dep/bson/bson-config.h new file mode 100644 index 0000000..ea6a817 --- /dev/null +++ b/project/windows/dep/bson/bson-config.h @@ -0,0 +1,155 @@ +/* + * Copyright 2018-present MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#if !defined(BSON_INSIDE) && !defined(BSON_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef BSON_CONFIG_H +#define BSON_CONFIG_H + +/* + * Define to 1234 for Little Endian, 4321 for Big Endian. + */ +#define BSON_BYTE_ORDER 1234 + + +/* + * Define to 1 if you have stdbool.h + */ +#define BSON_HAVE_STDBOOL_H 0 +#if BSON_HAVE_STDBOOL_H != 1 +# undef BSON_HAVE_STDBOOL_H +#endif + + +/* + * Define to 1 for POSIX-like systems, 2 for Windows. + */ +#define BSON_OS 2 + + +/* + * Define to 1 if we have access to GCC 32-bit atomic builtins. + * While this requires GCC 4.1+ in most cases, it is also architecture + * dependent. For example, some PPC or ARM systems may not have it even + * if it is a recent GCC version. + */ +#define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 0 +#if BSON_HAVE_ATOMIC_32_ADD_AND_FETCH != 1 +# undef BSON_HAVE_ATOMIC_32_ADD_AND_FETCH +#endif + +/* + * Similarly, define to 1 if we have access to GCC 64-bit atomic builtins. + */ +#define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 0 +#if BSON_HAVE_ATOMIC_64_ADD_AND_FETCH != 1 +# undef BSON_HAVE_ATOMIC_64_ADD_AND_FETCH +#endif + + +/* + * Define to 1 if you have clock_gettime() available. + */ +#define BSON_HAVE_CLOCK_GETTIME 0 +#if BSON_HAVE_CLOCK_GETTIME != 1 +# undef BSON_HAVE_CLOCK_GETTIME +#endif + + +/* + * Define to 1 if you have strings.h available on your platform. + */ +#define BSON_HAVE_STRINGS_H 0 +#if BSON_HAVE_STRINGS_H != 1 +# undef BSON_HAVE_STRINGS_H +#endif + + +/* + * Define to 1 if you have strnlen available on your platform. + */ +#define BSON_HAVE_STRNLEN 0 +#if BSON_HAVE_STRNLEN != 1 +# undef BSON_HAVE_STRNLEN +#endif + + +/* + * Define to 1 if you have snprintf available on your platform. + */ +#define BSON_HAVE_SNPRINTF 1 +#if BSON_HAVE_SNPRINTF != 1 +# undef BSON_HAVE_SNPRINTF +#endif + + +/* + * Define to 1 if you have gmtime_r available on your platform. + */ +#define BSON_HAVE_GMTIME_R 0 +#if BSON_HAVE_GMTIME_R != 1 +# undef BSON_HAVE_GMTIME_R +#endif + + +/* + * Define to 1 if you have reallocf available on your platform. + */ +#define BSON_HAVE_REALLOCF 0 +#if BSON_HAVE_REALLOCF != 1 +# undef BSON_HAVE_REALLOCF +#endif + + +/* + * Define to 1 if you have struct timespec available on your platform. + */ +#define BSON_HAVE_TIMESPEC 1 +#if BSON_HAVE_TIMESPEC != 1 +# undef BSON_HAVE_TIMESPEC +#endif + + +/* + * Define to 1 if you want extra aligned types in libbson + */ +#define BSON_EXTRA_ALIGN 1 +#if BSON_EXTRA_ALIGN != 1 +# undef BSON_EXTRA_ALIGN +#endif + + +/* + * Define to 1 if you have SYS_gettid syscall + */ +#define BSON_HAVE_SYSCALL_TID 0 +#if BSON_HAVE_SYSCALL_TID != 1 +# undef BSON_HAVE_SYSCALL_TID +#endif + +#define BSON_HAVE_RAND_R 0 +#if BSON_HAVE_RAND_R != 1 +# undef BSON_HAVE_RAND_R +#endif + +#define BSON_HAVE_STRLCPY 0 +#if BSON_HAVE_STRLCPY != 1 +# undef BSON_HAVE_STRLCPY +#endif + +#endif /* BSON_CONFIG_H */ diff --git a/project/windows/dep/bson/bson-version.h b/project/windows/dep/bson/bson-version.h new file mode 100644 index 0000000..4581349 --- /dev/null +++ b/project/windows/dep/bson/bson-version.h @@ -0,0 +1,101 @@ +/* + * Copyright 2013 MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#if !defined (BSON_INSIDE) && !defined (BSON_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef BSON_VERSION_H +#define BSON_VERSION_H + + +/** + * BSON_MAJOR_VERSION: + * + * BSON major version component (e.g. 1 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MAJOR_VERSION (1) + + +/** + * BSON_MINOR_VERSION: + * + * BSON minor version component (e.g. 2 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MINOR_VERSION (17) + + +/** + * BSON_MICRO_VERSION: + * + * BSON micro version component (e.g. 3 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MICRO_VERSION (4) + + +/** + * BSON_PRERELEASE_VERSION: + * + * BSON prerelease version component (e.g. pre if %BSON_VERSION is 1.2.3-pre) + */ +#define BSON_PRERELEASE_VERSION () + +/** + * BSON_VERSION: + * + * BSON version. + */ +#define BSON_VERSION (1.17.4) + + +/** + * BSON_VERSION_S: + * + * BSON version, encoded as a string, useful for printing and + * concatenation. + */ +#define BSON_VERSION_S "1.17.4" + + +/** + * BSON_VERSION_HEX: + * + * BSON version, encoded as an hexadecimal number, useful for + * integer comparisons. + */ +#define BSON_VERSION_HEX (BSON_MAJOR_VERSION << 24 | \ + BSON_MINOR_VERSION << 16 | \ + BSON_MICRO_VERSION << 8) + + +/** + * BSON_CHECK_VERSION: + * @major: required major version + * @minor: required minor version + * @micro: required micro version + * + * Compile-time version checking. Evaluates to %TRUE if the version + * of BSON is greater than the required one. + */ +#define BSON_CHECK_VERSION(major,minor,micro) \ + (BSON_MAJOR_VERSION > (major) || \ + (BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION > (minor)) || \ + (BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION == (minor) && \ + BSON_MICRO_VERSION >= (micro))) + +#endif /* BSON_VERSION_H */ diff --git a/project/windows/dep/bson/bson.vcxproj b/project/windows/dep/bson/bson.vcxproj new file mode 100644 index 0000000..20b6dd6 --- /dev/null +++ b/project/windows/dep/bson/bson.vcxproj @@ -0,0 +1,249 @@ + + + + + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {044F3BF3-94AD-3F0B-9E3C-AF4DA3F5258F} + 10.0 + Win32Proj + x64 + bson + NoUpgrade + + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + + + + + + + + <_ProjectFileVersion>10.0.20506.1 + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + + $(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(IntDir) + EnableFastChecks + ProgramDatabase + + + Disabled + Disabled + NotUsing + MultiThreadedDebug + false + Level3 + WIN32;_WINDOWS;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;%(PreprocessorDefinitions) + + + WIN32;_DEBUG;_WINDOWS;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;CMAKE_INTDIR=\"Debug\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(IntDir) + EnableFastChecks + ProgramDatabase + + + Disabled + Disabled + NotUsing + MultiThreadedDebug + false + Level3 + WIN32;_WINDOWS;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;%(PreprocessorDefinitions) + + + WIN32;_DEBUG;_WINDOWS;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;CMAKE_INTDIR=\"Debug\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + AnySuitable + MaxSpeed + MultiThreaded + false + Level3 + WIN32;_WINDOWS;NDEBUG;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;%(PreprocessorDefinitions) + + + + + WIN32;_WINDOWS;NDEBUG;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;CMAKE_INTDIR=\"Release\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + AnySuitable + MaxSpeed + MultiThreaded + false + Level3 + WIN32;_WINDOWS;NDEBUG;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;%(PreprocessorDefinitions) + + + + + WIN32;_WINDOWS;NDEBUG;BSON_STATIC;BSON_COMPILATION;JSONSL_PARSE_NAN;COMMON_PREFIX_=_bson_common;CMAKE_INTDIR=\"Release\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\..\..\src\common;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/windows/dep/bson/bson.vcxproj.filters b/project/windows/dep/bson/bson.vcxproj.filters new file mode 100644 index 0000000..06461e2 --- /dev/null +++ b/project/windows/dep/bson/bson.vcxproj.filters @@ -0,0 +1,171 @@ + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + {3BC26B2C-D73B-37B7-86D2-22E27386D404} + + + {907D44D8-0E2D-3D9A-A3E5-830CC375CB7A} + + + \ No newline at end of file diff --git a/project/windows/dep/bson/bson.vcxproj.user b/project/windows/dep/bson/bson.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/project/windows/dep/bson/bson.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/project/windows/dep/libwebp/libwebp.vcxproj b/project/windows/dep/libwebp/libwebp.vcxproj index 29158e9..0fbd7b3 100644 --- a/project/windows/dep/libwebp/libwebp.vcxproj +++ b/project/windows/dep/libwebp/libwebp.vcxproj @@ -214,37 +214,37 @@ - - + + false - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/windows/dep/libwebp/libwebp.vcxproj.filters b/project/windows/dep/libwebp/libwebp.vcxproj.filters index 19e7a68..10923ad 100644 --- a/project/windows/dep/libwebp/libwebp.vcxproj.filters +++ b/project/windows/dep/libwebp/libwebp.vcxproj.filters @@ -31,91 +31,91 @@ Source Files - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\utils - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp - + Source Files\dsp diff --git a/project/windows/dep/libzmq/libzmq.vcxproj b/project/windows/dep/libzmq/libzmq.vcxproj new file mode 100644 index 0000000..39898b3 --- /dev/null +++ b/project/windows/dep/libzmq/libzmq.vcxproj @@ -0,0 +1,299 @@ + + + + {641C5F36-32EE-4323-B740-992B651CF9D6} + libzmq + v142 + 10.0 + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + StaticLibrary + DynamicLibrary + + + + + true + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + + ZMQ_USE_CV_IMPL_WIN32API;ZMQ_IOTHREAD_POLLER_USE_SELECT;ZMQ_POLL_BASED_ON_SELECT;ZMQ_STATIC;ZMQ_HAVE_WINDOWS;ZMQ_USE_TWEETNACL;ZMQ_USE_CV_IMPL_WIN32API;ZMQ_IOTHREAD_POLLER_USE_SELECT;ZMQ_POLL_BASED_ON_SELECT;ZMQ_STATIC;ZMQ_HAVE_WINDOWS;%(PreprocessorDefinitions);%(PreprocessorDefinitions);%(PreprocessorDefinitions) + MultiThreaded + $(SolutionDir)dependent\libzmq\src;$(SolutionDir)project\windows\dep\libzmq;%(AdditionalIncludeDirectories) + NotUsing + + + + + + MultiThreadedDebug + ZMQ_USE_CV_IMPL_WIN32API;ZMQ_IOTHREAD_POLLER_USE_SELECT;ZMQ_POLL_BASED_ON_SELECT;ZMQ_STATIC;ZMQ_HAVE_WINDOWS;ZMQ_USE_TWEETNACL;;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)dependent\libzmq\src;$(SolutionDir)project\windows\dep\libzmq;%(AdditionalIncludeDirectories) + NotUsing + + + + + + MultiThreadedDebug + ZMQ_USE_CV_IMPL_WIN32API;ZMQ_IOTHREAD_POLLER_USE_SELECT;ZMQ_POLL_BASED_ON_SELECT;ZMQ_STATIC;ZMQ_HAVE_WINDOWS;ZMQ_USE_TWEETNACL;;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)dependent\libzmq\src;$(SolutionDir)project\windows\dep\libzmq;%(AdditionalIncludeDirectories) + NotUsing + + + + + + MultiThreaded + ZMQ_USE_CV_IMPL_WIN32API;ZMQ_IOTHREAD_POLLER_USE_SELECT;ZMQ_POLL_BASED_ON_SELECT;ZMQ_STATIC;ZMQ_HAVE_WINDOWS;ZMQ_USE_TWEETNACL;;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)dependent\libzmq\src;$(SolutionDir)project\windows\dep\libzmq;%(AdditionalIncludeDirectories) + NotUsing + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NotUsing + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project/windows/dep/libzmq/libzmq.vcxproj.filters b/project/windows/dep/libzmq/libzmq.vcxproj.filters new file mode 100644 index 0000000..2941494 --- /dev/null +++ b/project/windows/dep/libzmq/libzmq.vcxproj.filters @@ -0,0 +1,624 @@ + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + src\include + + + include + + + include + + + + + {f7e88c6c-e408-4631-959c-fe3568656d70} + + + {35f0c644-e1d8-4a46-bb33-06bb8b645fff} + + + {90853975-3420-4f06-8be4-4ab3d9792160} + + + \ No newline at end of file diff --git a/project/windows/dep/libzmq/libzmq.vcxproj.user b/project/windows/dep/libzmq/libzmq.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/project/windows/dep/libzmq/libzmq.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/project/windows/dep/libzmq/platform.hpp b/project/windows/dep/libzmq/platform.hpp new file mode 100644 index 0000000..c0da4a8 --- /dev/null +++ b/project/windows/dep/libzmq/platform.hpp @@ -0,0 +1,14 @@ +#ifndef __PLATFORM_HPP_INCLUDED__ +#define __PLATFORM_HPP_INCLUDED__ + +//#define ZMQ_HAVE_WINDOWS + +// MSVC build configuration is controlled via options exposed in the Visual +// Studio user interface. The option to use libsodium is not exposed in the +// user interface unless a sibling `libsodium` directory to that of this +// repository exists and contains the following files: +// +// \builds\msvc\vs2015\libsodium.import.props +// \builds\msvc\vs2015\libsodium.import.xml + +#endif diff --git a/project/windows/dep/mongoc/mongoc-config.h b/project/windows/dep/mongoc/mongoc-config.h new file mode 100644 index 0000000..33c1d0a --- /dev/null +++ b/project/windows/dep/mongoc/mongoc-config.h @@ -0,0 +1,414 @@ +/* + * Copyright 2013 MongoDB Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#if !defined(MONGOC_INSIDE) && !defined(MONGOC_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef MONGOC_CONFIG_H +#define MONGOC_CONFIG_H + +/* MONGOC_USER_SET_CFLAGS is set from config based on what compiler flags were + * used to compile mongoc */ +#define MONGOC_USER_SET_CFLAGS "/DWIN32 /D_WINDOWS /W3" + +#define MONGOC_USER_SET_LDFLAGS "/machine:x64" + +/* MONGOC_CC is used to determine what C compiler was used to compile mongoc */ +#define MONGOC_CC "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" + +/* + * MONGOC_ENABLE_SSL_SECURE_CHANNEL is set from configure to determine if we are + * compiled with Native SSL support on Windows + */ +#define MONGOC_ENABLE_SSL_SECURE_CHANNEL 1 + +#if MONGOC_ENABLE_SSL_SECURE_CHANNEL != 1 +# undef MONGOC_ENABLE_SSL_SECURE_CHANNEL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_CNG is set from configure to determine if we are + * compiled with Native Crypto support on Windows + */ +#define MONGOC_ENABLE_CRYPTO_CNG 1 + +#if MONGOC_ENABLE_CRYPTO_CNG != 1 +# undef MONGOC_ENABLE_CRYPTO_CNG +#endif + + +/* + * MONGOC_ENABLE_SSL_SECURE_TRANSPORT is set from configure to determine if we are + * compiled with Native SSL support on Darwin + */ +#define MONGOC_ENABLE_SSL_SECURE_TRANSPORT 0 + +#if MONGOC_ENABLE_SSL_SECURE_TRANSPORT != 1 +# undef MONGOC_ENABLE_SSL_SECURE_TRANSPORT +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO is set from configure to determine if we are + * compiled with Native Crypto support on Darwin + */ +#define MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO 0 + +#if MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO +#endif + + +/* + * MONGOC_ENABLE_SSL_LIBRESSL is set from configure to determine if we are + * compiled with LibreSSL support. + */ +#define MONGOC_ENABLE_SSL_LIBRESSL 0 + +#if MONGOC_ENABLE_SSL_LIBRESSL != 1 +# undef MONGOC_ENABLE_SSL_LIBRESSL +#endif + + +/* + * MONGOC_ENABLE_SSL_OPENSSL is set from configure to determine if we are + * compiled with OpenSSL support. + */ +#define MONGOC_ENABLE_SSL_OPENSSL 0 + +#if MONGOC_ENABLE_SSL_OPENSSL != 1 +# undef MONGOC_ENABLE_SSL_OPENSSL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_LIBCRYPTO is set from configure to determine if we are + * compiled with OpenSSL support. + */ +#define MONGOC_ENABLE_CRYPTO_LIBCRYPTO 0 + +#if MONGOC_ENABLE_CRYPTO_LIBCRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO_LIBCRYPTO +#endif + + +/* + * MONGOC_ENABLE_SSL is set from configure to determine if we are + * compiled with any SSL support. + */ +#define MONGOC_ENABLE_SSL 1 + +#if MONGOC_ENABLE_SSL != 1 +# undef MONGOC_ENABLE_SSL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO is set from configure to determine if we are + * compiled with any crypto support. + */ +#define MONGOC_ENABLE_CRYPTO 1 + +#if MONGOC_ENABLE_CRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO +#endif + + +/* + * Use system crypto profile + */ +#define MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE 0 + +#if MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE != 1 +# undef MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE +#endif + + +/* + * Use ASN1_STRING_get0_data () rather than the deprecated ASN1_STRING_data + */ +#define MONGOC_HAVE_ASN1_STRING_GET0_DATA 0 + +#if MONGOC_HAVE_ASN1_STRING_GET0_DATA != 1 +# undef MONGOC_HAVE_ASN1_STRING_GET0_DATA +#endif + + +/* + * MONGOC_ENABLE_SASL is set from configure to determine if we are + * compiled with SASL support. + */ +#define MONGOC_ENABLE_SASL 1 + +#if MONGOC_ENABLE_SASL != 1 +# undef MONGOC_ENABLE_SASL +#endif + + +/* + * MONGOC_ENABLE_SASL_CYRUS is set from configure to determine if we are + * compiled with Cyrus SASL support. + */ +#define MONGOC_ENABLE_SASL_CYRUS 0 + +#if MONGOC_ENABLE_SASL_CYRUS != 1 +# undef MONGOC_ENABLE_SASL_CYRUS +#endif + + +/* + * MONGOC_ENABLE_SASL_SSPI is set from configure to determine if we are + * compiled with SSPI support. + */ +#define MONGOC_ENABLE_SASL_SSPI 1 + +#if MONGOC_ENABLE_SASL_SSPI != 1 +# undef MONGOC_ENABLE_SASL_SSPI +#endif + +/* + * MONGOC_HAVE_SASL_CLIENT_DONE is set from configure to determine if we + * have SASL and its version is new enough to use sasl_client_done (), + * which supersedes sasl_done (). + */ +#define MONGOC_HAVE_SASL_CLIENT_DONE 0 + +#if MONGOC_HAVE_SASL_CLIENT_DONE != 1 +# undef MONGOC_HAVE_SASL_CLIENT_DONE +#endif + + +/* + * Disable automatic calls to mongoc_init() and mongoc_cleanup() + * before main() is called, and after exit() (respectively). + */ +#define MONGOC_NO_AUTOMATIC_GLOBALS 0 + +#if MONGOC_NO_AUTOMATIC_GLOBALS != 1 +# undef MONGOC_NO_AUTOMATIC_GLOBALS +#endif + +/* + * MONGOC_HAVE_SOCKLEN is set from configure to determine if we + * need to emulate the type. + */ +#define MONGOC_HAVE_SOCKLEN 1 + +#if MONGOC_HAVE_SOCKLEN != 1 +# undef MONGOC_HAVE_SOCKLEN +#endif + + +/* + * MONGOC_HAVE_DNSAPI is set from configure to determine if we should use the + * Windows dnsapi for SRV record lookups. + */ +#define MONGOC_HAVE_DNSAPI 1 + +#if MONGOC_HAVE_DNSAPI != 1 +# undef MONGOC_HAVE_DNSAPI +#endif + + +/* + * MONGOC_HAVE_RES_NSEARCH is set from configure to determine if we + * have thread-safe res_nsearch(). + */ +#define MONGOC_HAVE_RES_NSEARCH 0 + +#if MONGOC_HAVE_RES_NSEARCH != 1 +# undef MONGOC_HAVE_RES_NSEARCH +#endif + + +/* + * MONGOC_HAVE_RES_NDESTROY is set from configure to determine if we + * have BSD / Darwin's res_ndestroy(). + */ +#define MONGOC_HAVE_RES_NDESTROY 0 + +#if MONGOC_HAVE_RES_NDESTROY != 1 +# undef MONGOC_HAVE_RES_NDESTROY +#endif + + +/* + * MONGOC_HAVE_RES_NCLOSE is set from configure to determine if we + * have Linux's res_nclose(). + */ +#define MONGOC_HAVE_RES_NCLOSE 0 + +#if MONGOC_HAVE_RES_NCLOSE != 1 +# undef MONGOC_HAVE_RES_NCLOSE +#endif + + +/* + * MONGOC_HAVE_RES_SEARCH is set from configure to determine if we + * have thread-unsafe res_search(). It's unset if we have the preferred + * res_nsearch(). + */ +#define MONGOC_HAVE_RES_SEARCH 0 + +#if MONGOC_HAVE_RES_SEARCH != 1 +# undef MONGOC_HAVE_RES_SEARCH +#endif + + +/* + * Set from configure, see + * https://curl.haxx.se/mail/lib-2009-04/0287.html + */ +#define MONGOC_SOCKET_ARG2 struct sockaddr +#define MONGOC_SOCKET_ARG3 socklen_t + +/* + * Enable wire protocol compression negotiation + * + */ +#define MONGOC_ENABLE_COMPRESSION 1 + +#if MONGOC_ENABLE_COMPRESSION != 1 +# undef MONGOC_ENABLE_COMPRESSION +#endif + +/* + * Set if we have snappy compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_SNAPPY 0 + +#if MONGOC_ENABLE_COMPRESSION_SNAPPY != 1 +# undef MONGOC_ENABLE_COMPRESSION_SNAPPY +#endif + + +/* + * Set if we have zlib compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_ZLIB 1 + +#if MONGOC_ENABLE_COMPRESSION_ZLIB != 1 +# undef MONGOC_ENABLE_COMPRESSION_ZLIB +#endif + +/* + * Set if we have zstd compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_ZSTD 0 + +#if MONGOC_ENABLE_COMPRESSION_ZSTD != 1 +# undef MONGOC_ENABLE_COMPRESSION_ZSTD +#endif + +/* + * Set if performance counters are available and not disabled. + * + */ +#define MONGOC_ENABLE_SHM_COUNTERS 0 + +#if MONGOC_ENABLE_SHM_COUNTERS != 1 +# undef MONGOC_ENABLE_SHM_COUNTERS +#endif + +/* + * Set if we have enabled fast counters on Intel using the RDTSCP instruction + * + */ +#define MONGOC_ENABLE_RDTSCP 0 + +#if MONGOC_ENABLE_RDTSCP != 1 +# undef MONGOC_ENABLE_RDTSCP +#endif + + +/* + * Set if we have the sched_getcpu() function for use with counters + * + */ +#define MONGOC_HAVE_SCHED_GETCPU 0 + +#if MONGOC_HAVE_SCHED_GETCPU != 1 +# undef MONGOC_HAVE_SCHED_GETCPU +#endif + +/* + * Set if tracing is enabled. Logs things like network communication and + * entry/exit of certain functions. + * + */ +#define MONGOC_TRACE 0 + +#if MONGOC_TRACE != 1 +# undef MONGOC_TRACE +#endif + +/* + * Set if we have ICU support. + */ +#define MONGOC_ENABLE_ICU 0 + +#if MONGOC_ENABLE_ICU != 1 +# undef MONGOC_ENABLE_ICU +#endif + + +/* + * Set if we have Client Side Encryption support. + */ + +#define MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION 0 + +#if MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION != 1 +# undef MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION +#endif + + +/* + * Set if struct sockaddr_storage has __ss_family (instead of ss_family) + */ + +#define MONGOC_HAVE_SS_FAMILY 0 + +#if MONGOC_HAVE_SS_FAMILY != 1 +# undef MONGOC_HAVE_SS_FAMILY +#endif + +/* + * Set if building with AWS IAM support. + */ +#define MONGOC_ENABLE_MONGODB_AWS_AUTH 1 + +#if MONGOC_ENABLE_MONGODB_AWS_AUTH != 1 +# undef MONGOC_ENABLE_MONGODB_AWS_AUTH +#endif + +/* + * NOTICE: + * If you're about to update this file and add a config flag, make sure to + * update: + * o The bitfield in mongoc-handshake-private.h + * o _mongoc_handshake_get_config_hex_string() in mongoc-handshake.c + * o examples/parse_handshake_cfg.py + * o test_handshake_config_string in test-mongoc-handshake.c + */ + +#endif /* MONGOC_CONFIG_H */ diff --git a/project/windows/dep/mongoc/mongoc-version.h b/project/windows/dep/mongoc/mongoc-version.h new file mode 100644 index 0000000..814ba8e --- /dev/null +++ b/project/windows/dep/mongoc/mongoc-version.h @@ -0,0 +1,102 @@ +/* + * Copyright 2013 MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef MONGOC_VERSION_H +#define MONGOC_VERSION_H + + +/** + * MONGOC_MAJOR_VERSION: + * + * MONGOC major version component (e.g. 1 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MAJOR_VERSION (1) + + +/** + * MONGOC_MINOR_VERSION: + * + * MONGOC minor version component (e.g. 2 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MINOR_VERSION (17) + + +/** + * MONGOC_MICRO_VERSION: + * + * MONGOC micro version component (e.g. 3 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MICRO_VERSION (4) + + +/** + * MONGOC_PRERELEASE_VERSION: + * + * MONGOC prerelease version component (e.g. pre if %MONGOC_VERSION is 1.2.3-pre) + */ +#define MONGOC_PRERELEASE_VERSION () + + +/** + * MONGOC_VERSION: + * + * MONGOC version. + */ +#define MONGOC_VERSION (1.17.4) + + +/** + * MONGOC_VERSION_S: + * + * MONGOC version, encoded as a string, useful for printing and + * concatenation. + */ +#define MONGOC_VERSION_S "1.17.4" + + +/** + * MONGOC_VERSION_HEX: + * + * MONGOC version, encoded as an hexadecimal number, useful for + * integer comparisons. + */ +#define MONGOC_VERSION_HEX (MONGOC_MAJOR_VERSION << 24 | \ + MONGOC_MINOR_VERSION << 16 | \ + MONGOC_MICRO_VERSION << 8) + + +/** + * MONGOC_CHECK_VERSION: + * @major: required major version + * @minor: required minor version + * @micro: required micro version + * + * Compile-time version checking. Evaluates to %TRUE if the version + * of MONGOC is greater than the required one. + */ +#define MONGOC_CHECK_VERSION(major,minor,micro) \ + (MONGOC_MAJOR_VERSION > (major) || \ + (MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION > (minor)) || \ + (MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION == (minor) && \ + MONGOC_MICRO_VERSION >= (micro))) + +#endif /* MONGOC_VERSION_H */ diff --git a/project/windows/dep/mongoc/mongoc.vcxproj b/project/windows/dep/mongoc/mongoc.vcxproj new file mode 100644 index 0000000..6d7c0ce --- /dev/null +++ b/project/windows/dep/mongoc/mongoc.vcxproj @@ -0,0 +1,412 @@ + + + + + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {65EBD877-099B-3F4E-9E5F-3D2EA6490307} + 10.0 + Win32Proj + x64 + mongoc + NoUpgrade + + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + StaticLibrary + MultiByte + v142 + + + + + + + + + + <_ProjectFileVersion>10.0.20506.1 + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + .$(Platform)\$(Configuration)\ + .$(Platform)\$(Configuration)\ + + + + $(SolutionDir)project\windows\dep\mongoc;$(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;%(AdditionalIncludeDirectories) + $(IntDir) + EnableFastChecks + ProgramDatabase + + + Disabled + Disabled + NotUsing + MultiThreadedDebug + false + WIN32;_WINDOWS;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;%(PreprocessorDefinitions) + + + WIN32;_DEBUG;_WINDOWS;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;CMAKE_INTDIR=\"Debug\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\mongoc;$(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;%(AdditionalIncludeDirectories) + $(IntDir) + EnableFastChecks + ProgramDatabase + + + Disabled + Disabled + NotUsing + MultiThreadedDebug + false + WIN32;_WINDOWS;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;%(PreprocessorDefinitions) + + + WIN32;_DEBUG;_WINDOWS;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;CMAKE_INTDIR=\"Debug\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\mongoc;$(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;%(AdditionalIncludeDirectories) + + + AnySuitable + MaxSpeed + NotUsing + MultiThreaded + false + WIN32;_WINDOWS;NDEBUG;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;%(PreprocessorDefinitions) + + + + + WIN32;_WINDOWS;NDEBUG;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;CMAKE_INTDIR=\"Release\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + $(SolutionDir)project\windows\dep\mongoc;$(SolutionDir)project\windows\dep\;$(SolutionDir)project\windows\dep\bson;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;%(AdditionalIncludeDirectories) + $(IntDir) + + + AnySuitable + MaxSpeed + NotUsing + MultiThreaded + false + WIN32;_WINDOWS;NDEBUG;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;%(PreprocessorDefinitions) + + + + + WIN32;_WINDOWS;NDEBUG;MONGOC_STATIC;BSON_STATIC;MONGOC_COMPILATION;KMS_MSG_STATIC;KMS_MESSAGE_ENABLE_CRYPTO;KMS_MESSAGE_ENABLE_CRYPTO_CNG;_CRT_SECURE_NO_WARNINGS;_GNU_SOURCE;_BSD_SOURCE;_DEFAULT_SOURCE;COMMON_PREFIX_=_mongoc_common;CMAKE_INTDIR=\"Release\";%(PreprocessorDefinitions) + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + + + $(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libmongoc\src\mongoc;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\..\src\common;$(SolutionDir)dependent\mongo-c-driver\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\zlib-1.2.11;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\..\kms-message\src;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src;$(SolutionDir)dependent\mongo-c-driver\cmake-build\src\libbson\src\bson;%(AdditionalIncludeDirectories) + $(ProjectDir)/$(IntDir) + %(Filename).h + %(Filename).tlb + %(Filename)_i.c + %(Filename)_p.c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {044f3bf3-94ad-3f0b-9e3c-af4da3f5258f} + + + + + + \ No newline at end of file diff --git a/project/windows/dep/mongoc/mongoc.vcxproj.filters b/project/windows/dep/mongoc/mongoc.vcxproj.filters new file mode 100644 index 0000000..0e5d37e --- /dev/null +++ b/project/windows/dep/mongoc/mongoc.vcxproj.filters @@ -0,0 +1,543 @@ + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + {3BC26B2C-D73B-37B7-86D2-22E27386D404} + + + {907D44D8-0E2D-3D9A-A3E5-830CC375CB7A} + + + \ No newline at end of file diff --git a/project/windows/dep/mongoc/mongoc.vcxproj.user b/project/windows/dep/mongoc/mongoc.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/project/windows/dep/mongoc/mongoc.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/project/windows/dep/mongoc/zconf.h b/project/windows/dep/mongoc/zconf.h new file mode 100644 index 0000000..5e1d68a --- /dev/null +++ b/project/windows/dep/mongoc/zconf.h @@ -0,0 +1,534 @@ +/* zconf.h -- configuration of the zlib compression library + * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +/* @(#) $Id$ */ + +#ifndef ZCONF_H +#define ZCONF_H + +/* + * If you *really* need a unique prefix for all types and library functions, + * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. + * Even better than compiling with -DZ_PREFIX would be to use configure to set + * this permanently in zconf.h using "./configure --zprefix". + */ +#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ +# define Z_PREFIX_SET + +/* all linked symbols and init macros */ +# define _dist_code z__dist_code +# define _length_code z__length_code +# define _tr_align z__tr_align +# define _tr_flush_bits z__tr_flush_bits +# define _tr_flush_block z__tr_flush_block +# define _tr_init z__tr_init +# define _tr_stored_block z__tr_stored_block +# define _tr_tally z__tr_tally +# define adler32 z_adler32 +# define adler32_combine z_adler32_combine +# define adler32_combine64 z_adler32_combine64 +# define adler32_z z_adler32_z +# ifndef Z_SOLO +# define compress z_compress +# define compress2 z_compress2 +# define compressBound z_compressBound +# endif +# define crc32 z_crc32 +# define crc32_combine z_crc32_combine +# define crc32_combine64 z_crc32_combine64 +# define crc32_z z_crc32_z +# define deflate z_deflate +# define deflateBound z_deflateBound +# define deflateCopy z_deflateCopy +# define deflateEnd z_deflateEnd +# define deflateGetDictionary z_deflateGetDictionary +# define deflateInit z_deflateInit +# define deflateInit2 z_deflateInit2 +# define deflateInit2_ z_deflateInit2_ +# define deflateInit_ z_deflateInit_ +# define deflateParams z_deflateParams +# define deflatePending z_deflatePending +# define deflatePrime z_deflatePrime +# define deflateReset z_deflateReset +# define deflateResetKeep z_deflateResetKeep +# define deflateSetDictionary z_deflateSetDictionary +# define deflateSetHeader z_deflateSetHeader +# define deflateTune z_deflateTune +# define deflate_copyright z_deflate_copyright +# define get_crc_table z_get_crc_table +# ifndef Z_SOLO +# define gz_error z_gz_error +# define gz_intmax z_gz_intmax +# define gz_strwinerror z_gz_strwinerror +# define gzbuffer z_gzbuffer +# define gzclearerr z_gzclearerr +# define gzclose z_gzclose +# define gzclose_r z_gzclose_r +# define gzclose_w z_gzclose_w +# define gzdirect z_gzdirect +# define gzdopen z_gzdopen +# define gzeof z_gzeof +# define gzerror z_gzerror +# define gzflush z_gzflush +# define gzfread z_gzfread +# define gzfwrite z_gzfwrite +# define gzgetc z_gzgetc +# define gzgetc_ z_gzgetc_ +# define gzgets z_gzgets +# define gzoffset z_gzoffset +# define gzoffset64 z_gzoffset64 +# define gzopen z_gzopen +# define gzopen64 z_gzopen64 +# ifdef _WIN32 +# define gzopen_w z_gzopen_w +# endif +# define gzprintf z_gzprintf +# define gzputc z_gzputc +# define gzputs z_gzputs +# define gzread z_gzread +# define gzrewind z_gzrewind +# define gzseek z_gzseek +# define gzseek64 z_gzseek64 +# define gzsetparams z_gzsetparams +# define gztell z_gztell +# define gztell64 z_gztell64 +# define gzungetc z_gzungetc +# define gzvprintf z_gzvprintf +# define gzwrite z_gzwrite +# endif +# define inflate z_inflate +# define inflateBack z_inflateBack +# define inflateBackEnd z_inflateBackEnd +# define inflateBackInit z_inflateBackInit +# define inflateBackInit_ z_inflateBackInit_ +# define inflateCodesUsed z_inflateCodesUsed +# define inflateCopy z_inflateCopy +# define inflateEnd z_inflateEnd +# define inflateGetDictionary z_inflateGetDictionary +# define inflateGetHeader z_inflateGetHeader +# define inflateInit z_inflateInit +# define inflateInit2 z_inflateInit2 +# define inflateInit2_ z_inflateInit2_ +# define inflateInit_ z_inflateInit_ +# define inflateMark z_inflateMark +# define inflatePrime z_inflatePrime +# define inflateReset z_inflateReset +# define inflateReset2 z_inflateReset2 +# define inflateResetKeep z_inflateResetKeep +# define inflateSetDictionary z_inflateSetDictionary +# define inflateSync z_inflateSync +# define inflateSyncPoint z_inflateSyncPoint +# define inflateUndermine z_inflateUndermine +# define inflateValidate z_inflateValidate +# define inflate_copyright z_inflate_copyright +# define inflate_fast z_inflate_fast +# define inflate_table z_inflate_table +# ifndef Z_SOLO +# define uncompress z_uncompress +# define uncompress2 z_uncompress2 +# endif +# define zError z_zError +# ifndef Z_SOLO +# define zcalloc z_zcalloc +# define zcfree z_zcfree +# endif +# define zlibCompileFlags z_zlibCompileFlags +# define zlibVersion z_zlibVersion + +/* all zlib typedefs in zlib.h and zconf.h */ +# define Byte z_Byte +# define Bytef z_Bytef +# define alloc_func z_alloc_func +# define charf z_charf +# define free_func z_free_func +# ifndef Z_SOLO +# define gzFile z_gzFile +# endif +# define gz_header z_gz_header +# define gz_headerp z_gz_headerp +# define in_func z_in_func +# define intf z_intf +# define out_func z_out_func +# define uInt z_uInt +# define uIntf z_uIntf +# define uLong z_uLong +# define uLongf z_uLongf +# define voidp z_voidp +# define voidpc z_voidpc +# define voidpf z_voidpf + +/* all zlib structs in zlib.h and zconf.h */ +# define gz_header_s z_gz_header_s +# define internal_state z_internal_state + +#endif + +#if defined(__MSDOS__) && !defined(MSDOS) +# define MSDOS +#endif +#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) +# define OS2 +#endif +#if defined(_WINDOWS) && !defined(WINDOWS) +# define WINDOWS +#endif +#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) +# ifndef WIN32 +# define WIN32 +# endif +#endif +#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) +# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) +# ifndef SYS16BIT +# define SYS16BIT +# endif +# endif +#endif + +/* + * Compile with -DMAXSEG_64K if the alloc function cannot allocate more + * than 64k bytes at a time (needed on systems with 16-bit int). + */ +#ifdef SYS16BIT +# define MAXSEG_64K +#endif +#ifdef MSDOS +# define UNALIGNED_OK +#endif + +#ifdef __STDC_VERSION__ +# ifndef STDC +# define STDC +# endif +# if __STDC_VERSION__ >= 199901L +# ifndef STDC99 +# define STDC99 +# endif +# endif +#endif +#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) +# define STDC +#endif +#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) +# define STDC +#endif +#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) +# define STDC +#endif +#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) +# define STDC +#endif + +#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ +# define STDC +#endif + +#ifndef STDC +# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ +# define const /* note: need a more gentle solution here */ +# endif +#endif + +#if defined(ZLIB_CONST) && !defined(z_const) +# define z_const const +#else +# define z_const +#endif + +#ifdef Z_SOLO + typedef unsigned long z_size_t; +#else +# define z_longlong long long +# if defined(NO_SIZE_T) + typedef unsigned NO_SIZE_T z_size_t; +# elif defined(STDC) +# include + typedef size_t z_size_t; +# else + typedef unsigned long z_size_t; +# endif +# undef z_longlong +#endif + +/* Maximum value for memLevel in deflateInit2 */ +#ifndef MAX_MEM_LEVEL +# ifdef MAXSEG_64K +# define MAX_MEM_LEVEL 8 +# else +# define MAX_MEM_LEVEL 9 +# endif +#endif + +/* Maximum value for windowBits in deflateInit2 and inflateInit2. + * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files + * created by gzip. (Files created by minigzip can still be extracted by + * gzip.) + */ +#ifndef MAX_WBITS +# define MAX_WBITS 15 /* 32K LZ77 window */ +#endif + +/* The memory requirements for deflate are (in bytes): + (1 << (windowBits+2)) + (1 << (memLevel+9)) + that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) + plus a few kilobytes for small objects. For example, if you want to reduce + the default memory requirements from 256K to 128K, compile with + make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" + Of course this will generally degrade compression (there's no free lunch). + + The memory requirements for inflate are (in bytes) 1 << windowBits + that is, 32K for windowBits=15 (default value) plus about 7 kilobytes + for small objects. +*/ + + /* Type declarations */ + +#ifndef OF /* function prototypes */ +# ifdef STDC +# define OF(args) args +# else +# define OF(args) () +# endif +#endif + +#ifndef Z_ARG /* function prototypes for stdarg */ +# if defined(STDC) || defined(Z_HAVE_STDARG_H) +# define Z_ARG(args) args +# else +# define Z_ARG(args) () +# endif +#endif + +/* The following definitions for FAR are needed only for MSDOS mixed + * model programming (small or medium model with some far allocations). + * This was tested only with MSC; for other MSDOS compilers you may have + * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, + * just define FAR to be empty. + */ +#ifdef SYS16BIT +# if defined(M_I86SM) || defined(M_I86MM) + /* MSC small or medium model */ +# define SMALL_MEDIUM +# ifdef _MSC_VER +# define FAR _far +# else +# define FAR far +# endif +# endif +# if (defined(__SMALL__) || defined(__MEDIUM__)) + /* Turbo C small or medium model */ +# define SMALL_MEDIUM +# ifdef __BORLANDC__ +# define FAR _far +# else +# define FAR far +# endif +# endif +#endif + +#if defined(WINDOWS) || defined(WIN32) + /* 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 +# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) +# ifdef ZLIB_INTERNAL +# define ZEXTERN extern __declspec(dllexport) +# else +# define ZEXTERN extern __declspec(dllimport) +# endif +# endif +# endif /* ZLIB_DLL */ + /* If building or using zlib with the WINAPI/WINAPIV calling convention, + * define ZLIB_WINAPI. + * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. + */ +# ifdef ZLIB_WINAPI +# ifdef FAR +# undef FAR +# endif +# include + /* No need for _export, use ZLIB.DEF instead. */ + /* For complete Windows compatibility, use WINAPI, not __stdcall. */ +# define ZEXPORT WINAPI +# ifdef WIN32 +# define ZEXPORTVA WINAPIV +# else +# define ZEXPORTVA FAR CDECL +# endif +# endif +#endif + +#if defined (__BEOS__) +# ifdef ZLIB_DLL +# ifdef ZLIB_INTERNAL +# define ZEXPORT __declspec(dllexport) +# define ZEXPORTVA __declspec(dllexport) +# else +# define ZEXPORT __declspec(dllimport) +# define ZEXPORTVA __declspec(dllimport) +# endif +# endif +#endif + +#ifndef ZEXTERN +# define ZEXTERN extern +#endif +#ifndef ZEXPORT +# define ZEXPORT +#endif +#ifndef ZEXPORTVA +# define ZEXPORTVA +#endif + +#ifndef FAR +# define FAR +#endif + +#if !defined(__MACTYPES__) +typedef unsigned char Byte; /* 8 bits */ +#endif +typedef unsigned int uInt; /* 16 bits or more */ +typedef unsigned long uLong; /* 32 bits or more */ + +#ifdef SMALL_MEDIUM + /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ +# define Bytef Byte FAR +#else + typedef Byte FAR Bytef; +#endif +typedef char FAR charf; +typedef int FAR intf; +typedef uInt FAR uIntf; +typedef uLong FAR uLongf; + +#ifdef STDC + typedef void const *voidpc; + typedef void FAR *voidpf; + typedef void *voidp; +#else + typedef Byte const *voidpc; + typedef Byte FAR *voidpf; + typedef Byte *voidp; +#endif + +#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) +# include +# if (UINT_MAX == 0xffffffffUL) +# define Z_U4 unsigned +# elif (ULONG_MAX == 0xffffffffUL) +# define Z_U4 unsigned long +# elif (USHRT_MAX == 0xffffffffUL) +# define Z_U4 unsigned short +# endif +#endif + +#ifdef Z_U4 + typedef Z_U4 z_crc_t; +#else + typedef unsigned long z_crc_t; +#endif + +#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ +# define Z_HAVE_UNISTD_H +#endif + +#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ +# define Z_HAVE_STDARG_H +#endif + +#ifdef STDC +# ifndef Z_SOLO +# include /* for off_t */ +# endif +#endif + +#if defined(STDC) || defined(Z_HAVE_STDARG_H) +# ifndef Z_SOLO +# include /* for va_list */ +# endif +#endif + +#ifdef _WIN32 +# ifndef Z_SOLO +# include /* for wchar_t */ +# endif +#endif + +/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and + * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even + * though the former does not conform to the LFS document), but considering + * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as + * equivalently requesting no 64-bit operations + */ +#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 +# undef _LARGEFILE64_SOURCE +#endif + +#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) +# define Z_HAVE_UNISTD_H +#endif +#ifndef Z_SOLO +# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) +# include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ +# ifdef VMS +# include /* for off_t */ +# endif +# ifndef z_off_t +# define z_off_t off_t +# endif +# endif +#endif + +#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 +# define Z_LFS64 +#endif + +#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) +# define Z_LARGE64 +#endif + +#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) +# define Z_WANT64 +#endif + +#if !defined(SEEK_SET) && !defined(Z_SOLO) +# define SEEK_SET 0 /* Seek from beginning of file. */ +# define SEEK_CUR 1 /* Seek from current position. */ +# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ +#endif + +#ifndef z_off_t +# define z_off_t long +#endif + +#if !defined(_WIN32) && defined(Z_LARGE64) +# define z_off64_t off64_t +#else +# if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) +# define z_off64_t __int64 +# else +# define z_off64_t z_off_t +# endif +#endif + +/* MVS linker does not support external names larger than 8 bytes */ +#if defined(__MVS__) + #pragma map(deflateInit_,"DEIN") + #pragma map(deflateInit2_,"DEIN2") + #pragma map(deflateEnd,"DEEND") + #pragma map(deflateBound,"DEBND") + #pragma map(inflateInit_,"ININ") + #pragma map(inflateInit2_,"ININ2") + #pragma map(inflateEnd,"INEND") + #pragma map(inflateSync,"INSY") + #pragma map(inflateSetDictionary,"INSEDI") + #pragma map(compressBound,"CMBND") + #pragma map(inflate_table,"INTABL") + #pragma map(inflate_fast,"INFA") + #pragma map(inflate_copyright,"INCOPY") +#endif + +#endif /* ZCONF_H */ diff --git a/project/windows/lib/gffmpeg/gffmpeg.vcxproj b/project/windows/lib/gffmpeg/gffmpeg.vcxproj index 432f763..dce0f14 100644 --- a/project/windows/lib/gffmpeg/gffmpeg.vcxproj +++ b/project/windows/lib/gffmpeg/gffmpeg.vcxproj @@ -182,7 +182,7 @@ {0ffa55d6-c072-4ba9-a5ea-f08cffe7d641} - + {0241464b-2c21-4608-87f8-9994fc4a3cfb} diff --git a/project/windows/lib/gimgui/gimgui.vcxproj b/project/windows/lib/gimgui/gimgui.vcxproj index 8cb595a..7e9f3b3 100644 --- a/project/windows/lib/gimgui/gimgui.vcxproj +++ b/project/windows/lib/gimgui/gimgui.vcxproj @@ -93,8 +93,8 @@ Level3 Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)dependent\include\dx9;%(AdditionalIncludeDirectories) + WIN32;LUA_LIB;_DEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)source\lib\gimgui\imgui;$(SolutionDir)source\lua;$(SolutionDir)dependent\include\dx9;$(SolutionDir)dependent\SDL\include;%(AdditionalIncludeDirectories) MultiThreadedDebug @@ -112,8 +112,8 @@ Level3 Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)dependent\include\dx9;%(AdditionalIncludeDirectories) + WIN32;LUA_LIB;_DEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)source\lib\gimgui\imgui;$(SolutionDir)source\lua;$(SolutionDir)dependent\include\dx9;$(SolutionDir)dependent\SDL\include;%(AdditionalIncludeDirectories) MultiThreadedDebug @@ -133,9 +133,9 @@ MaxSpeed true true - WIN32;NDEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;IMGUI_INCLUDE_IMGUI_USER_H;LUA_LIB;%(PreprocessorDefinitions) + WIN32;LUA_LIB;NDEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;IMGUI_INCLUDE_IMGUI_USER_H;LUA_LIB;%(PreprocessorDefinitions);%(PreprocessorDefinitions) MultiThreaded - $(SolutionDir)dependent\include\dx9;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lib\gimgui\imgui;$(SolutionDir)source\lua;$(SolutionDir)dependent\include\dx9;$(SolutionDir)dependent\SDL\include;%(AdditionalIncludeDirectories) Console @@ -158,8 +158,8 @@ MaxSpeed true true - WIN32;NDEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;IMGUI_INCLUDE_IMGUI_USER_H;LUA_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dependent\include\dx9;%(AdditionalIncludeDirectories) + WIN32;LUA_LIB;NDEBUG;_WINDOWS;_USRDLL;GIMGUI_EXPORTS;IMGUI_INCLUDE_IMGUI_USER_H;LUA_LIB;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + $(SolutionDir)source\lib\gimgui\imgui;$(SolutionDir)source\lua;$(SolutionDir)dependent\include\dx9;$(SolutionDir)dependent\SDL\include;%(AdditionalIncludeDirectories) MultiThreaded @@ -201,7 +201,7 @@ {0ffa55d6-c072-4ba9-a5ea-f08cffe7d641} - + {0241464b-2c21-4608-87f8-9994fc4a3cfb} diff --git a/project/windows/lib/lzmq/lzmq.vcxproj b/project/windows/lib/lzmq/lzmq.vcxproj index 1f32bc3..0640931 100644 --- a/project/windows/lib/lzmq/lzmq.vcxproj +++ b/project/windows/lib/lzmq/lzmq.vcxproj @@ -94,13 +94,13 @@ Level3 Disabled ZMQ_STATIC;WIN32;_DEBUG;_WINDOWS;_USRDLL;LZMQ_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\zeromq;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\libzmq\include;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true - + Advapi32.lib;Ws2_32.lib;Rpcrt4.lib;Iphlpapi.lib;%(AdditionalDependencies) copy /y "$(OutDir)"$(TargetFileName) "$(SolutionDir)"GGELUA\$(Configuration)$(PlatformArchitecture)\lib\$(TargetFileName) @@ -113,13 +113,13 @@ Level3 Disabled ZMQ_STATIC;WIN32;_DEBUG;_WINDOWS;_USRDLL;LZMQ_EXPORTS;%(PreprocessorDefinitions) - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\zeromq;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\libzmq\include;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true - + Advapi32.lib;Ws2_32.lib;Rpcrt4.lib;Iphlpapi.lib;%(AdditionalDependencies) copy /y "$(OutDir)"$(TargetFileName) "$(SolutionDir)"GGELUA\$(Configuration)$(PlatformArchitecture)\lib\$(TargetFileName) @@ -134,15 +134,14 @@ true true ZMQ_STATIC;WIN32;NDEBUG;_WINDOWS;_USRDLL;LZMQ_EXPORTS;LUAZMQ_EXPORTS;ZMQ_STATIC;%(PreprocessorDefinitions) - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\zeromq;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\libzmq\include;%(AdditionalIncludeDirectories) MultiThreaded Console true true - - + Advapi32.lib;Ws2_32.lib;Rpcrt4.lib;Iphlpapi.lib;%(AdditionalDependencies) false @@ -160,15 +159,14 @@ true true ZMQ_STATIC;WIN32;NDEBUG;_WINDOWS;_USRDLL;LZMQ_EXPORTS;LUAZMQ_EXPORTS;ZMQ_STATIC;%(PreprocessorDefinitions) - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\zeromq;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\libzmq\include;%(AdditionalIncludeDirectories) MultiThreaded Console true true - - + Advapi32.lib;Ws2_32.lib;Rpcrt4.lib;Iphlpapi.lib;%(AdditionalDependencies) false @@ -189,6 +187,9 @@ + + {641c5f36-32ee-4323-b740-992b651cf9d6} + {0ffa55d6-c072-4ba9-a5ea-f08cffe7d641} diff --git a/project/windows/lib/mongo/mongo.vcxproj b/project/windows/lib/mongo/mongo.vcxproj index 2ea014c..3709749 100644 --- a/project/windows/lib/mongo/mongo.vcxproj +++ b/project/windows/lib/mongo/mongo.vcxproj @@ -89,20 +89,21 @@ false .$(Platform)\$(Configuration)\ .$(Platform)\$(Configuration)\ + false Level3 true - MONGOC_STATIC;BSON_STATIC;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\bson;$(SolutionDir)dependent\include\mongo;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src\;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src\;$(SolutionDir)source\lib\mongo;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true - + ws2_32.lib;Dnsapi.lib;Bcrypt.lib;Secur32.lib;Crypt32.lib;%(AdditionalDependencies) copy /y "$(OutDir)"$(TargetFileName) "$(SolutionDir)"GGELUA\$(Configuration)$(PlatformArchitecture)\lib\$(TargetFileName) @@ -114,9 +115,9 @@ true true true - MONGOC_STATIC;BSON_STATIC;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;%(PreprocessorDefinitions) true - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\bson;$(SolutionDir)dependent\include\mongo;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src\;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src\;$(SolutionDir)source\lib\mongo;%(AdditionalIncludeDirectories) MultiThreaded @@ -126,8 +127,7 @@ false - - + ws2_32.lib;Dnsapi.lib;Bcrypt.lib;Secur32.lib;Crypt32.lib;%(AdditionalDependencies) copy /y "$(OutDir)"$(TargetFileName) "$(SolutionDir)"GGELUA\$(Configuration)$(PlatformArchitecture)\lib\$(TargetFileName) @@ -137,15 +137,15 @@ Level3 true - MONGOC_STATIC;BSON_STATIC;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\bson;$(SolutionDir)dependent\include\mongo;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src\;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src\;$(SolutionDir)source\lib\mongo;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true - + ws2_32.lib;Dnsapi.lib;Bcrypt.lib;Secur32.lib;Crypt32.lib;%(AdditionalDependencies) copy /y "$(OutDir)"$(TargetFileName) "$(SolutionDir)"GGELUA\$(Configuration)$(PlatformArchitecture)\lib\$(TargetFileName) @@ -157,20 +157,19 @@ true true true - MONGOC_STATIC;BSON_STATIC;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;MONGOC_STATIC;BSON_STATIC;%(PreprocessorDefinitions) true - $(SolutionDir)source\lua;$(SolutionDir)dependent\include\bson;$(SolutionDir)dependent\include\mongo;%(AdditionalIncludeDirectories) + $(SolutionDir)source\lua;$(SolutionDir)dependent\mongo-c-driver\src\libbson\src\;$(SolutionDir)dependent\mongo-c-driver\src\libmongoc\src\;$(SolutionDir)source\lib\mongo;%(AdditionalIncludeDirectories) MultiThreaded Console true true - true + false - - + ws2_32.lib;Dnsapi.lib;Bcrypt.lib;Secur32.lib;Crypt32.lib;%(AdditionalDependencies) @@ -196,6 +195,9 @@ + + {65ebd877-099b-3f4e-9e5f-3d2ea6490307} + {0ffa55d6-c072-4ba9-a5ea-f08cffe7d641} diff --git a/source/lib/mongo/bson-config.h b/source/lib/mongo/bson-config.h new file mode 100644 index 0000000..ea6a817 --- /dev/null +++ b/source/lib/mongo/bson-config.h @@ -0,0 +1,155 @@ +/* + * Copyright 2018-present MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#if !defined(BSON_INSIDE) && !defined(BSON_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef BSON_CONFIG_H +#define BSON_CONFIG_H + +/* + * Define to 1234 for Little Endian, 4321 for Big Endian. + */ +#define BSON_BYTE_ORDER 1234 + + +/* + * Define to 1 if you have stdbool.h + */ +#define BSON_HAVE_STDBOOL_H 0 +#if BSON_HAVE_STDBOOL_H != 1 +# undef BSON_HAVE_STDBOOL_H +#endif + + +/* + * Define to 1 for POSIX-like systems, 2 for Windows. + */ +#define BSON_OS 2 + + +/* + * Define to 1 if we have access to GCC 32-bit atomic builtins. + * While this requires GCC 4.1+ in most cases, it is also architecture + * dependent. For example, some PPC or ARM systems may not have it even + * if it is a recent GCC version. + */ +#define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 0 +#if BSON_HAVE_ATOMIC_32_ADD_AND_FETCH != 1 +# undef BSON_HAVE_ATOMIC_32_ADD_AND_FETCH +#endif + +/* + * Similarly, define to 1 if we have access to GCC 64-bit atomic builtins. + */ +#define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 0 +#if BSON_HAVE_ATOMIC_64_ADD_AND_FETCH != 1 +# undef BSON_HAVE_ATOMIC_64_ADD_AND_FETCH +#endif + + +/* + * Define to 1 if you have clock_gettime() available. + */ +#define BSON_HAVE_CLOCK_GETTIME 0 +#if BSON_HAVE_CLOCK_GETTIME != 1 +# undef BSON_HAVE_CLOCK_GETTIME +#endif + + +/* + * Define to 1 if you have strings.h available on your platform. + */ +#define BSON_HAVE_STRINGS_H 0 +#if BSON_HAVE_STRINGS_H != 1 +# undef BSON_HAVE_STRINGS_H +#endif + + +/* + * Define to 1 if you have strnlen available on your platform. + */ +#define BSON_HAVE_STRNLEN 0 +#if BSON_HAVE_STRNLEN != 1 +# undef BSON_HAVE_STRNLEN +#endif + + +/* + * Define to 1 if you have snprintf available on your platform. + */ +#define BSON_HAVE_SNPRINTF 1 +#if BSON_HAVE_SNPRINTF != 1 +# undef BSON_HAVE_SNPRINTF +#endif + + +/* + * Define to 1 if you have gmtime_r available on your platform. + */ +#define BSON_HAVE_GMTIME_R 0 +#if BSON_HAVE_GMTIME_R != 1 +# undef BSON_HAVE_GMTIME_R +#endif + + +/* + * Define to 1 if you have reallocf available on your platform. + */ +#define BSON_HAVE_REALLOCF 0 +#if BSON_HAVE_REALLOCF != 1 +# undef BSON_HAVE_REALLOCF +#endif + + +/* + * Define to 1 if you have struct timespec available on your platform. + */ +#define BSON_HAVE_TIMESPEC 1 +#if BSON_HAVE_TIMESPEC != 1 +# undef BSON_HAVE_TIMESPEC +#endif + + +/* + * Define to 1 if you want extra aligned types in libbson + */ +#define BSON_EXTRA_ALIGN 1 +#if BSON_EXTRA_ALIGN != 1 +# undef BSON_EXTRA_ALIGN +#endif + + +/* + * Define to 1 if you have SYS_gettid syscall + */ +#define BSON_HAVE_SYSCALL_TID 0 +#if BSON_HAVE_SYSCALL_TID != 1 +# undef BSON_HAVE_SYSCALL_TID +#endif + +#define BSON_HAVE_RAND_R 0 +#if BSON_HAVE_RAND_R != 1 +# undef BSON_HAVE_RAND_R +#endif + +#define BSON_HAVE_STRLCPY 0 +#if BSON_HAVE_STRLCPY != 1 +# undef BSON_HAVE_STRLCPY +#endif + +#endif /* BSON_CONFIG_H */ diff --git a/source/lib/mongo/bson-version.h b/source/lib/mongo/bson-version.h new file mode 100644 index 0000000..4581349 --- /dev/null +++ b/source/lib/mongo/bson-version.h @@ -0,0 +1,101 @@ +/* + * Copyright 2013 MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#if !defined (BSON_INSIDE) && !defined (BSON_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef BSON_VERSION_H +#define BSON_VERSION_H + + +/** + * BSON_MAJOR_VERSION: + * + * BSON major version component (e.g. 1 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MAJOR_VERSION (1) + + +/** + * BSON_MINOR_VERSION: + * + * BSON minor version component (e.g. 2 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MINOR_VERSION (17) + + +/** + * BSON_MICRO_VERSION: + * + * BSON micro version component (e.g. 3 if %BSON_VERSION is 1.2.3) + */ +#define BSON_MICRO_VERSION (4) + + +/** + * BSON_PRERELEASE_VERSION: + * + * BSON prerelease version component (e.g. pre if %BSON_VERSION is 1.2.3-pre) + */ +#define BSON_PRERELEASE_VERSION () + +/** + * BSON_VERSION: + * + * BSON version. + */ +#define BSON_VERSION (1.17.4) + + +/** + * BSON_VERSION_S: + * + * BSON version, encoded as a string, useful for printing and + * concatenation. + */ +#define BSON_VERSION_S "1.17.4" + + +/** + * BSON_VERSION_HEX: + * + * BSON version, encoded as an hexadecimal number, useful for + * integer comparisons. + */ +#define BSON_VERSION_HEX (BSON_MAJOR_VERSION << 24 | \ + BSON_MINOR_VERSION << 16 | \ + BSON_MICRO_VERSION << 8) + + +/** + * BSON_CHECK_VERSION: + * @major: required major version + * @minor: required minor version + * @micro: required micro version + * + * Compile-time version checking. Evaluates to %TRUE if the version + * of BSON is greater than the required one. + */ +#define BSON_CHECK_VERSION(major,minor,micro) \ + (BSON_MAJOR_VERSION > (major) || \ + (BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION > (minor)) || \ + (BSON_MAJOR_VERSION == (major) && BSON_MINOR_VERSION == (minor) && \ + BSON_MICRO_VERSION >= (micro))) + +#endif /* BSON_VERSION_H */ diff --git a/source/lib/mongo/mongoc-config.h b/source/lib/mongo/mongoc-config.h new file mode 100644 index 0000000..609d768 --- /dev/null +++ b/source/lib/mongo/mongoc-config.h @@ -0,0 +1,414 @@ +/* + * Copyright 2013 MongoDB Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#if !defined(MONGOC_INSIDE) && !defined(MONGOC_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef MONGOC_CONFIG_H +#define MONGOC_CONFIG_H + +/* MONGOC_USER_SET_CFLAGS is set from config based on what compiler flags were + * used to compile mongoc */ +#define MONGOC_USER_SET_CFLAGS "/DWIN32 /D_WINDOWS /W3" + +#define MONGOC_USER_SET_LDFLAGS "/machine:x64" + +/* MONGOC_CC is used to determine what C compiler was used to compile mongoc */ +#define MONGOC_CC "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe" + +/* + * MONGOC_ENABLE_SSL_SECURE_CHANNEL is set from configure to determine if we are + * compiled with Native SSL support on Windows + */ +#define MONGOC_ENABLE_SSL_SECURE_CHANNEL 1 + +#if MONGOC_ENABLE_SSL_SECURE_CHANNEL != 1 +# undef MONGOC_ENABLE_SSL_SECURE_CHANNEL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_CNG is set from configure to determine if we are + * compiled with Native Crypto support on Windows + */ +#define MONGOC_ENABLE_CRYPTO_CNG 1 + +#if MONGOC_ENABLE_CRYPTO_CNG != 1 +# undef MONGOC_ENABLE_CRYPTO_CNG +#endif + + +/* + * MONGOC_ENABLE_SSL_SECURE_TRANSPORT is set from configure to determine if we are + * compiled with Native SSL support on Darwin + */ +#define MONGOC_ENABLE_SSL_SECURE_TRANSPORT 0 + +#if MONGOC_ENABLE_SSL_SECURE_TRANSPORT != 1 +# undef MONGOC_ENABLE_SSL_SECURE_TRANSPORT +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO is set from configure to determine if we are + * compiled with Native Crypto support on Darwin + */ +#define MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO 0 + +#if MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO_COMMON_CRYPTO +#endif + + +/* + * MONGOC_ENABLE_SSL_LIBRESSL is set from configure to determine if we are + * compiled with LibreSSL support. + */ +#define MONGOC_ENABLE_SSL_LIBRESSL 0 + +#if MONGOC_ENABLE_SSL_LIBRESSL != 1 +# undef MONGOC_ENABLE_SSL_LIBRESSL +#endif + + +/* + * MONGOC_ENABLE_SSL_OPENSSL is set from configure to determine if we are + * compiled with OpenSSL support. + */ +#define MONGOC_ENABLE_SSL_OPENSSL 0 + +#if MONGOC_ENABLE_SSL_OPENSSL != 1 +# undef MONGOC_ENABLE_SSL_OPENSSL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO_LIBCRYPTO is set from configure to determine if we are + * compiled with OpenSSL support. + */ +#define MONGOC_ENABLE_CRYPTO_LIBCRYPTO 0 + +#if MONGOC_ENABLE_CRYPTO_LIBCRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO_LIBCRYPTO +#endif + + +/* + * MONGOC_ENABLE_SSL is set from configure to determine if we are + * compiled with any SSL support. + */ +#define MONGOC_ENABLE_SSL 1 + +#if MONGOC_ENABLE_SSL != 1 +# undef MONGOC_ENABLE_SSL +#endif + + +/* + * MONGOC_ENABLE_CRYPTO is set from configure to determine if we are + * compiled with any crypto support. + */ +#define MONGOC_ENABLE_CRYPTO 1 + +#if MONGOC_ENABLE_CRYPTO != 1 +# undef MONGOC_ENABLE_CRYPTO +#endif + + +/* + * Use system crypto profile + */ +#define MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE 0 + +#if MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE != 1 +# undef MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE +#endif + + +/* + * Use ASN1_STRING_get0_data () rather than the deprecated ASN1_STRING_data + */ +#define MONGOC_HAVE_ASN1_STRING_GET0_DATA 0 + +#if MONGOC_HAVE_ASN1_STRING_GET0_DATA != 1 +# undef MONGOC_HAVE_ASN1_STRING_GET0_DATA +#endif + + +/* + * MONGOC_ENABLE_SASL is set from configure to determine if we are + * compiled with SASL support. + */ +#define MONGOC_ENABLE_SASL 1 + +#if MONGOC_ENABLE_SASL != 1 +# undef MONGOC_ENABLE_SASL +#endif + + +/* + * MONGOC_ENABLE_SASL_CYRUS is set from configure to determine if we are + * compiled with Cyrus SASL support. + */ +#define MONGOC_ENABLE_SASL_CYRUS 0 + +#if MONGOC_ENABLE_SASL_CYRUS != 1 +# undef MONGOC_ENABLE_SASL_CYRUS +#endif + + +/* + * MONGOC_ENABLE_SASL_SSPI is set from configure to determine if we are + * compiled with SSPI support. + */ +#define MONGOC_ENABLE_SASL_SSPI 1 + +#if MONGOC_ENABLE_SASL_SSPI != 1 +# undef MONGOC_ENABLE_SASL_SSPI +#endif + +/* + * MONGOC_HAVE_SASL_CLIENT_DONE is set from configure to determine if we + * have SASL and its version is new enough to use sasl_client_done (), + * which supersedes sasl_done (). + */ +#define MONGOC_HAVE_SASL_CLIENT_DONE 0 + +#if MONGOC_HAVE_SASL_CLIENT_DONE != 1 +# undef MONGOC_HAVE_SASL_CLIENT_DONE +#endif + + +/* + * Disable automatic calls to mongoc_init() and mongoc_cleanup() + * before main() is called, and after exit() (respectively). + */ +#define MONGOC_NO_AUTOMATIC_GLOBALS 0 + +#if MONGOC_NO_AUTOMATIC_GLOBALS != 1 +# undef MONGOC_NO_AUTOMATIC_GLOBALS +#endif + +/* + * MONGOC_HAVE_SOCKLEN is set from configure to determine if we + * need to emulate the type. + */ +#define MONGOC_HAVE_SOCKLEN 1 + +#if MONGOC_HAVE_SOCKLEN != 1 +# undef MONGOC_HAVE_SOCKLEN +#endif + + +/* + * MONGOC_HAVE_DNSAPI is set from configure to determine if we should use the + * Windows dnsapi for SRV record lookups. + */ +#define MONGOC_HAVE_DNSAPI 1 + +#if MONGOC_HAVE_DNSAPI != 1 +# undef MONGOC_HAVE_DNSAPI +#endif + + +/* + * MONGOC_HAVE_RES_NSEARCH is set from configure to determine if we + * have thread-safe res_nsearch(). + */ +#define MONGOC_HAVE_RES_NSEARCH 0 + +#if MONGOC_HAVE_RES_NSEARCH != 1 +# undef MONGOC_HAVE_RES_NSEARCH +#endif + + +/* + * MONGOC_HAVE_RES_NDESTROY is set from configure to determine if we + * have BSD / Darwin's res_ndestroy(). + */ +#define MONGOC_HAVE_RES_NDESTROY 0 + +#if MONGOC_HAVE_RES_NDESTROY != 1 +# undef MONGOC_HAVE_RES_NDESTROY +#endif + + +/* + * MONGOC_HAVE_RES_NCLOSE is set from configure to determine if we + * have Linux's res_nclose(). + */ +#define MONGOC_HAVE_RES_NCLOSE 0 + +#if MONGOC_HAVE_RES_NCLOSE != 1 +# undef MONGOC_HAVE_RES_NCLOSE +#endif + + +/* + * MONGOC_HAVE_RES_SEARCH is set from configure to determine if we + * have thread-unsafe res_search(). It's unset if we have the preferred + * res_nsearch(). + */ +#define MONGOC_HAVE_RES_SEARCH 0 + +#if MONGOC_HAVE_RES_SEARCH != 1 +# undef MONGOC_HAVE_RES_SEARCH +#endif + + +/* + * Set from configure, see + * https://curl.haxx.se/mail/lib-2009-04/0287.html + */ +#define MONGOC_SOCKET_ARG2 struct sockaddr +#define MONGOC_SOCKET_ARG3 socklen_t + +/* + * Enable wire protocol compression negotiation + * + */ +#define MONGOC_ENABLE_COMPRESSION 1 + +#if MONGOC_ENABLE_COMPRESSION != 1 +# undef MONGOC_ENABLE_COMPRESSION +#endif + +/* + * Set if we have snappy compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_SNAPPY 0 + +#if MONGOC_ENABLE_COMPRESSION_SNAPPY != 1 +# undef MONGOC_ENABLE_COMPRESSION_SNAPPY +#endif + + +/* + * Set if we have zlib compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_ZLIB 1 + +#if MONGOC_ENABLE_COMPRESSION_ZLIB != 1 +# undef MONGOC_ENABLE_COMPRESSION_ZLIB +#endif + +/* + * Set if we have zstd compression support + * + */ +#define MONGOC_ENABLE_COMPRESSION_ZSTD 0 + +#if MONGOC_ENABLE_COMPRESSION_ZSTD != 1 +# undef MONGOC_ENABLE_COMPRESSION_ZSTD +#endif + +/* + * Set if performance counters are available and not disabled. + * + */ +#define MONGOC_ENABLE_SHM_COUNTERS 0 + +#if MONGOC_ENABLE_SHM_COUNTERS != 1 +# undef MONGOC_ENABLE_SHM_COUNTERS +#endif + +/* + * Set if we have enabled fast counters on Intel using the RDTSCP instruction + * + */ +#define MONGOC_ENABLE_RDTSCP 0 + +#if MONGOC_ENABLE_RDTSCP != 1 +# undef MONGOC_ENABLE_RDTSCP +#endif + + +/* + * Set if we have the sched_getcpu() function for use with counters + * + */ +#define MONGOC_HAVE_SCHED_GETCPU 0 + +#if MONGOC_HAVE_SCHED_GETCPU != 1 +# undef MONGOC_HAVE_SCHED_GETCPU +#endif + +/* + * Set if tracing is enabled. Logs things like network communication and + * entry/exit of certain functions. + * + */ +#define MONGOC_TRACE 0 + +#if MONGOC_TRACE != 1 +# undef MONGOC_TRACE +#endif + +/* + * Set if we have ICU support. + */ +#define MONGOC_ENABLE_ICU 0 + +#if MONGOC_ENABLE_ICU != 1 +# undef MONGOC_ENABLE_ICU +#endif + + +/* + * Set if we have Client Side Encryption support. + */ + +#define MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION 0 + +#if MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION != 1 +# undef MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION +#endif + + +/* + * Set if struct sockaddr_storage has __ss_family (instead of ss_family) + */ + +#define MONGOC_HAVE_SS_FAMILY 0 + +#if MONGOC_HAVE_SS_FAMILY != 1 +# undef MONGOC_HAVE_SS_FAMILY +#endif + +/* + * Set if building with AWS IAM support. + */ +#define MONGOC_ENABLE_MONGODB_AWS_AUTH 1 + +#if MONGOC_ENABLE_MONGODB_AWS_AUTH != 1 +# undef MONGOC_ENABLE_MONGODB_AWS_AUTH +#endif + +/* + * NOTICE: + * If you're about to update this file and add a config flag, make sure to + * update: + * o The bitfield in mongoc-handshake-private.h + * o _mongoc_handshake_get_config_hex_string() in mongoc-handshake.c + * o examples/parse_handshake_cfg.py + * o test_handshake_config_string in test-mongoc-handshake.c + */ + +#endif /* MONGOC_CONFIG_H */ diff --git a/source/lib/mongo/mongoc-version.h b/source/lib/mongo/mongoc-version.h new file mode 100644 index 0000000..814ba8e --- /dev/null +++ b/source/lib/mongo/mongoc-version.h @@ -0,0 +1,102 @@ +/* + * Copyright 2013 MongoDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#if !defined (MONGOC_INSIDE) && !defined (MONGOC_COMPILATION) +#error "Only can be included directly." +#endif + + +#ifndef MONGOC_VERSION_H +#define MONGOC_VERSION_H + + +/** + * MONGOC_MAJOR_VERSION: + * + * MONGOC major version component (e.g. 1 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MAJOR_VERSION (1) + + +/** + * MONGOC_MINOR_VERSION: + * + * MONGOC minor version component (e.g. 2 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MINOR_VERSION (17) + + +/** + * MONGOC_MICRO_VERSION: + * + * MONGOC micro version component (e.g. 3 if %MONGOC_VERSION is 1.2.3) + */ +#define MONGOC_MICRO_VERSION (4) + + +/** + * MONGOC_PRERELEASE_VERSION: + * + * MONGOC prerelease version component (e.g. pre if %MONGOC_VERSION is 1.2.3-pre) + */ +#define MONGOC_PRERELEASE_VERSION () + + +/** + * MONGOC_VERSION: + * + * MONGOC version. + */ +#define MONGOC_VERSION (1.17.4) + + +/** + * MONGOC_VERSION_S: + * + * MONGOC version, encoded as a string, useful for printing and + * concatenation. + */ +#define MONGOC_VERSION_S "1.17.4" + + +/** + * MONGOC_VERSION_HEX: + * + * MONGOC version, encoded as an hexadecimal number, useful for + * integer comparisons. + */ +#define MONGOC_VERSION_HEX (MONGOC_MAJOR_VERSION << 24 | \ + MONGOC_MINOR_VERSION << 16 | \ + MONGOC_MICRO_VERSION << 8) + + +/** + * MONGOC_CHECK_VERSION: + * @major: required major version + * @minor: required minor version + * @micro: required micro version + * + * Compile-time version checking. Evaluates to %TRUE if the version + * of MONGOC is greater than the required one. + */ +#define MONGOC_CHECK_VERSION(major,minor,micro) \ + (MONGOC_MAJOR_VERSION > (major) || \ + (MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION > (minor)) || \ + (MONGOC_MAJOR_VERSION == (major) && MONGOC_MINOR_VERSION == (minor) && \ + MONGOC_MICRO_VERSION >= (micro))) + +#endif /* MONGOC_VERSION_H */