Add a few more European timezones
[chromium-blink-merge.git] / components / BUILD.gn
blob50f2c4639ffaf580a57c506451a94aa16797d71a
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_sockets",
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/wifi",
110   ]
112   if (!is_win && !is_mac) {
113     deps -= [ "//components/wifi" ]
114   }
115   if (!is_chromeos) {
116     deps -= [ "//components/pairing" ]
117   }
118   if (is_ios) {
119     deps -= [
120       "//components/keyed_service/content",
121       "//components/copresence_sockets",
122     ]
123   }
125   if (!enable_plugins) {
126     deps -= [
127       "//components/pdf/browser",
128       "//components/pdf/common",
129       "//components/pdf/renderer",
130     ]
131   }
133   if (is_android) {
134     deps -= [
135       "//components/autofill/content/browser",  # Blocked on content/blink.
136       "//components/autofill/content/common",  # Blocked on content.
137       "//components/autofill/content/renderer",  # Blocked on content/blink.
138       "//components/crash/app",  # Should work, needs checking.
139       "//components/crash/browser",  # Should work, needs checking.
140       "//components/captive_portal",  # Should work, needs checking.
141       "//components/cloud_devices/common",  # Should work, needs checking.
142       "//components/cdm/browser",  # Blocked on content.
143       "//components/cdm/common",  # Blocked on content.
144       "//components/cdm/renderer",  # Blocked on content.
145       "//components/data_reduction_proxy/core/browser",  # Should work, needs checking.
146       "//components/data_reduction_proxy/core/common",  # Should work, needs checking.
147       "//components/dom_distiller/core",  # Blocked on content.
148       "//components/domain_reliability",  # Blocked on content.
149       "//components/favicon_base",  # Should work, needs checking.
150       "//components/favicon/core",  # Blocked on keyed service.
151       "//components/feedback",  # Blocked on content.
152       "//components/gcm_driver",  # Should work, needs checking.
153       "//components/google/core/browser",  # Should work, needs checking.
154       "//components/history/core/browser",  # Should work, needs checking.
155       "//components/history/core/common",  # Should work, needs checking.
156       "//components/history/core/test",  # Should work, needs checking.
157       "//components/infobars/core",  # Should work, needs checking.
158       "//components/infobars/test:test_support",  # Should work, needs checking.
159       "//components/invalidation",  # Should work, needs checking.
160       "//components/json_schema",  # Should work, needs checking.
161       "//components/keyed_service/content",  # Blocked on content.
162       "//components/navigation_interception",  # Blocked on content.
163       "//components/omnibox",  # Should work, needs checking.
164       "//components/password_manager/content/browser",  # Blocked on content.
165       "//components/password_manager/core/browser",  # Should work, needs checking.
166       "//components/password_manager/core/common",  # Should work, needs checking.
167       "//components/plugins/renderer",  # Blocked on blink.
168       "//components/power",  # Blocked on content.
169       "//components/policy",  # Blocked on content (indirectly via autofill).
170       "//components/precache/content",  # Blocked on content.
171       "//components/precache/core",  # Should work, needs checking.
172       "//components/rappor",  # Should work, needs checking.
173       "//components/renderer_context_menu",  # Blocked on content.
174       "//components/search_engines",  # Should work, needs checking.
175       "//components/search_provider_logos",  # Should work, needs checking.
176       "//components/sessions:sessions_content",  # Blocked on content.
177       "//components/signin/core/browser",  # Should work, needs checking.
178       "//components/translate/content/browser",  # Blocked on content.
179       "//components/translate/content/common",  # Blocked on content.
180       "//components/translate/content/renderer",  # Blocked on content.
181       "//components/user_prefs",  # Blocked on content.
182       "//components/visitedlink/browser",  # Blocked on content.
183       "//components/visitedlink/common",  # Blocked on content.
184       "//components/visitedlink/renderer",  # Blocked on blink
185       "//components/web_cache/browser",  # Blocked on content and blink.
186       "//components/web_cache/renderer",  # Blocked on content and blink.
187       "//components/web_modal",  # Blocked on content.
188     ]
189   }
191   if (!is_ios && !is_android) {
192     deps += [
193       "//components/copresence",
194       "//components/storage_monitor",
195     ]
196   }
198   if (!is_ios) {
199     deps += [ "//components/app_modal" ]
200   }
202   if (toolkit_views) {
203     deps += [ "//components/constrained_window" ]
204   }
207 # TODO(GYP) enable when it links.
208 if (false) {
210 # To add a unit test to this target, make a "unit_test" source_set in your
211 # component (it's important to use a source_set instead of a static library or
212 # no tests will run) and add a reference here. You can add more than one unit
213 # test target if convenient.
214 test("components_unittests") {
215   sources = [
216     "test/run_all_unittests.cc",
217   ]
219   # Add only ":unit_tests" dependencies here. If your tests have dependencies
220   # (this would at least include the component itself), they should be on the
221   # test source set and not here.
222   deps = [
223     "//components/auto_login_parser:unit_tests",
224     "//components/autofill/content/browser:unit_tests",
225     "//components/autofill/core/browser:unit_tests",
226     "//components/autofill/core/common:unit_tests",
227     "//components/bookmarks/browser:unit_tests",
228     "//components/captive_portal:unit_tests",
229     "//components/cloud_devices/common:unit_tests",
230     "//components/component_updater:unit_tests",
231     "//components/content_settings/core/browser:unit_tests",
232     "//components/content_settings/core/common:unit_tests",
233     "//components/crx_file:unit_tests",
234     "//components/data_reduction_proxy/core/browser:unit_tests",
235     "//components/data_reduction_proxy/core/common:unit_tests",
236     "//components/dom_distiller/core:unit_tests",
237     "//components/domain_reliability:unit_tests",
238     "//components/login:unit_tests",
239     "//components/metrics:unit_tests",
240     "//components/omnibox:unit_tests",
241     "//components/ownership:unit_tests",
242     "//components/proximity_auth:unit_tests",
243     "//components/variations:unit_tests",
244   ]
246   # TODO(GYP) need this target.
247   #'breakpad/app/crash_keys_win_unittest.cc',
249   # Precache tests need these defines.
250   #configs += [ "//components/precache/core:precache_config" ]
252   if (toolkit_views) {
253     deps += [ "//components/constrained_window:unit_tests" ]
254   }