Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / mojo / services / BUILD.gn
blobc18feb483161213f045be41cc69e8ea270f3dfbd
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
7 group("services") {
8   deps = [
9     "//mojo/services/network/public/interfaces",
10     "//components/clipboard/public/interfaces",
11     "//components/native_viewport/public/interfaces",
12     "//components/surfaces/public/interfaces",
13     "//components/view_manager/public/interfaces",
14     "//third_party/mojo_services/src/content_handler/public/interfaces",
15     "//third_party/mojo_services/src/navigation/public/interfaces",
16     "//ui/mojo/events:interfaces",
17     "//ui/mojo/geometry:interfaces",
18   ]
20   if (!is_component_build) {
21     deps += [
22       "//components/clipboard",
23       "//components/html_viewer",
24       "//components/kiosk_wm:window_manager",
25       "//components/native_viewport",
26       "//components/surfaces",
27       "//components/view_manager",
28       "//components/window_manager:lib",
29       "//mojo/services/network",
30       "//mojo/services/tracing",
31     ]
33     # TODO(GYP): Make this work.
34     if (is_mac) {
35       deps -= [
36         "//components/html_viewer",
37         "//components/kiosk_wm:window_manager",
38         "//components/native_viewport",
39         "//components/view_manager",
40         "//components/window_manager:lib",
41       ]
42     }
43   }
46 group("tests") {
47   testonly = true
48   deps = [
49     ":services",
50   ]
51   if (!is_component_build) {
52     deps += [
53       "//components/html_viewer:tests",
54       "//components/view_manager:view_manager_service_unittests",
55     ]
57     # TODO(GYP): Make this work.
58     if (is_mac) {
59       deps -= [
60         "//components/html_viewer:tests",
61         "//components/view_manager:view_manager_service_unittests",
62       ]
63     }
64   }
67 group("apptests") {
68   testonly = true
69   deps = [
70     ":services",
71   ]
72   if (!is_component_build) {
73     deps += [
74       "//components/clipboard:apptests",
75       "//components/html_viewer:apptests",
76       "//components/view_manager:apptests",
77       "//components/window_manager:apptests",
78       "//mojo/services/network:apptests",
79     ]
81     # TODO(GYP): Make this work.
82     if (is_mac) {
83       deps -= [
84         "//components/html_viewer:apptests",
85         "//components/view_manager:apptests",
86         "//components/window_manager:apptests",
87       ]
88     }
89   }