mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
0c4f3b108d
Summary: Wanting to have EdenFS run as a service on Windows cause a couple of issues on Windows: - Needing to log out after installing - Forcing Sandcastle to use --foreground, which means the edenfs.log is empty, making it impossible to debug anything on Sandcastle, - Services can only be started by an elevated user, while the rest of EdenFS doesn't have this requirement, - Uses undocumented template services The next diffs in the stack will attempt to solve all of these by starting EdenFS as a scheduled task instead, which should solve all the above. Reviewed By: fanzeyi Differential Revision: D21732280 fbshipit-source-id: b959344da1e77819220d26695ff6634f13ac4e0d
63 lines
1.1 KiB
CMake
63 lines
1.1 KiB
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(WIN32)
|
|
add_executable(
|
|
edenfs
|
|
win/service/main.cpp
|
|
)
|
|
else()
|
|
add_executable(
|
|
edenfs
|
|
service/oss/main.cpp
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS edenfs RUNTIME DESTINATION bin)
|
|
target_include_directories(
|
|
edenfs
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_BINARY_DIR}
|
|
)
|
|
target_link_libraries(
|
|
edenfs
|
|
eden_service
|
|
Folly::folly
|
|
)
|
|
|
|
add_library(
|
|
eden_build_config STATIC
|
|
eden-config.cpp
|
|
)
|
|
|
|
if (WIN32)
|
|
add_compile_definitions(_UNICODE UNICODE)
|
|
endif()
|
|
|
|
add_subdirectory(config)
|
|
add_subdirectory(fuse)
|
|
add_subdirectory(inodes)
|
|
add_subdirectory(journal)
|
|
add_subdirectory(model)
|
|
add_subdirectory(rocksdb)
|
|
add_subdirectory(service)
|
|
add_subdirectory(sqlite)
|
|
add_subdirectory(store)
|
|
add_subdirectory(telemetry)
|
|
add_subdirectory(utils)
|
|
add_subdirectory(testharness)
|
|
add_subdirectory(py)
|
|
add_subdirectory(cli)
|
|
|
|
|
|
# Platform specific code
|
|
if (WIN32)
|
|
add_subdirectory(win)
|
|
else()
|
|
add_subdirectory(notifications)
|
|
add_subdirectory(takeover)
|
|
endif()
|