mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
99a1771351
Summary: While it's unlikely to work properly (it uses /bin/sh), it compiles properly on Windows, so let's include it in the build. Reviewed By: wez Differential Revision: D23520368 fbshipit-source-id: 267ba04f98f5dacc81e1772f86f5ad43c846815d
62 lines
1.1 KiB
CMake
62 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)
|
|
add_subdirectory(notifications)
|
|
|
|
# Platform specific code
|
|
if (WIN32)
|
|
add_subdirectory(win)
|
|
else()
|
|
add_subdirectory(takeover)
|
|
endif()
|