提交 e40e1608 编写于 作者: M Magnus Edenhill

Win32: add lz4 support (using NuGet lz4 package)

上级 99e1c246
......@@ -10,6 +10,8 @@ Requirements:
(This would be using NuGet too but the current
OpenSSL packages are outdated and with broken
dependencies, so no luck)
* lz4 is installed automatically from NuGet.
xxhash.[ch] from lz4 are used instead of the ones provided by librdkafka.
The Visual Studio solution file for librdkafka resides in win32/librdkafka.sln
......@@ -23,7 +25,6 @@ Artifacts:
Missing:
- remaining tools (rdkafka_performance, etc)
- SASL support (no official Cyrus libsasl2 DLLs available)
- LZ4 support
If you build librdkafka with an external tool (ie CMake) you can get rid of the
__declspec(dllexport) / __declspec(dllimport) decorations by adding a define
......
......@@ -34,5 +34,6 @@
#define WITH_SSL 1
#define WITH_ZLIB 1
#define WITH_SNAPPY 1
#define WITH_LZ4 1
#define ENABLE_DEVEL 0
......@@ -202,7 +202,6 @@
<ClInclude Include="..\src\tinycthread.h" />
<ClInclude Include="..\src\rdwin32.h" />
<ClInclude Include="..\src\win32_config.h" />
<ClInclude Include="..\src\xxhash.h" />
<ClInclude Include="..\src\regexp.h" />
</ItemGroup>
<ItemGroup>
......@@ -238,7 +237,6 @@
<ClCompile Include="..\src\rdregex.c" />
<ClCompile Include="..\src\snappy.c" />
<ClCompile Include="..\src\tinycthread.c" />
<ClCompile Include="..\src\xxhash.c" />
<ClCompile Include="..\src\regexp.c" />
</ItemGroup>
<ItemGroup>
......@@ -252,6 +250,7 @@
<ImportGroup Label="ExtensionTargets">
<Import Project="packages\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.targets" Condition="Exists('packages\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.targets')" />
<Import Project="packages\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.targets" Condition="Exists('packages\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.targets')" />
<Import Project="packages\lz4.1.3.1.2\build\native\lz4.targets" Condition="Exists('packages\lz4.1.3.1.2\build\native\lz4.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
......@@ -259,5 +258,6 @@
</PropertyGroup>
<Error Condition="!Exists('packages\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v120.windesktop.msvcstl.dyn.rt-dyn.targets'))" />
<Error Condition="!Exists('packages\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.1.2.8.8\build\native\zlib.v140.windesktop.msvcstl.dyn.rt-dyn.targets'))" />
<Error Condition="!Exists('packages\lz4.1.3.1.2\build\native\lz4.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\lz4.1.3.1.2\build\native\lz4.targets'))" />
</Target>
</Project>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="lz4" version="1.3.1.2" targetFramework="native" />
<package id="zlib" version="1.2.8.8" targetFramework="Native" />
<package id="zlib.v120.windesktop.msvcstl.dyn.rt-dyn" version="1.2.8.8" targetFramework="Native" />
<package id="zlib.v140.windesktop.msvcstl.dyn.rt-dyn" version="1.2.8.8" targetFramework="Native" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册