Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Alderaan
librdkafka
提交
e40e1608
L
librdkafka
项目概览
Alderaan
/
librdkafka
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
librdkafka
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e40e1608
编写于
11月 21, 2016
作者:
M
Magnus Edenhill
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Win32: add lz4 support (using NuGet lz4 package)
上级
99e1c246
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
4 deletion
+7
-4
README.win32
README.win32
+2
-1
src/win32_config.h
src/win32_config.h
+1
-0
win32/librdkafka.vcxproj
win32/librdkafka.vcxproj
+3
-3
win32/packages.config
win32/packages.config
+1
-0
未找到文件。
README.win32
浏览文件 @
e40e1608
...
...
@@ -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
...
...
src/win32_config.h
浏览文件 @
e40e1608
...
...
@@ -34,5 +34,6 @@
#define WITH_SSL 1
#define WITH_ZLIB 1
#define WITH_SNAPPY 1
#define WITH_LZ4 1
#define ENABLE_DEVEL 0
win32/librdkafka.vcxproj
浏览文件 @
e40e1608
...
...
@@ -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
win32/packages.config
浏览文件 @
e40e1608
<?
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录