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")
7 # Collection of all components. You wouldn't link to this, but this is rather
8 # to reference the files so they can be compiled by the build system.
9 group("all_components") {
10 testonly = true # You shouldn't actually link to this.
11 visibility = [ "//:*" ] # Only for the root targets to bring in.
14 "//components/auto_login_parser",
15 "//components/autofill/content/browser",
16 "//components/autofill/content/common",
17 "//components/autofill/content/renderer",
18 "//components/bookmarks/browser",
19 "//components/bookmarks/common",
20 "//components/bookmarks/test",
21 "//components/captive_portal",
22 "//components/cdm/browser",
23 "//components/cdm/common",
24 "//components/cdm/renderer",
25 "//components/cloud_devices/common",
26 "//components/component_updater",
27 "//components/crash/app",
28 "//components/crash/browser",
29 "//components/crx_file",
30 "//components/data_reduction_proxy/browser",
31 "//components/data_reduction_proxy/common",
32 "//components/dom_distiller/core",
33 "//components/domain_reliability",
34 "//components/enhanced_bookmarks",
35 "//components/favicon/core",
36 "//components/favicon_base",
37 "//components/feedback",
38 "//components/gcm_driver",
39 "//components/google/core/browser",
40 "//components/history/core/browser",
41 "//components/history/core/common",
42 "//components/history/core/test",
43 "//components/infobars/core",
44 "//components/infobars/test:test_support",
45 "//components/invalidation",
46 "//components/json_schema",
47 "//components/keyed_service/content",
48 "//components/language_usage_metrics",
49 "//components/leveldb_proto",
50 "//components/metrics",
51 "//components/navigation_interception",
52 "//components/navigation_metrics",
53 "//components/network_time",
54 "//components/omaha_query_params",
55 "//components/omnibox",
57 "//components/os_crypt",
58 "//components/pairing",
59 "//components/password_manager/content/browser",
60 "//components/password_manager/core/browser",
61 "//components/password_manager/core/common",
62 "//components/pdf/browser",
63 "//components/pdf/common",
64 "//components/pdf/renderer",
65 "//components/plugins/renderer",
66 "//components/policy",
68 "//components/precache/core",
69 "//components/precache/content",
70 "//components/pref_registry",
71 "//components/proximity_auth",
72 "//components/query_parser",
73 "//components/rappor",
74 "//components/renderer_context_menu",
75 "//components/resources:components_resources",
76 "//components/search",
77 "//components/search_engines",
78 "//components/search_provider_logos",
79 "//components/sessions",
80 "//components/signin/core/browser",
81 "//components/startup_metric_utils",
82 "//components/strings",
83 "//components/sync_driver",
84 "//components/tracing",
85 "//components/translate/content/browser",
86 "//components/translate/content/common",
87 "//components/translate/content/renderer",
88 "//components/translate/core/browser",
89 "//components/translate/core/common",
90 "//components/url_fixer",
91 "//components/url_matcher",
92 "//components/user_manager",
93 "//components/user_prefs",
94 "//components/variations",
95 "//components/visitedlink/browser",
96 "//components/visitedlink/common",
97 "//components/visitedlink/renderer",
98 "//components/web_cache/browser",
99 "//components/web_cache/common",
100 "//components/web_cache/renderer",
101 "//components/web_modal",
102 "//components/webdata/common",
106 if (!is_win && !is_mac) {
107 deps -= [ "//components/wifi" ]
110 deps -= [ "//components/pairing" ]
114 deps -= [ "//components/keyed_service/content" ]
117 if (!enable_plugins) {
119 "//components/pdf/browser",
120 "//components/pdf/common",
121 "//components/pdf/renderer",
127 "//components/autofill/content/browser", # Blocked on content/blink.
128 "//components/autofill/content/common", # Blocked on content.
129 "//components/autofill/content/renderer", # Blocked on content/blink.
130 "//components/crash/app", # Should work, needs checking.
131 "//components/crash/browser", # Should work, needs checking.
132 "//components/captive_portal", # Should work, needs checking.
133 "//components/cloud_devices/common", # Should work, needs checking.
134 "//components/cdm/browser", # Blocked on content.
135 "//components/cdm/common", # Blocked on content.
136 "//components/cdm/renderer", # Blocked on content.
137 "//components/data_reduction_proxy/browser", # Should work, needs checking.
138 "//components/data_reduction_proxy/common", # Should work, needs checking.
139 "//components/dom_distiller/core", # Blocked on content.
140 "//components/domain_reliability", # Blocked on content.
141 "//components/favicon_base", # Should work, needs checking.
142 "//components/favicon/core", # Blocked on keyed service.
143 "//components/feedback", # Blocked on content.
144 "//components/gcm_driver", # Should work, needs checking.
145 "//components/google/core/browser", # Should work, needs checking.
146 "//components/history/core/browser", # Should work, needs checking.
147 "//components/history/core/common", # Should work, needs checking.
148 "//components/history/core/test", # Should work, needs checking.
149 "//components/infobars/core", # Should work, needs checking.
150 "//components/infobars/test:test_support", # Should work, needs checking.
151 "//components/invalidation", # Should work, needs checking.
152 "//components/json_schema", # Should work, needs checking.
153 "//components/keyed_service/content", # Blocked on content.
154 "//components/navigation_interception", # Blocked on content.
155 "//components/omnibox", # Should work, needs checking.
156 "//components/password_manager/content/browser", # Blocked on content.
157 "//components/password_manager/core/browser", # Should work, needs checking.
158 "//components/password_manager/core/common", # Should work, needs checking.
159 "//components/plugins/renderer", # Blocked on blink.
160 "//components/power", # Blocked on content.
161 "//components/policy", # Blocked on content (indirectly via autofill).
162 "//components/precache/content", # Blocked on content.
163 "//components/precache/core", # Should work, needs checking.
164 "//components/rappor", # Should work, needs checking.
165 "//components/renderer_context_menu", # Blocked on content.
166 "//components/search_engines", # Should work, needs checking.
167 "//components/search_provider_logos", # Should work, needs checking.
168 "//components/sessions", # Blocked on content.
169 "//components/signin/core/browser", # Should work, needs checking.
170 "//components/translate/content/browser", # Blocked on content.
171 "//components/translate/content/common", # Blocked on content.
172 "//components/translate/content/renderer", # Blocked on content.
173 "//components/user_prefs", # Blocked on content.
174 "//components/visitedlink/browser", # Blocked on content.
175 "//components/visitedlink/common", # Blocked on content.
176 "//components/visitedlink/renderer", # Blocked on blink
177 "//components/web_cache/browser", # Blocked on content and blink.
178 "//components/web_cache/renderer", # Blocked on content and blink.
179 "//components/web_modal", # Blocked on content.
183 if (!is_ios && !is_android) {
185 "//components/copresence",
186 "//components/storage_monitor",
191 # TODO(GYP) enable when it links.
194 # To add a unit test to this target, make a "unit_test" source_set in your
195 # component (it's important to use a source_set instead of a static library or
196 # no tests will run) and add a reference here. You can add more than one unit
197 # test target if convenient.
198 test("components_unittests") {
200 "test/run_all_unittests.cc",
203 # Add only ":unit_tests" dependencies here. If your tests have dependencies
204 # (this would at least include the component itself), they should be on the
205 # test source set and not here.
207 "//components/auto_login_parser:unit_tests",
208 "//components/autofill/content/browser:unit_tests",
209 "//components/autofill/core/browser:unit_tests",
210 "//components/autofill/core/common:unit_tests",
211 "//components/bookmarks/browser:unit_tests",
212 "//components/captive_portal:unit_tests",
213 "//components/cloud_devices/common:unit_tests",
214 "//components/component_updater:unit_tests",
215 "//components/content_settings/core/common:unit_tests",
216 "//components/crx_file:unit_tests",
217 "//components/data_reduction_proxy/browser:unit_tests",
218 "//components/data_reduction_proxy/common:unit_tests",
219 "//components/dom_distiller/core:unit_tests",
220 "//components/domain_reliability:unit_tests",
221 "//components/omnibox:unit_tests",
222 "//components/ownership:unit_tests",
223 "//components/proximity_auth:unit_tests",
226 # TODO(GYP) need this target.
227 #'breakpad/app/crash_keys_win_unittest.cc',
229 # Precache tests need these defines.
230 #configs += [ "//components/precache/core:precache_config" ]