sapling/eden/fs/inodes/CMakeLists.txt
Adam Simpkins 4e38a7c74f build edenfsctl with CMake
Summary:
Update the CMakeLists.txt to also build the Python-based `edenfsctl` command
line tool.

This requires switching most of the thrift rules to generate both C++ and
Python sources.

Note that one missing feature at this point is that this does not package
external dependencies into the binary.  Currently `edenfsctl` depends on both
`six` and `toml` as external dependencies.  For now these must be available in
your `PYTHONPATH` in order to run the generated `edenfsctl` binary.

Reviewed By: chadaustin

Differential Revision: D17127615

fbshipit-source-id: fc138ab39e75c6a5bbd39e3f527d4e9f7f420e46
2019-09-11 13:20:43 -07:00

44 lines
878 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 (WIN32)
# We should try detaching ServerState from the inodes
# so that we don't need to make the Windows code depend
# on it.
add_library(
eden_inodes STATIC
ServerState.cpp
)
target_link_libraries(
eden_inodes
PUBLIC
eden_journal
Folly::folly
)
else()
file(GLOB INODES_SRCS "*.cpp")
add_library(
eden_inodes STATIC
${INODES_SRCS}
)
target_link_libraries(
eden_inodes
PUBLIC
eden_config
eden_fuse
eden_journal
eden_model_git
eden_overlay_thrift_cpp
eden_overlay
eden_service
eden_store
eden_takeover_thrift
eden_tracing
eden_utils
)
endif()
add_subdirectory(overlay)