athena: Allow dragging the window-title down to switch between windows.
[chromium-blink-merge.git] / components / BUILD.gn
blob3f1efe4854e52604334cde651593d5d0dd7ea0b9
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 # Collection of all components. You wouldn't link to this, but this is rather
6 # to reference the files so they can be compiled by the build system.
7 group("all_components") {
8   visibility = "//:*"  # Only for the root targets to bring in.
10   deps = [
11     "//components/auto_login_parser",
12     "//components/autofill/content/browser",
13     "//components/autofill/content/common",
14     "//components/autofill/content/renderer",
15     "//components/bookmarks/browser",
16     "//components/bookmarks/common",
17     "//components/bookmarks/test",
18     "//components/breakpad/app",
19     "//components/breakpad/browser",
20     "//components/captive_portal",
21     "//components/cdm/browser",
22     "//components/cdm/common",
23     "//components/cdm/renderer",
24     "//components/cloud_devices/common",
25     "//components/component_updater",
26     "//components/data_reduction_proxy/browser",
27     "//components/data_reduction_proxy/common",
28     "//components/dom_distiller/core",
29     "//components/domain_reliability",
30     "//components/enhanced_bookmarks",
31     "//components/favicon/core",
32     "//components/favicon_base",
33     "//components/feedback",
34     "//components/gcm_driver",
35     "//components/google/core/browser",
36     "//components/history/core/browser",
37     "//components/history/core/common",
38     "//components/history/core/test",
39     "//components/infobars/core",
40     "//components/infobars/test:test_support",
41     "//components/invalidation",
42     "//components/json_schema",
43     "//components/keyed_service/content",
44     "//components/language_usage_metrics",
45     "//components/leveldb_proto",
46     "//components/metrics",
47     "//components/navigation_interception",
48     "//components/navigation_metrics",
49     "//components/network_time",
50     "//components/omaha_query_params",
51     "//components/omnibox",
52     "//components/onc",
53     "//components/os_crypt",
54     "//components/pairing",
55     "//components/password_manager/content/browser",
56     "//components/password_manager/core/browser",
57     "//components/password_manager/core/common",
58     "//components/plugins/renderer",
59     "//components/policy",
60     "//components/precache/core",
61     "//components/precache/content",
62     "//components/pref_registry",
63     "//components/query_parser",
64     "//components/rappor",
65     "//components/resources:components_resources",
66     "//components/search",
67     "//components/search_engines",
68     "//components/search_provider_logos",
69     "//components/sessions",
70     "//components/signin/core/browser",
71     "//components/startup_metric_utils",
72     "//components/strings",
73     "//components/sync_driver",
74     "//components/tracing",
75     "//components/translate/content/browser",
76     "//components/translate/content/common",
77     "//components/translate/content/renderer",
78     "//components/translate/core/browser",
79     "//components/translate/core/common",
80     "//components/url_fixer",
81     "//components/url_matcher",
82     "//components/usb_service",
83     "//components/user_manager",
84     "//components/user_prefs",
85     "//components/variations",
86     "//components/visitedlink/browser",
87     "//components/visitedlink/common",
88     "//components/visitedlink/renderer",
89     "//components/web_modal",
90     "//components/webdata/common",
91     "//components/wifi",
92   ]
94   if (!is_win && !is_mac) {
95     deps -= [ "//components/wifi" ]
96   }
97   if (!is_chromeos) {
98     deps -= [ "//components/pairing" ]
99   }
101   if (is_ios) {
102     deps -= [ "//components/keyed_service/content" ]
103   }
105   if (is_android) {
106     deps -= [
107       "//components/autofill/content/browser",  # Blocked on content/blink.
108       "//components/autofill/content/common",  # Blocked on content.
109       "//components/autofill/content/renderer",  # Blocked on content/blink.
110       "//components/breakpad/app",  # Should work, needs checking.
111       "//components/breakpad/browser",  # Should work, needs checking.
112       "//components/captive_portal",  # Should work, needs checking.
113       "//components/cloud_devices/common",  # Should work, needs checking.
114       "//components/cdm/browser",  # Blocked on content.
115       "//components/cdm/common",  # Blocked on content.
116       "//components/cdm/renderer",  # Blocked on content.
117       "//components/data_reduction_proxy/browser",  # Should work, needs checking.
118       "//components/data_reduction_proxy/common",  # Should work, needs checking.
119       "//components/dom_distiller/core",  # Blocked on content.
120       "//components/domain_reliability",  # Blocked on content.
121       "//components/favicon_base",  # Should work, needs checking.
122       "//components/favicon/core",  # Blocked on keyed service.
123       "//components/feedback",  # Blocked on content.
124       "//components/gcm_driver",  # Should work, needs checking.
125       "//components/google/core/browser",  # Should work, needs checking.
126       "//components/history/core/browser",  # Should work, needs checking.
127       "//components/history/core/common",  # Should work, needs checking.
128       "//components/history/core/test",  # Should work, needs checking.
129       "//components/infobars/core",  # Should work, needs checking.
130       "//components/infobars/test:test_support",  # Should work, needs checking.
131       "//components/invalidation",  # Should work, needs checking.
132       "//components/json_schema",  # Should work, needs checking.
133       "//components/keyed_service/content",  # Blocked on content.
134       "//components/navigation_interception",  # Blocked on content.
135       "//components/omnibox",  # Should work, needs checking.
136       "//components/password_manager/content/browser",  # Blocked on content.
137       "//components/password_manager/core/browser",  # Should work, needs checking.
138       "//components/password_manager/core/common",  # Should work, needs checking.
139       "//components/plugins/renderer",  # Blocked on blink.
140       "//components/policy",  # Blocked on content (indirectly via autofill).
141       "//components/precache/content",  # Blocked on content.
142       "//components/precache/core",  # Should work, needs checking.
143       "//components/rappor",  # Should work, needs checking.
144       "//components/search_engines",  # Should work, needs checking.
145       "//components/search_provider_logos",  # Should work, needs checking.
146       "//components/sessions",  # Blocked on content.
147       "//components/signin/core/browser",  # Should work, needs checking.
148       "//components/translate/content/browser",  # Blocked on content.
149       "//components/translate/content/common",  # Blocked on content.
150       "//components/translate/content/renderer",  # Blocked on content.
151       "//components/usb_service",  # Blocked on content.
152       "//components/user_prefs",  # Blocked on content.
153       "//components/visitedlink/browser",  # Blocked on content.
154       "//components/visitedlink/common",  # Blocked on content.
155       "//components/visitedlink/renderer",  # Blocked on blink
156       "//components/web_modal",  # Blocked on content.
157     ]
158   }
160   if (!is_ios && !is_android) {
161     deps += [
162       "//components/copresence",
163       "//components/storage_monitor",
164     ]
165   }
168 # TODO(GYP) enable when it links.
169 if (false) {
171 # To add a unit test to this target, make a "unit_test" source_set in your
172 # component (it's important to use a source_set instead of a static library or
173 # no tests will run) and add a reference here. You can add more than one unit
174 # test target if convenient.
175 test("components_unittests") {
176   sources = [
177     "test/run_all_unittests.cc",
178   ]
180   # Add only ":unit_tests" dependencies here. If your tests have dependencies
181   # (this would at least include the component itself), they should be on the
182   # test source set and not here.
183   deps = [
184     "//components/auto_login_parser:unit_tests",
185     "//components/autofill/content/browser:unit_tests",
186     "//components/autofill/core/browser:unit_tests",
187     "//components/autofill/core/common:unit_tests",
188     "//components/bookmarks/browser:unit_tests",
189     "//components/captive_portal:unit_tests",
190     "//components/cloud_devices/common:unit_tests",
191     "//components/data_reduction_proxy/browser:unit_tests",
192     "//components/data_reduction_proxy/common:unit_tests",
193     "//components/dom_distiller/core:unit_tests",
194     "//components/domain_reliability:unit_tests",
195     "//components/omnibox:unit_tests",
196   ]
198   # TODO(GYP) need this target.
199   #'breakpad/app/crash_keys_win_unittest.cc',
201   # Precache tests need these defines.
202   #configs += [ "//components/precache/core:precache_config" ]