Embedder API for accessing DOM3 code value based on dom code value
[chromium-blink-merge.git] / components / BUILD.gn
blob10d0d8900b5ab32e3ce486e59b7a38290e566783
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")
7 import("//testing/test.gni")
9 # Collection of all components. You wouldn't link to this, but this is rather
10 # to reference the files so they can be compiled by the build system.
11 group("all_components") {
12   testonly = true  # You shouldn't actually link to this.
13   visibility = [ "//:*" ]  # Only for the root targets to bring in.
15   deps = [
16     "//components/auto_login_parser",
17     "//components/autofill/content/browser",
18     "//components/autofill/content/common",
19     "//components/autofill/content/renderer",
20     "//components/bookmarks/browser",
21     "//components/bookmarks/common",
22     "//components/bookmarks/test",
23     "//components/captive_portal",
24     "//components/cdm/browser",
25     "//components/cdm/common",
26     "//components/cdm/renderer",
27     "//components/cloud_devices/common",
28     "//components/component_updater",
29     "//components/content_settings/core/browser",
30     "//components/content_settings/core/common",
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/content/browser",
45     "//components/history/core/browser",
46     "//components/history/core/common",
47     "//components/history/core/test",
48     "//components/infobars/core",
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/omnibox",
60     "//components/onc",
61     "//components/os_crypt",
62     "//components/packed_ct_ev_whitelist",
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/ui/zoom:ui_zoom",
97     "//components/update_client",
98     "//components/url_fixer",
99     "//components/url_matcher",
100     "//components/user_manager",
101     "//components/user_prefs",
102     "//components/variations",
103     "//components/visitedlink/browser",
104     "//components/visitedlink/common",
105     "//components/visitedlink/renderer",
106     "//components/wallpaper",
107     "//components/web_cache/browser",
108     "//components/web_cache/common",
109     "//components/web_cache/renderer",
110     "//components/web_modal",
111     "//components/webdata/common",
112     "//components/web_resource",
113     "//components/wifi",
114     "//components/wifi_sync",
115   ]
117   if (!is_win && !is_mac) {
118     deps -= [ "//components/wifi" ]
119   }
120   if (!is_chromeos) {
121     deps -= [
122       "//components/pairing",
123       "//components/wifi_sync",
124     ]
125   }
126   if (is_ios) {
127     deps -= [
128       "//components/history/content/browser",
129       "//components/keyed_service/content",
130     ]
131   }
133   if (!enable_plugins) {
134     deps -= [
135       "//components/pdf/browser",
136       "//components/pdf/common",
137       "//components/pdf/renderer",
138     ]
139   }
141   if (is_android) {
142     deps -= [
143       "//components/autofill/content/browser",  # Blocked on content/blink.
144       "//components/autofill/content/common",  # Blocked on content.
145       "//components/autofill/content/renderer",  # Blocked on content/blink.
146       "//components/crash/app",  # Should work, needs checking.
147       "//components/crash/browser",  # Should work, needs checking.
148       "//components/captive_portal",  # Should work, needs checking.
149       "//components/cloud_devices/common",  # Should work, needs checking.
150       "//components/cdm/browser",  # Blocked on content.
151       "//components/cdm/common",  # Blocked on content.
152       "//components/cdm/renderer",  # Blocked on content.
153       "//components/data_reduction_proxy/core/browser",  # Should work, needs checking.
154       "//components/data_reduction_proxy/core/common",  # Should work, needs checking.
155       "//components/dom_distiller/core",  # Blocked on content.
156       "//components/domain_reliability",  # Blocked on content.
157       "//components/favicon_base",  # Should work, needs checking.
158       "//components/favicon/core",  # Blocked on keyed service.
159       "//components/feedback",  # Blocked on content.
160       "//components/gcm_driver",  # Should work, needs checking.
161       "//components/google/core/browser",  # Should work, needs checking.
162       "//components/history/core/browser",  # Should work, needs checking.
163       "//components/history/core/common",  # Should work, needs checking.
164       "//components/history/core/test",  # Should work, needs checking.
165       "//components/infobars/core",  # Should work, needs checking.
166       "//components/invalidation",  # Should work, needs checking.
167       "//components/json_schema",  # Should work, needs checking.
168       "//components/keyed_service/content",  # Blocked on content.
169       "//components/navigation_interception",  # Blocked on content.
170       "//components/omnibox",  # Should work, needs checking.
171       "//components/password_manager/content/browser",  # Blocked on content.
172       "//components/password_manager/core/browser",  # Should work, needs checking.
173       "//components/password_manager/core/common",  # Should work, needs checking.
174       "//components/plugins/renderer",  # Blocked on blink.
175       "//components/power",  # Blocked on content.
176       "//components/policy",  # Blocked on content (indirectly via autofill).
177       "//components/precache/content",  # Blocked on content.
178       "//components/precache/core",  # Should work, needs checking.
179       "//components/rappor",  # Should work, needs checking.
180       "//components/renderer_context_menu",  # Blocked on content.
181       "//components/search_engines",  # Should work, needs checking.
182       "//components/search_provider_logos",  # Should work, needs checking.
183       "//components/sessions:sessions_content",  # Blocked on content.
184       "//components/signin/core/browser",  # Should work, needs checking.
185       "//components/translate/content/browser",  # Blocked on content.
186       "//components/translate/content/common",  # Blocked on content.
187       "//components/translate/content/renderer",  # Blocked on content.
188       "//components/user_prefs",  # Blocked on content.
189       "//components/visitedlink/browser",  # Blocked on content.
190       "//components/visitedlink/common",  # Blocked on content.
191       "//components/visitedlink/renderer",  # Blocked on blink
192       "//components/web_cache/browser",  # Blocked on content and blink.
193       "//components/web_cache/renderer",  # Blocked on content and blink.
194       "//components/web_modal",  # Blocked on content.
195     ]
196   }
198   if (!is_ios && !is_android) {
199     deps += [
200       "//components/copresence",
201       "//components/storage_monitor",
202     ]
203   }
205   if (!is_ios) {
206     deps += [ "//components/app_modal" ]
207   }
209   if (toolkit_views) {
210     deps += [ "//components/constrained_window" ]
211   }
214 # To add a unit test to this target, make a "unit_test" source_set in your
215 # component (it's important to use a source_set instead of a static library or
216 # no tests will run) and add a reference here. You can add more than one unit
217 # test target if convenient.
218 if (!is_win || link_chrome_on_windows) {
219   test("components_unittests") {
220     sources = [
221       "test/run_all_unittests.cc",
222     ]
224     # Add only ":unit_tests" dependencies here. If your tests have dependencies
225     # (this would at least include the component itself), they should be on the
226     # test source set and not here.
227     deps = [
228       "//components/auto_login_parser:unit_tests",
229       "//components/autofill/content/browser:unit_tests",
230       "//components/autofill/core/browser:unit_tests",
231       "//components/autofill/core/common:unit_tests",
232       "//components/bookmarks/browser:unit_tests",
233       "//components/captive_portal:unit_tests",
234       "//components/cloud_devices/common:unit_tests",
235       "//components/content_settings/core/browser:unit_tests",
236       "//components/content_settings/core/common:unit_tests",
237       "//components/crx_file:unit_tests",
238       "//components/data_reduction_proxy/core/browser:unit_tests",
239       "//components/data_reduction_proxy/core/common:unit_tests",
240       "//components/dom_distiller/core:unit_tests",
241       "//components/domain_reliability:unit_tests",
242       "//components/favicon_base:unit_tests",
243       "//components/google/core/browser:unit_tests",
244       "//components/invalidation:unittests",
245       "//components/login:unit_tests",
246       "//components/metrics:unit_tests",
247       "//components/omnibox:unit_tests",
248       "//components/ownership:unit_tests",
249       "//components/packed_ct_ev_whitelist:unit_tests",
250       "//components/proximity_auth:unit_tests",
251       "//components/update_client:unit_tests",
252       "//components/variations:unit_tests",
253       "//components/web_resource:unit_tests",
254       "//components/webdata/common:unit_tests",
256       # These are the deps required by the code in this target.
257       "//base",
258       "//base/test:test_support",
259       "//content/test:test_support",
260       "//ui/base",
261     ]
263     # TODO(GYP) need this target.
264     #'breakpad/app/crash_keys_win_unittest.cc',
266     # Precache tests need these defines.
267     #configs += [ "//components/precache/core:precache_config" ]
269     if (toolkit_views) {
270       # TODO(GYP) enable this as above.
271       #deps += [ "//components/constrained_window:unit_tests" ]
272     }
273     if (is_win) {
274       deps += [ "//components/browser_watcher:unit_tests" ]
275     }
276   }