# 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.

# @generated by folly/facebook/generate_cmake.py

folly_add_library(
  NAME detail_barrier
  HEADERS Barrier.h
  EXPORTED_DEPS
    folly_coro_coroutine
    folly_coro_traits
    folly_coro_with_async_stack
    folly_tracing_async_stack
)

folly_add_library(
  NAME detail_barrier_task
  HEADERS BarrierTask.h
  EXPORTED_DEPS
    folly_coro_coroutine
    folly_coro_detail_detail_barrier
    folly_coro_detail_detail_malloc
    folly_coro_with_async_stack
)

folly_add_library(
  NAME detail_current_async_frame
  HEADERS CurrentAsyncFrame.h
  EXPORTED_DEPS
    folly_coro_coroutine
    folly_coro_with_async_stack
    folly_executor
    folly_tracing_async_stack
)

folly_add_library(
  NAME detail_helpers
  HEADERS Helpers.h
  EXPORTED_DEPS
    folly_coro_coroutine
    folly_executor
    folly_io_async_request_context
    folly_singleton_thread_local
    folly_tracing_async_stack
)

folly_add_library(
  NAME detail_malloc
  SRCS Malloc.cpp
  HEADERS Malloc.h
  DEPS folly_lang_hint
  EXPORTED_DEPS
    folly_c_portability
    folly_lang_new
)

folly_add_library(
  NAME detail_manual_lifetime
  HEADERS ManualLifetime.h
  EXPORTED_DEPS folly_scope_guard
)

folly_add_library(
  NAME detail_traits
  HEADERS Traits.h
  EXPORTED_DEPS folly_traits
)

folly_add_library(
  NAME inline_task
  HEADERS InlineTask.h
  EXPORTED_DEPS
    folly_coro_coroutine
    folly_coro_detail_detail_malloc
    folly_coro_with_async_stack
    folly_lang_assume
    folly_scope_guard
    folly_tracing_async_stack
    folly_try
)

folly_add_library(
  NAME pick_task_wrapper
  HEADERS PickTaskWrapper.h
  EXPORTED_DEPS
    folly_lang_safe_alias_fwd
    folly_portability
)
