mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 06:37:26 +03:00
7309869981
Summary: Add a thrift call to get the current config settings. My primary use case for this method at the moment is to make it possible to build integration tests that check the config behavior. However in the future this will probably also be useful for building CLI commands to report the current config values to allow debugging if there are ever issues. This API can also be used to force EdenFS to immediately reload the config from disk. Reviewed By: strager Differential Revision: D15572124 fbshipit-source-id: da3bc982f9c419b3314a8b0560c9bd327760d429
99 lines
1.8 KiB
CMake
99 lines
1.8 KiB
CMake
# Copyright (c) 2019-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
add_thrift_cpp2_library(
|
|
eden_service_thrift
|
|
eden.thrift
|
|
SERVICES
|
|
EdenService
|
|
DEPENDS
|
|
eden_config_thrift
|
|
fb303_thrift_cpp2
|
|
)
|
|
add_thrift_cpp2_library(
|
|
streamingeden_thrift
|
|
streamingeden.thrift
|
|
SERVICES
|
|
StreamingEdenService
|
|
DEPENDS
|
|
eden_service_thrift
|
|
)
|
|
|
|
file(GLOB SERVICE_SRCS "*.cpp")
|
|
|
|
if (WIN32)
|
|
list(
|
|
REMOVE_ITEM SERVICE_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/EdenInit.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/EdenMain.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PrettyPrinters.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/StartupLogger.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Systemd.cpp
|
|
)
|
|
add_library(
|
|
eden_service STATIC
|
|
${SERVICE_SRCS}
|
|
)
|
|
else()
|
|
add_library(
|
|
eden_service STATIC
|
|
${SERVICE_SRCS}
|
|
oss/main.cpp
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(
|
|
eden_service
|
|
PUBLIC
|
|
eden_service_thrift
|
|
streamingeden_thrift
|
|
eden_config
|
|
eden_inodes
|
|
eden_model
|
|
eden_store_hg
|
|
eden_tracing
|
|
${YARPL_LIBRARIES}
|
|
Folly::folly
|
|
)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(
|
|
eden_service
|
|
PUBLIC
|
|
eden_win_mount
|
|
eden_win_store
|
|
eden_win_utils
|
|
common_stats
|
|
)
|
|
else()
|
|
target_link_libraries(
|
|
eden_service
|
|
PUBLIC
|
|
eden_fuse
|
|
eden_model_git
|
|
eden_store_git
|
|
eden_takeover
|
|
)
|
|
endif()
|
|
|
|
if (CURL_FOUND)
|
|
target_link_libraries(
|
|
eden_service
|
|
PUBLIC
|
|
curl
|
|
)
|
|
endif()
|
|
|
|
if (APPLE)
|
|
target_link_libraries(
|
|
eden_service
|
|
PUBLIC
|
|
"-framework CoreFoundation"
|
|
"-framework IOKit"
|
|
)
|
|
endif()
|