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