summaryrefslogtreecommitdiffstats
path: root/chrome/browser/media/router/BUILD.gn
blob: 5fb15b031043f094177a83b97ae1057a1f72924e (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
# Copyright 2015 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.
#

import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")

gypi_values = exec_script("//build/gypi_to_gn.py",
                          [ rebase_path("media_router.gypi") ],
                          "scope",
                          [ "media_router.gypi" ])

# TODO(mfoltz): Fix problem that requires explicitly listing //skia
static_library("router") {
  deps = [
    "//base",
    "//chrome/common:constants",
    "//components/keyed_service/content",
    "//components/keyed_service/core",
    "//skia",
    "//url",
  ]
  sources = rebase_path(gypi_values.media_router_sources,
                        ".",
                        "//chrome/browser/media/router")
  if (!is_android) {
    deps += [
      ":mojo_bindings",
      "//extensions/browser",
      "//mojo/public/cpp/bindings",
    ]
    sources += rebase_path(gypi_values.media_router_non_android_sources,
                           ".",
                           "//chrome/browser/media/router")
  }
}

mojom("mojo_bindings") {
  sources = [
    "media_router.mojom",
  ]
}

source_set("test_support") {
  testonly = true
  deps = [
    ":mojo_bindings",
    ":router",
    "//chrome/test:test_support",
    "//testing/gmock",
  ]
  sources = rebase_path(gypi_values.media_router_test_support_sources,
                        ".",
                        "//chrome/browser/media/router")
}