# 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 static_tracepoint
  HEADERS
    StaticTracepoint-ELF.h
    StaticTracepoint.h
  EXPORTED_DEPS
    folly_c_portability
)

folly_add_library(
  NAME scoped_trace_section
  HEADERS
    ScopedTraceSection.h
)

folly_add_library(
  NAME async_stack
  SRCS
    AsyncStack.cpp
  HEADERS
    AsyncStack-inl.h
    AsyncStack.h
  DEPS
    folly_indestructible
    folly_lang_hint
    folly_likely
    folly_portability_pthread
    folly_synchronized
  EXPORTED_DEPS
    folly_c_portability
    folly_coro_coroutine
    folly_cpp_attributes
    folly_function
    folly_portability
  EXTERNAL_DEPS
    ${GLOG_LIBRARIES}
)
