mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
cadcd0ab39
Summary: Enable building fake_edenfs.cpp and TakeoverTool.cpp in the CMake build. This includes a few changes to get `fake_edenfs.cpp` closer to building on Windows, but at the moment it still does not fully build since the `StartupLogger` is currently not compiled on Windows. TakeoverTool.cpp is specific to the graceful restart tests, and doesn't make sense to ever build on Windows. Reviewed By: wez Differential Revision: D21214614 fbshipit-source-id: a7a8306ea3f69579fa02bd3753a66d3095ea004a
22 lines
584 B
CMake
22 lines
584 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
if(NOT WIN32)
|
|
# TODO: fake_edenfs currently does not build on Windows, but we should
|
|
# eventually get it working there.
|
|
add_executable(fake_edenfs fake_edenfs.cpp)
|
|
target_link_libraries(
|
|
fake_edenfs
|
|
eden_config
|
|
eden_inodes
|
|
eden_service
|
|
)
|
|
endif()
|
|
|
|
if(NOT WIN32)
|
|
add_executable(takeover_tool TakeoverTool.cpp)
|
|
target_link_libraries(takeover_tool eden_takeover Folly::folly)
|
|
endif()
|