# 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_persistent_fizz_psk_cache
  SRCS
    PersistentFizzPskCache.cpp
  EXPORTED_DEPS
    wangle::wangle_client_persistence
    fizz::fizz
)

proxygen_add_library(proxygen_transport_persistent_quic_psk_cache
  SRCS
    PersistentQuicPskCache.cpp
  DEPS
    mvfst::mvfst_client_cached_server_tp_serialization
    fizz::fizz
    Folly::folly_conv
  EXPORTED_DEPS
    proxygen_transport_persistent_fizz_psk_cache
    mvfst::mvfst_fizz_client_handshake_psk_cache
    wangle::wangle_client_persistence
    fizz::fizz
    Folly::folly_json_dynamic
    Folly::folly_optional
)

proxygen_add_library(proxygen_transport_h3_datagram_async_socket
  SRCS
    H3DatagramAsyncSocket.cpp
  DEPS
    proxygen_hq_server
    proxygen_transport_connect_udp_utils
    mvfst::mvfst_common_udpsocket_folly_async_udp_socket
    mvfst::mvfst_fizz_client_handshake
    wangle::wangle_acceptor_acceptor_core
    fizz::fizz
    Folly::folly_file_util
  EXPORTED_DEPS
    proxygen_http_session_hq_upstream_session
    proxygen_http_session_http_transaction
    mvfst::mvfst_api_transport
    mvfst::mvfst_client
    fizz::fizz
    Folly::folly_io_async_async_socket_exception
    Folly::folly_io_async_async_udp_socket
)

proxygen_add_library(proxygen_transport_connect_udp_utils
  SRCS
    ConnectUDPUtils.cpp
  DEPS
    mvfst::mvfst_codec_types
    mvfst::mvfst_folly_utils
    Folly::folly_string
  EXPORTED_DEPS
    Folly::folly_io_iobuf
    Folly::folly_optional
)

proxygen_add_library(proxygen_transport_persistent_quic_token_cache
  SRCS
    PersistentQuicTokenCache.cpp
  EXPORTED_DEPS
    mvfst::mvfst_fizz_client_handshake_token_cache
    wangle::wangle_client_persistence
)

proxygen_add_library(proxygen_transport_async_udp_socket_factory
  SRCS
    AsyncUDPSocketFactory.cpp
  EXPORTED_DEPS
    proxygen_utils_exception
    Folly::folly_expected
    Folly::folly_io_async_async_udp_socket
    Folly::folly_network_address
)

add_subdirectory(qmux)

if(BUILD_TESTS)
  add_subdirectory(test)
endif()
