summaryrefslogtreecommitdiffstats
path: root/mojo/services/BUILD.gn
blob: cb6c9e5b072b81a5268833e005cd730a13157284 (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
89
90
# Copyright 2014 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")

group("services") {
  deps = [
    "//mojo/services/network/public/interfaces",
    "//components/clipboard/public/interfaces",
    "//components/native_viewport/public/interfaces",
    "//components/surfaces/public/interfaces",
    "//components/view_manager/public/interfaces",
    "//third_party/mojo_services/src/content_handler/public/interfaces",
    "//third_party/mojo_services/src/navigation/public/interfaces",
    "//ui/mojo/events:interfaces",
    "//ui/mojo/geometry:interfaces",
  ]

  if (!is_component_build) {
    deps += [
      "//components/core_services",
      "//components/html_viewer",
      "//components/kiosk_wm:window_manager",
      "//components/native_viewport",
      "//components/surfaces",
      "//components/view_manager",
      "//components/window_manager:lib",
      "//mojo/services/network",
      "//mojo/services/tracing",
    ]

    # TODO(GYP): Make this work.
    if (is_mac) {
      deps -= [
        "//components/html_viewer",
        "//components/kiosk_wm:window_manager",
        "//components/native_viewport",
        "//components/view_manager",
        "//components/window_manager:lib",
      ]
    }
  }
}

group("tests") {
  testonly = true
  deps = [
    ":services",
  ]
  if (!is_component_build) {
    deps += [
      "//components/html_viewer:tests",
      "//components/view_manager:view_manager_service_unittests",
    ]

    # TODO(GYP): Make this work.
    if (is_mac) {
      deps -= [
        "//components/html_viewer:tests",
        "//components/view_manager:view_manager_service_unittests",
      ]
    }
  }
}

group("apptests") {
  testonly = true
  deps = [
    ":services",
  ]
  if (!is_component_build) {
    deps += [
      "//components/clipboard:apptests",
      "//components/html_viewer:apptests",
      "//components/view_manager:apptests",
      "//components/window_manager:apptests",
      "//mojo/services/network:apptests",
    ]

    # TODO(GYP): Make this work.
    if (is_mac) {
      deps -= [
        "//components/html_viewer:apptests",
        "//components/view_manager:apptests",
        "//components/window_manager:apptests",
      ]
    }
  }
}