summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/media/router/discovery/BUILD.gn
blob: d4cb50ef8f43832192441dd787c10bb4ad7597f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

static_library("discovery") {
  inputs = [
    "$root_gen_dir/chrome/grit/generated_resources.h",
  ]
  deps = [
    "//base",
    "//base:i18n",
    "//chrome/app:generated_resources",
    "//chrome/common:constants",
    "//chrome/common/media_router:router",
    "//components/cast_channel",
    "//components/version_info",
    "//content/public/browser",
    "//content/public/common",
  ]
  sources = [
    "dial/device_description_fetcher.cc",
    "dial/device_description_fetcher.h",
    "dial/device_description_service.cc",
    "dial/device_description_service.h",
    "dial/dial_app_discovery_service.cc",
    "dial/dial_app_discovery_service.h",
    "dial/dial_device_data.cc",
    "dial/dial_device_data.h",
    "dial/dial_media_sink_service.cc",
    "dial/dial_media_sink_service.h",
    "dial/dial_media_sink_service_impl.cc",
    "dial/dial_media_sink_service_impl.h",
    "dial/dial_registry.cc",
    "dial/dial_registry.h",
    "dial/dial_service.cc",
    "dial/dial_service.h",
    "dial/dial_url_fetcher.cc",
    "dial/dial_url_fetcher.h",
    "dial/parsed_dial_app_info.cc",
    "dial/parsed_dial_app_info.h",
    "dial/parsed_dial_device_description.cc",
    "dial/parsed_dial_device_description.h",
    "dial/safe_dial_app_info_parser.cc",
    "dial/safe_dial_app_info_parser.h",
    "dial/safe_dial_device_description_parser.cc",
    "dial/safe_dial_device_description_parser.h",
    "mdns/cast_media_sink_service.cc",
    "mdns/cast_media_sink_service.h",
    "mdns/cast_media_sink_service_impl.cc",
    "mdns/cast_media_sink_service_impl.h",
    "mdns/dns_sd_delegate.cc",
    "mdns/dns_sd_delegate.h",
    "mdns/dns_sd_device_lister.cc",
    "mdns/dns_sd_device_lister.h",
    "mdns/dns_sd_registry.cc",
    "mdns/dns_sd_registry.h",
    "mdns/media_sink_util.cc",
    "mdns/media_sink_util.h",
    "media_sink_discovery_metrics.cc",
    "media_sink_discovery_metrics.h",
  ]

  if (!is_android) {
    sources += [
      "discovery_network_info.cc",
      "discovery_network_info.h",
      "discovery_network_list.h",
      "discovery_network_list_wifi.h",
      "discovery_network_list_wifi_linux.cc",
      "discovery_network_list_wifi_mac.mm",
      "discovery_network_list_win.cc",
      "discovery_network_monitor.cc",
      "discovery_network_monitor.h",
      "discovery_network_monitor_metric_observer.cc",
      "discovery_network_monitor_metric_observer.h",
      "discovery_network_monitor_metrics.cc",
      "discovery_network_monitor_metrics.h",
    ]
    if (is_posix) {
      sources += [ "discovery_network_list_posix.cc" ]
    }
  }

  if (is_mac) {
    libs = [ "CoreWLAN.framework" ]
  }
}