mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ca37294995
Summary: Introduce a framework that allows recording structured log events which are encoded as JSON and piped to a configured command line program. Reviewed By: pkaush Differential Revision: D18025183 fbshipit-source-id: ab6b4d510a905a30252f2cff85d107a0d32d149e
28 lines
560 B
CMake
28 lines
560 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.
|
|
|
|
file(GLOB TELEMETRY_SRCS "*.cpp")
|
|
|
|
if (WIN32)
|
|
list(
|
|
REMOVE_ITEM TELEMETRY_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ScubaStructuredLogger.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SubprocessScribeLogger.cpp
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
eden_telemetry STATIC
|
|
${TELEMETRY_SRCS}
|
|
)
|
|
target_link_libraries(
|
|
eden_telemetry
|
|
PUBLIC
|
|
eden_config
|
|
eden_utils
|
|
fb303::fb303
|
|
Folly::folly
|
|
)
|