sapling/eden/fs/store/mononoke/CMakeLists.txt
Zeyi Fan 84b535fe3c Add MononokeThriftBackingStore
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
2019-03-26 13:47:15 -07:00

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()