# Copyright 2026 The A11 Authors
#
# 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.

set(A11_NET_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/boundary.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/byte_chunking.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/channel_wire_stream.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/in_process_wire_stream.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/wire_stream.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/wire_stream_with_recv.cc
    PARENT_SCOPE)

set(A11_NET_HTTP_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/describe_endpoint.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/server_headers.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http/connection_pool.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http/download.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http/fetch.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http/url.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http2.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/http_sse_wire_stream.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/http1_codec.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/http1_connection.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/http2_websocket_channel.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/websocket_wire_stream.cc
    PARENT_SCOPE)

set(A11_NET_WEBRTC_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/multiplexed_binary_channel.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/path_mtu.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/internal/rtc_binary_channel.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/signalling.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/webrtc_wire_stream.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/websocket_signalling.cc
    PARENT_SCOPE)
