Skip to content

Commit

Permalink
rewrite query_ctx and command_ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyMatt committed May 8, 2024
1 parent 5749e50 commit ecce30b
Show file tree
Hide file tree
Showing 9 changed files with 2,006 additions and 2,008 deletions.
51 changes: 26 additions & 25 deletions CMakeLists.txt
Expand Up @@ -6,8 +6,8 @@ include(${root}/deps/readies/cmake/main)
SET(CMAKE_EXPORT_COMPILE_COMMANDS on)

if (NOT DEFINED UNIT_TESTS)
set(UNIT_TESTS OFF)
endif()
set(UNIT_TESTS OFF)
endif ()

project(falkordb)

Expand All @@ -18,31 +18,32 @@ file(GLOB_RECURSE SOURCES "src/*.c")
add_library(falkordb SHARED ${SOURCES})

include_directories(
${root}/src
${root}
${root}/deps
${root}/deps/rax
${root}/deps/xxHash
${root}/deps/utf8proc
${root}/deps/oniguruma
${root}/deps/RediSearch/src
${root}/deps/GraphBLAS/Include
${root}/deps/libcypher-parser/lib/src
$ENV{LIBCYPHER_PARSER_BINDIR}/lib/src)
${root}/src
${root}
${root}/deps/FalkorDB-rs/headers
${root}/deps
${root}/deps/rax
${root}/deps/xxHash
${root}/deps/utf8proc
${root}/deps/oniguruma
${root}/deps/RediSearch/src
${root}/deps/GraphBLAS/Include
${root}/deps/libcypher-parser/lib/src
$ENV{LIBCYPHER_PARSER_BINDIR}/lib/src)

add_compile_definitions(
_GNU_SOURCE
REDIS_MODULE_TARGET
REDISMODULE_EXPERIMENTAL_API
XXH_STATIC_LINKING_ONLY)
_GNU_SOURCE
REDIS_MODULE_TARGET
REDISMODULE_EXPERIMENTAL_API
XXH_STATIC_LINKING_ONLY)

if (DEBUG)
add_compile_definitions(RG_DEBUG)
endif()
add_compile_definitions(RG_DEBUG)
endif ()

if (MEMCHECK)
add_compile_definitions(MEMCHECK)
endif()
add_compile_definitions(MEMCHECK)
endif ()

setup_shared_object_target(falkordb "")

Expand All @@ -61,10 +62,10 @@ target_link_libraries(falkordb PRIVATE ${FALKORDB_LIBS} ${CMAKE_LD_LIBS})
extract_debug_symbols(falkordb)

if (APPLE)
add_library(falkordb_static STATIC $<TARGET_OBJECTS:falkordb>)
endif()
add_library(falkordb_static STATIC $<TARGET_OBJECTS:falkordb>)
endif ()

if (UNIT_TESTS)
add_subdirectory(${root}/tests/unit tests/unit)
endif()
add_subdirectory(${root}/tests/unit tests/unit)
endif ()

0 comments on commit ecce30b

Please sign in to comment.