mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
84b535fe3c
Summary: Implement a backing store that uses thrift protocol to communicate with Mononoke API Server. Reviewed By: strager Differential Revision: D13966575 fbshipit-source-id: 66f66dda6b17aecd6c6b4475ab6b004c608f457f
42 lines
763 B
CMake
42 lines
763 B
CMake
# FIXME: need to pull in proxygen for this
|
|
file(GLOB STORE_MONONOKE_SRCS "*.cpp")
|
|
|
|
if (EDEN_WIN_NOMONONOKE)
|
|
list(
|
|
REMOVE_ITEM
|
|
STORE_MONONOKE_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MononokeHttpBackingStore.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MononokeThriftBackingStore.cpp
|
|
)
|
|
endif()
|
|
|
|
if (NOT EDEN_HAVE_CURL)
|
|
list(
|
|
REMOVE_ITEM
|
|
STORE_MONONOKE_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CurlHttpClient.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MononokeCurlBackingStore.cpp
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
eden_store_mononoke STATIC
|
|
${STORE_MONONOKE_SRCS}
|
|
)
|
|
|
|
target_link_libraries(
|
|
eden_store_mononoke
|
|
PUBLIC
|
|
eden_model
|
|
eden_store
|
|
eden_utils
|
|
)
|
|
|
|
if (CURL_FOUND)
|
|
target_link_libraries(
|
|
eden_store_mononoke
|
|
PUBLIC
|
|
curl
|
|
)
|
|
endif()
|