sapling/eden/fs/service/CMakeLists.txt
Katie Mancini 3d1eb3a8f9 move process name cache
Summary:
Stack context:
To get a build setup for edencommon I picked an eden library to move over
to edencommon.

I picked process name cache. I would like to have this library in watchman
so that I can log spawning process command lines as well as client command
lines.

This diff:
finally actually moves over process name cache

Reviewed By: chadaustin

Differential Revision: D34218020

fbshipit-source-id: 1e51ec6524d1e67a1dfd4d03a8189f882f5d3ff1
2022-04-04 11:37:38 -07:00

101 lines
2.0 KiB
CMake

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
add_fbthrift_library(
eden_service_thrift
eden.thrift
LANGUAGES cpp py
PY_NAMESPACE facebook.eden
SERVICES
EdenService
DEPENDS
eden_config_thrift
fb303::fb303_thrift
)
add_fbthrift_library(
streamingeden_thrift
streamingeden.thrift
LANGUAGES cpp
SERVICES
StreamingEdenService
DEPENDS
eden_service_thrift
)
file(GLOB SERVICE_SRCS "*.cpp")
# A couple utility files our split out into a separate lower-level library
# This also effectively includes ThriftUtil.h, which has no corresponding .cpp
# file.
# TODO: In the future it would perhaps be nicer to move these to a separate
# eden/fs/thrift/ subdirectory, perhaps along with eden.thrift too.
list(
REMOVE_ITEM SERVICE_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/PrettyPrinters.cpp
${CMAKE_CURRENT_SOURCE_DIR}/PrivHelperMain.cpp
)
add_library(
eden_service_thrift_util STATIC
PrettyPrinters.cpp
)
target_link_libraries(
eden_service_thrift_util
PUBLIC
eden_model
Folly::folly
)
list(APPEND EDEN_STORE_IMPLEMENTATIONS eden_store_hg)
if(EDEN_HAVE_RECAS)
list(APPEND EDEN_STORE_IMPLEMENTATIONS eden_store_recas)
endif()
if(EDEN_HAVE_GIT)
list(APPEND EDEN_STORE_IMPLEMENTATIONS eden_store_git)
endif()
add_library(
eden_service STATIC
${SERVICE_SRCS}
)
target_link_libraries(
eden_service
PUBLIC
eden_service_thrift_util
streamingeden_thrift_cpp
eden_build_config
eden_config
eden_fuse_privhelper
eden_inodes
eden_model
eden_nfs_server
eden_store
eden_telemetry
${EDEN_STORE_IMPLEMENTATIONS}
${YARPL_LIBRARIES}
Folly::folly
cpptoml
edencommon::utils
)
if (NOT WIN32)
target_link_libraries(
eden_service
PUBLIC
eden_fuse
eden_notifications
eden_takeover
)
endif()
if(EDEN_HAVE_USAGE_SERVICE)
add_subdirectory(facebook)
target_link_libraries(
eden_service
PUBLIC
eden_smartplatform_service
)
endif()