chromium/chrome/services/sharing/webrtc/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

source_set("webrtc") {
  sources = [
    "ipc_network_manager.cc",
    "ipc_network_manager.h",
    "ipc_packet_socket_factory.cc",
    "ipc_packet_socket_factory.h",
    "mdns_responder_adapter.cc",
    "mdns_responder_adapter.h",
    "p2p_async_address_resolver.cc",
    "p2p_async_address_resolver.h",
    "p2p_port_allocator.cc",
    "p2p_port_allocator.h",
    "p2p_socket_client.cc",
    "p2p_socket_client.h",
    "p2p_socket_client_delegate.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//components/webrtc:net_address_utils",
    "//components/webrtc:thread_wrapper",
    "//third_party/webrtc_overrides:webrtc_component",
  ]

  public_deps = [
    "//base",
    "//chrome/services/sharing/public/cpp",
    "//chromeos/ash/services/nearby/public/mojom",
    "//mojo/public/cpp/bindings",
  ]
}