mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
a545acbbd4
Summary: This requires our mercurial repo to be available during the build; I symlink it in alongside `common` in the `oss` dir, and point it up to `scm/hg`. This has partial support for mononoke too, but will need to add logic to getdeps to pull down the proxygen repo and build that. Reviewed By: simpkins Differential Revision: D13480146 fbshipit-source-id: 54874245015af83a259f56944d2e5f87615baee7
32 lines
599 B
CMake
32 lines
599 B
CMake
file(GLOB STORE_HG_SRCS "*.cpp")
|
|
list(REMOVE_ITEM STORE_HG_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/tester.cpp)
|
|
add_library(
|
|
eden_store_hg STATIC
|
|
${STORE_HG_SRCS}
|
|
)
|
|
|
|
if (NOT EDEN_WIN_NOMONONOKE)
|
|
list(APPEND EDEN_STORE_HG_OPTIONAL_DEPS eden_store_mononoke)
|
|
endif()
|
|
if (EDEN_HAVE_HG_TREEMANIFEST)
|
|
list(APPEND EDEN_STORE_HG_OPTIONAL_DEPS datapack)
|
|
endif()
|
|
|
|
target_link_libraries(
|
|
eden_store_hg
|
|
PUBLIC
|
|
eden_model
|
|
eden_store
|
|
eden_utils
|
|
${EDEN_STORE_HG_OPTIONAL_DEPS}
|
|
)
|
|
|
|
add_executable(
|
|
hg_store_tester
|
|
tester.cpp
|
|
)
|
|
target_link_libraries(
|
|
hg_store_tester
|
|
eden_store_hg
|
|
)
|