Improve the logic for hiding the multi-window resize handle
[chromium-blink-merge.git] / components / BUILD.gn
blobf01dbe96d0421bf4bc3b0ae09617cba1e59edf03
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/features.gni")
6 import("//build/config/ui.gni")
8 # Collection of all components. You wouldn't link to this, but this is rather
9 # to reference the files so they can be compiled by the build system.
10 group("all_components") {
11   testonly = true  # You shouldn't actually link to this.
12   visibility = [ "//:*" ]  # Only for the root targets to bring in.
14   deps = [
15     "//components/auto_login_parser",
16     "//components/autofill/content/browser",
17     "//components/autofill/content/common",
18     "//components/autofill/content/renderer",
19     "//components/bookmarks/browser",
20     "//components/bookmarks/common",
21     "//components/bookmarks/test",
22     "//components/captive_portal",
23     "//components/cdm/browser",
24     "//components/cdm/common",
25     "//components/cdm/renderer",
26     "//components/cloud_devices/common",
27     "//components/component_updater",
28     "//components/content_settings/core/browser",
29     "//components/content_settings/core/common",
30     "//components/copresence_endpoints",
31     "//components/crash/app",
32     "//components/crash/browser",
33     "//components/crx_file",
34     "//components/data_reduction_proxy/core/browser",
35     "//components/data_reduction_proxy/core/common",
36     "//components/dom_distiller/core",
37     "//components/domain_reliability",
38     "//components/enhanced_bookmarks",
39     "//components/favicon/core",
40     "//components/favicon_base",
41     "//components/feedback",
42     "//components/gcm_driver",
43     "//components/google/core/browser",
44     "//components/history/core/browser",
45     "//components/history/core/common",
46     "//components/history/core/test",
47     "//components/infobars/core",
48     "//components/infobars/test:test_support",
49     "//components/invalidation",
50     "//components/json_schema",
51     "//components/keyed_service/content",
52     "//components/language_usage_metrics",
53     "//components/leveldb_proto",
54     "//components/login",
55     "//components/metrics",
56     "//components/navigation_interception",
57     "//components/navigation_metrics",
58     "//components/network_time",
59     "//components/omaha_client",
60     "//components/omnibox",
61     "//components/onc",
62     "//components/os_crypt",
63     "//components/pairing",
64     "//components/password_manager/content/browser",
65     "//components/password_manager/core/browser",
66     "//components/password_manager/core/common",
67     "//components/pdf/browser",
68     "//components/pdf/common",
69     "//components/pdf/renderer",
70     "//components/plugins/renderer",
71     "//components/policy",
72     "//components/power",
73     "//components/precache/core",
74     "//components/precache/content",
75     "//components/pref_registry",
76     "//components/proximity_auth",
77     "//components/proximity_auth/cryptauth",
78     "//components/query_parser",
79     "//components/rappor",
80     "//components/renderer_context_menu",
81     "//components/resources:components_resources",
82     "//components/search",
83     "//components/search_engines",
84     "//components/search_provider_logos",
85     "//components/sessions:sessions_content",
86     "//components/signin/core/browser",
87     "//components/startup_metric_utils",
88     "//components/strings",
89     "//components/sync_driver",
90     "//components/tracing",
91     "//components/translate/content/browser",
92     "//components/translate/content/common",
93     "//components/translate/content/renderer",
94     "//components/translate/core/browser",
95     "//components/translate/core/common",
96     "//components/url_fixer",
97     "//components/url_matcher",
98     "//components/user_manager",
99     "//components/user_prefs",
100     "//components/variations",
101     "//components/visitedlink/browser",
102     "//components/visitedlink/common",
103     "//components/visitedlink/renderer",
104     "//components/web_cache/browser",
105     "//components/web_cache/common",
106     "//components/web_cache/renderer",
107     "//components/web_modal",
108     "//components/webdata/common",
109     "//components/web_resource",
110     "//components/wifi",
111   ]
113   if (!is_win && !is_mac) {
114     deps -= [ "//components/wifi" ]
115   }
116   if (!is_chromeos) {
117     deps -= [ "//components/pairing" ]
118   }
119   if (is_ios) {
120     deps -= [
121       "//components/keyed_service/content",
122       "//components/copresence_endpoints",
123     ]
124   }
126   if (!enable_plugins) {
127     deps -= [
128       "//components/pdf/browser",
129       "//components/pdf/common",
130       "//components/pdf/renderer",
131     ]
132   }
134   if (is_android) {
135     deps -= [
136       "//components/autofill/content/browser",  # Blocked on content/blink.
137       "//components/autofill/content/common",  # Blocked on content.
138       "//components/autofill/content/renderer",  # Blocked on content/blink.
139       "//components/crash/app",  # Should work, needs checking.
140       "//components/crash/browser",  # Should work, needs checking.
141       "//components/captive_portal",  # Should work, needs checking.
142       "//components/cloud_devices/common",  # Should work, needs checking.
143       "//components/cdm/browser",  # Blocked on content.
144       "//components/cdm/common",  # Blocked on content.
145       "//components/cdm/renderer",  # Blocked on content.
146       "//components/data_reduction_proxy/core/browser",  # Should work, needs checking.
147       "//components/data_reduction_proxy/core/common",  # Should work, needs checking.
148       "//components/dom_distiller/core",  # Blocked on content.
149       "//components/domain_reliability",  # Blocked on content.
150       "//components/favicon_base",  # Should work, needs checking.
151       "//components/favicon/core",  # Blocked on keyed service.
152       "//components/feedback",  # Blocked on content.
153       "//components/gcm_driver",  # Should work, needs checking.
154       "//components/google/core/browser",  # Should work, needs checking.
155       "//components/history/core/browser",  # Should work, needs checking.
156       "//components/history/core/common",  # Should work, needs checking.
157       "//components/history/core/test",  # Should work, needs checking.
158       "//components/infobars/core",  # Should work, needs checking.
159       "//components/infobars/test:test_support",  # Should work, needs checking.
160       "//components/invalidation",  # Should work, needs checking.
161       "//components/json_schema",  # Should work, needs checking.
162       "//components/keyed_service/content",  # Blocked on content.
163       "//components/navigation_interception",  # Blocked on content.
164       "//components/omnibox",  # Should work, needs checking.
165       "//components/password_manager/content/browser",  # Blocked on content.
166       "//components/password_manager/core/browser",  # Should work, needs checking.
167       "//components/password_manager/core/common",  # Should work, needs checking.
168       "//components/plugins/renderer",  # Blocked on blink.
169       "//components/power",  # Blocked on content.
170       "//components/policy",  # Blocked on content (indirectly via autofill).
171       "//components/precache/content",  # Blocked on content.
172       "//components/precache/core",  # Should work, needs checking.
173       "//components/rappor",  # Should work, needs checking.
174       "//components/renderer_context_menu",  # Blocked on content.
175       "//components/search_engines",  # Should work, needs checking.
176       "//components/search_provider_logos",  # Should work, needs checking.
177       "//components/sessions:sessions_content",  # Blocked on content.
178       "//components/signin/core/browser",  # Should work, needs checking.
179       "//components/translate/content/browser",  # Blocked on content.
180       "//components/translate/content/common",  # Blocked on content.
181       "//components/translate/content/renderer",  # Blocked on content.
182       "//components/user_prefs",  # Blocked on content.
183       "//components/visitedlink/browser",  # Blocked on content.
184       "//components/visitedlink/common",  # Blocked on content.
185       "//components/visitedlink/renderer",  # Blocked on blink
186       "//components/web_cache/browser",  # Blocked on content and blink.
187       "//components/web_cache/renderer",  # Blocked on content and blink.
188       "//components/web_modal",  # Blocked on content.
189     ]
190   }
192   if (!is_ios && !is_android) {
193     deps += [
194       "//components/copresence",
195       "//components/storage_monitor",
196     ]
197   }
199   if (!is_ios) {
200     deps += [ "//components/app_modal" ]
201   }
203   if (toolkit_views) {
204     deps += [ "//components/constrained_window" ]
205   }
208 # To add a unit test to this target, make a "unit_test" source_set in your
209 # component (it's important to use a source_set instead of a static library or
210 # no tests will run) and add a reference here. You can add more than one unit
211 # test target if convenient.
212 test("components_unittests") {
213   sources = [
214     "test/run_all_unittests.cc",
215   ]
217   # Add only ":unit_tests" dependencies here. If your tests have dependencies
218   # (this would at least include the component itself), they should be on the
219   # test source set and not here.
220   deps = [
221     "//components/auto_login_parser:unit_tests",
222     "//components/autofill/content/browser:unit_tests",
223     "//components/autofill/core/browser:unit_tests",
224     "//components/autofill/core/common:unit_tests",
225     "//components/bookmarks/browser:unit_tests",
226     "//components/captive_portal:unit_tests",
227     "//components/cloud_devices/common:unit_tests",
228     "//components/component_updater:unit_tests",
229     "//components/content_settings/core/browser:unit_tests",
230     "//components/content_settings/core/common:unit_tests",
231     "//components/crx_file:unit_tests",
232     "//components/data_reduction_proxy/core/browser:unit_tests",
233     "//components/data_reduction_proxy/core/common:unit_tests",
234     "//components/dom_distiller/core:unit_tests",
235     "//components/domain_reliability:unit_tests",
236     "//components/google/core/browser:unit_tests",
237     "//components/login:unit_tests",
238     "//components/metrics:unit_tests",
239     "//components/omnibox:unit_tests",
240     "//components/ownership:unit_tests",
241     "//components/proximity_auth:unit_tests",
242     "//components/variations:unit_tests",
243     "//components/web_resource:unit_tests",
244     "//components/webdata/common:unit_tests",
246     # These are the deps required by the code in this target.
247     "//base",
248     "//base/test:test_support",
249     "//content/test:test_support",
250     "//ui/base",
251   ]
253   # TODO(GYP) need this target.
254   #'breakpad/app/crash_keys_win_unittest.cc',
256   # Precache tests need these defines.
257   #configs += [ "//components/precache/core:precache_config" ]
259   if (toolkit_views) {
260     # TODO(GYP) enable this as above.
261     #deps += [ "//components/constrained_window:unit_tests" ]
262   }