sapling/eden/fs/fuse/CMakeLists.txt
Adam Simpkins 129d87fe23 use the normal PrivHelper.h header file on Windows
Summary:
While EdenFS does not use a separate privhelper process on Windows, it still
defines a stub PrivHelper class.  However, this class was previously defined
in a separate win/utils/Stub.h header file, which led to awkward `#ifdef`s to
include the correct platform-specific header file.

This diff moves the definition of the dummy PrivHelper class in Windows into
the same `PrivHelper.h` header file used on POSIX platforms.  This results in
a few more `ifdef`s in the PrivHelper files, but fewer `ifdef`s in the calling
code, and will make it easier to start unifying more of the `EdenMain` logic
on Windows and non-Windows platforms.

Reviewed By: xavierd

Differential Revision: D21332568

fbshipit-source-id: c63bf2b4a8b7e767d7db7dcda28675f735c23bf8
2020-05-01 14:01:40 -07:00

23 lines
456 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)
file(GLOB FUSE_SRCS "*.cpp")
add_library(
eden_fuse STATIC
${FUSE_SRCS}
)
target_link_libraries(
eden_fuse
PUBLIC
eden_fuse_privhelper
eden_notifications
eden_telemetry
Folly::folly
)
endif()
add_subdirectory(privhelper)