File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 62
62
copyback : false
63
63
prepare : |
64
64
pkg update -f
65
- pkg install -y cmake gmake gcc pkgconf openssl
65
+ pkg install -y cmake gmake gcc pkgconf openssl devel/googletest
66
+ pkg install -y snappy zstd liblz4
66
67
run : |
67
68
freebsd-version
68
- gmake
69
- gmake tutorial
69
+ gmake KAFKA=y
70
+ gmake check KAFKA=y
71
+ gmake tutorial KAFKA=y
Original file line number Diff line number Diff line change 16
16
Authors: Wang Zhulei ([email protected] )
17
17
*/
18
18
19
+ #include <sys/uio.h>
19
20
#include <arpa/inet.h>
20
21
#include <stdlib.h>
21
22
#include <stdio.h>
Original file line number Diff line number Diff line change 19
19
#ifndef _KAFKA_PARSER_H_
20
20
#define _KAFKA_PARSER_H_
21
21
22
- #include <arpa/inet .h>
22
+ #include <sys/uio .h>
23
23
#include <stddef.h>
24
24
#include <stdint.h>
25
25
#include "list.h"
Original file line number Diff line number Diff line change @@ -107,9 +107,26 @@ endif()
107
107
if (KAFKA STREQUAL "y" )
108
108
add_executable ("kafka_cli" "tutorial-13-kafka_cli.cc" )
109
109
find_package (ZLIB REQUIRED)
110
+ find_path (SNAPPY_INCLUDE_PATH NAMES snappy.h)
110
111
find_library (SNAPPY_LIB NAMES snappy)
111
- find_library (LZ4_LIB NAMES lz4)
112
+ if ((NOT SNAPPY_INCLUDE_PATH) OR (NOT SNAPPY_LIB))
113
+ message (FATAL_ERROR "Fail to find snappy with KAFKA=y" )
114
+ endif ()
115
+ include_directories (${SNAPPY_INCLUDE_PATH} )
116
+
117
+ find_path (ZSTD_INCLUDE_PATH NAMES zstd.h)
112
118
find_library (ZSTD_LIB NAMES zstd)
119
+ if ((NOT ZSTD_INCLUDE_PATH) OR (NOT ZSTD_LIB))
120
+ message (FATAL_ERROR "Fail to find zstd with KAFKA=y" )
121
+ endif ()
122
+ include_directories (${ZSTD_INCLUDE_PATH} )
123
+
124
+ find_path (LZ4_INCLUDE_PATH NAMES lz4.h)
125
+ find_library (LZ4_LIB NAMES lz4)
126
+ if ((NOT LZ4_INCLUDE_PATH) OR (NOT LZ4_LIB))
127
+ message (FATAL_ERROR "Fail to find lz4 with KAFKA=y" )
128
+ endif ()
129
+ include_directories (${LZ4_INCLUDE_PATH} )
113
130
target_link_libraries ("kafka_cli" ${WFKAFKA_LIB} ${LIB} ZLIB::ZLIB ${SNAPPY_LIB} ${LZ4_LIB} ${ZSTD_LIB} )
114
131
endif ()
115
132
You can’t perform that action at this time.
0 commit comments