summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/media_router/BUILD.gn
blob: 1606ee158485b1d8851ba8e2ec3d37fea91ecb95 (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
# 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("router") {
  public_deps = [
    "//base",
    "//base:i18n",
    "//net",
    "//third_party/icu",
    "//url",
  ]

  sources = [
    # media_sink_internal needs to be included with Android due to typemapping.
    # Ideally, Android shouldn't be the case since it does not use Mojo for
    # Media Router.
    "discovery/media_sink_internal.cc",
    "discovery/media_sink_internal.h",
    "issue.cc",
    "issue.h",
    "media_route.cc",
    "media_route.h",
    "media_route_provider_helper.cc",
    "media_route_provider_helper.h",
    "media_sink.cc",
    "media_sink.h",
    "media_source.cc",
    "media_source.h",
    "route_request_result.cc",
    "route_request_result.h",
  ]

  deps = []

  if (!is_android) {
    sources += [
      "discovery/media_sink_service_base.cc",
      "discovery/media_sink_service_base.h",
      "discovery/media_sink_service_util.cc",
      "discovery/media_sink_service_util.h",
      "providers/cast/cast_media_source.cc",
      "providers/cast/cast_media_source.h",
    ]

    deps += [ "//components/cast_channel:cast_channel" ]
  }
}

static_library("test_support") {
  testonly = true
  deps = [
    "//base",
    "//chrome/test:test_support",
  ]
  public_deps = [ ":router" ]
  sources = [
    "test/test_helper.cc",
    "test/test_helper.h",
  ]
}