# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# Auto-generated by proxygen/facebook/generate_cmake.py - DO NOT EDIT MANUALLY

proxygen_add_library(proxygen_transport_qmux_qmux_framer
  SRCS
    QmuxFramer.cpp
  DEPS
    proxygen_http_codec_varint_utils
    mvfst::mvfst_codec_types
    mvfst::mvfst_folly_utils
  EXPORTED_DEPS
    proxygen_http_codec_capsule_codec
    proxygen_http_codec_webtransport_webtransport_framer
    Folly::folly_expected
    Folly::folly_io_iobuf
    Folly::folly_optional
    Folly::folly_utility
)

proxygen_add_library(proxygen_transport_qmux_qmux_codec
  SRCS
    QmuxCodec.cpp
  DEPS
    mvfst::mvfst_folly_utils
  EXPORTED_DEPS
    proxygen_http_webtransport_wt_util
    proxygen_transport_qmux_qmux_framer
    Folly::folly_io_iobuf
)

proxygen_add_library(proxygen_transport_qmux_qmux_transport
  SRCS
    QmuxTransport.cpp
  EXPORTED_DEPS
    Folly::folly_coro_task
    Folly::folly_io_iobuf
    Folly::folly_network_address
)

proxygen_add_library(proxygen_transport_qmux_folly_qmux_transport
  SRCS
    FollyQmuxTransport.cpp
  DEPS
    Folly::folly_io_coro_socket
  EXPORTED_DEPS
    proxygen_transport_qmux_qmux_transport
)

proxygen_add_library(proxygen_transport_qmux_qmux_session
  SRCS
    QmuxSession.cpp
  DEPS
    proxygen_transport_qmux_qmux_codec
    Folly::folly_logging_logging
  EXPORTED_DEPS
    proxygen_http_coro_util_CoroWtSession
    proxygen_http_webtransport_wt_stream_manager
    proxygen_http_webtransport_wt_util
    proxygen_transport_qmux_qmux_framer
    proxygen_transport_qmux_qmux_transport
    mvfst::mvfst_common_events_quic_executor
)

proxygen_add_library(proxygen_transport_qmux_qmux_connector
  SRCS
    QmuxConnector.cpp
  DEPS
    mvfst::mvfst_folly_utils
    Folly::folly_io_iobuf
    Folly::folly_logging_logging
    fmt::fmt
  EXPORTED_DEPS
    proxygen_http_webtransport_wt_stream_manager
    proxygen_transport_qmux_qmux_framer
    proxygen_transport_qmux_qmux_session
    proxygen_transport_qmux_qmux_transport
    mvfst::mvfst_common_events_quic_executor
    Folly::folly_coro_task
)

if(BUILD_TESTS)
  add_subdirectory(test)
endif()
