Skip to content

Commit

Permalink
WIP: commit to switch librdkafka from version 1.1.0 to version 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiberatorUSA committed Mar 23, 2024
1 parent 9c1b409 commit 0dc894c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dependencies/librdkafka/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# Configuration for module: RdKafka

set( HEADER_FILES
config.h
src/cJSON.h
src/crc32c.h
src/lz4.h
Expand Down Expand Up @@ -244,7 +245,7 @@ if ( LINUX64 )
set_property( TARGET ${MODULE_NAME} APPEND_STRING PROPERTY COMPILE_DEFINITIONS "WITH_LIBDL" )
endif( LINUX64 )

include_directories( src src-cpp )
include_directories( ../librdkafka src src-cpp )

if ( LINUX32 )
include_directories( ../zlib )
Expand Down
27 changes: 27 additions & 0 deletions dependencies/librdkafka/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#ifndef LIBRDKAFKA_CONFIG_H
#define LIBRDKAFKA_CONFIG_H

/* this file is for Linux builds, not Windows which has its own config file */
#if ( !defined _WIN32 )

#define WITH_SSL 0
#define WITH_ZLIB 1
#define WITH_SNAPPY 0
#define WITH_ZSTD 0
/* zstd is linked dynamically on Windows, but the dynamic library provides
* the experimental/advanced API, just as the static builds on *nix */
#define WITH_ZSTD_STATIC 0
#define WITH_SASL_SCRAM 0
#define WITH_SASL_OAUTHBEARER 0
#define ENABLE_DEVEL 0
#define WITH_PLUGINS 1
#define WITH_HDRHISTOGRAM 1

#define SOLIB_EXT ".so"

/* Notice: Keep up to date */
#define BUILT_WITH "SSL ZLIB SNAPPY SASL_SCRAM PLUGINS HDRHISTOGRAM"

#endif

#endif /* LIBRDKAFKA_CONFIG_H ? */

0 comments on commit 0dc894c

Please sign in to comment.