Skip to content

Commit

Permalink
CXXCBC-303: build jsonsl with the library
Browse files Browse the repository at this point in the history
At this stage, we rather own jsonsl implementation, and it would be
easier to compile and maintain it as a part of the main source set.
  • Loading branch information
avsej committed Sep 16, 2024
1 parent 795fb78 commit 670bf20
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 107 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ set(couchbase_cxx_client_FILES
core/columnar/query_component.cxx
core/columnar/query_result.cxx
core/columnar/backoff_calculator.cxx
third_party/jsonsl/jsonsl.c
)

if(COUCHBASE_CXX_CLIENT_BUILD_SHARED OR BUILD_SHARED_LIBS)
Expand Down
4 changes: 0 additions & 4 deletions cmake/ThirdPartyDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ endif()
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third_party/cxx_function)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third_party/expected/include)

add_library(jsonsl OBJECT ${PROJECT_SOURCE_DIR}/third_party/jsonsl/jsonsl.c)
set_target_properties(jsonsl PROPERTIES C_VISIBILITY_PRESET hidden POSITION_INDEPENDENT_CODE TRUE)
target_include_directories(jsonsl SYSTEM PUBLIC ${PROJECT_SOURCE_DIR}/third_party/jsonsl)

declare_system_library(snappy)
declare_system_library(llhttp::llhttp)
declare_system_library(hdr_histogram_static)
Expand Down
Loading

0 comments on commit 670bf20

Please sign in to comment.