forked from RepentantGopher/tnt-kafka
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tarantool/dev
Reworked lib from ffi to pure c wrapper
- Loading branch information
Showing
24 changed files
with
1,685 additions
and
1,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
tests/venv | ||
tests/.pytest_cache | ||
tests/__* | ||
tests/__* | ||
cmake-build-debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | ||
|
||
project(tnt-kafka C) | ||
|
||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) | ||
|
||
# Set CFLAGS | ||
set(MY_C_FLAGS "-Wall -Wextra -Werror -std=gnu11 -fno-strict-aliasing -Wno-deprecated-declarations") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MY_C_FLAGS}") | ||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${MY_C_FLAGS} -ggdb3") | ||
|
||
set(TARANTOOL_FIND_REQUIRED ON) | ||
find_package(Tarantool) | ||
# Oracle Connector requires fiber_cond API added in 1.7.4-291 | ||
string(REPLACE "-" "." tntver ${TARANTOOL_VERSION}) | ||
if(${tntver} VERSION_LESS 1.7.4.291) | ||
message(FATAL_ERROR "Tarantool >= 1.7.4-291 is required") | ||
endif() | ||
|
||
set(RDKAFKA_FIND_REQUIRED ON) | ||
find_package(RdKafka) | ||
|
||
include_directories(${TARANTOOL_INCLUDE_DIRS}) | ||
|
||
add_subdirectory(tnt-kafka) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.