summaryrefslogtreecommitdiff
path: root/chromium/services/content/BUILD.gn
blob: f61ba7358e01cc57f37c1557ad17adc3440f8c74 (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
# Copyright 2018 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("//build/config/ui.gni")

source_set("impl") {
  visibility = [
    ":tests",
    "//content/browser",
  ]

  public = [
    "navigable_contents_delegate.h",
    "service.h",
    "service_delegate.h",
  ]

  sources = [
    "navigable_contents_factory_impl.cc",
    "navigable_contents_factory_impl.h",
    "navigable_contents_impl.cc",
    "navigable_contents_impl.h",
    "service.cc",
  ]

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

  public_deps = [
    "//base",
    "//services/service_manager/public/cpp",
    "//ui/gfx",
  ]

  deps = [
    "//mojo/public/cpp/bindings",
    "//services/content/public/cpp",
    "//services/content/public/mojom",
  ]

  if (toolkit_views && !is_chromecast) {
    deps += [
      "//ui/base",
      "//ui/views",
    ]

    if (use_aura) {
      deps += [ "//ui/aura" ]
    }
  }
}

source_set("tests") {
  testonly = true

  sources = [ "service_unittest.cc" ]

  deps = [
    ":impl",
    "//base",
    "//base/test:test_support",
    "//services/content/public/cpp",
    "//services/content/public/cpp/test:tests",
    "//services/content/public/mojom",
    "//services/service_manager/public/cpp/test:test_support",
    "//testing/gtest",
    "//url",
  ]
}