# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

folly_add_library(
  NAME graph_cycle_detector
  HEADERS
    GraphCycleDetector.h
  EXTERNAL_DEPS
    ${GLOG_LIBRARIES}
)

folly_add_library(
  NAME observer_manager
  SRCS
    Core.cpp
    ObserverManager.cpp
  HEADERS
    Core.h
    ObserverManager.h
  DEPS
    folly_concurrency_unbounded_queue
    folly_exception_string
    folly_format
    folly_portability_gflags
    folly_range
    folly_singleton
    folly_system_thread_name
  EXPORTED_DEPS
    folly_experimental_observer_detail_graph_cycle_detector
    folly_fibers_core_manager
    folly_function
    folly_functional_invoke
    folly_futures_core
    folly_portability
    folly_synchronization_sanitize_thread
    folly_synchronized
  EXTERNAL_DEPS
    ${GLOG_LIBRARIES}
)
