Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: components/BUILD.gn

Issue 889203002: Disable more GN linking on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/blink/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 # Collection of all components. You wouldn't link to this, but this is rather 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. 10 # to reference the files so they can be compiled by the build system.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 if (toolkit_views) { 211 if (toolkit_views) {
212 deps += [ "//components/constrained_window" ] 212 deps += [ "//components/constrained_window" ]
213 } 213 }
214 } 214 }
215 215
216 # To add a unit test to this target, make a "unit_test" source_set in your 216 # To add a unit test to this target, make a "unit_test" source_set in your
217 # component (it's important to use a source_set instead of a static library or 217 # component (it's important to use a source_set instead of a static library or
218 # no tests will run) and add a reference here. You can add more than one unit 218 # no tests will run) and add a reference here. You can add more than one unit
219 # test target if convenient. 219 # test target if convenient.
220 test("components_unittests") { 220 if (!is_win || link_chrome_on_windows) {
221 sources = [ 221 test("components_unittests") {
222 "test/run_all_unittests.cc", 222 sources = [
223 ] 223 "test/run_all_unittests.cc",
224 ]
224 225
225 # Add only ":unit_tests" dependencies here. If your tests have dependencies 226 # Add only ":unit_tests" dependencies here. If your tests have dependencies
226 # (this would at least include the component itself), they should be on the 227 # (this would at least include the component itself), they should be on the
227 # test source set and not here. 228 # test source set and not here.
228 deps = [ 229 deps = [
229 "//components/auto_login_parser:unit_tests", 230 "//components/auto_login_parser:unit_tests",
230 "//components/autofill/content/browser:unit_tests", 231 "//components/autofill/content/browser:unit_tests",
231 "//components/autofill/core/browser:unit_tests", 232 "//components/autofill/core/browser:unit_tests",
232 "//components/autofill/core/common:unit_tests", 233 "//components/autofill/core/common:unit_tests",
233 "//components/bookmarks/browser:unit_tests", 234 "//components/bookmarks/browser:unit_tests",
234 "//components/captive_portal:unit_tests", 235 "//components/captive_portal:unit_tests",
235 "//components/cloud_devices/common:unit_tests", 236 "//components/cloud_devices/common:unit_tests",
236 "//components/content_settings/core/browser:unit_tests", 237 "//components/content_settings/core/browser:unit_tests",
237 "//components/content_settings/core/common:unit_tests", 238 "//components/content_settings/core/common:unit_tests",
238 "//components/crx_file:unit_tests", 239 "//components/crx_file:unit_tests",
239 "//components/data_reduction_proxy/core/browser:unit_tests", 240 "//components/data_reduction_proxy/core/browser:unit_tests",
240 "//components/data_reduction_proxy/core/common:unit_tests", 241 "//components/data_reduction_proxy/core/common:unit_tests",
241 "//components/dom_distiller/core:unit_tests", 242 "//components/dom_distiller/core:unit_tests",
242 "//components/domain_reliability:unit_tests", 243 "//components/domain_reliability:unit_tests",
243 "//components/favicon_base:unit_tests", 244 "//components/favicon_base:unit_tests",
244 "//components/google/core/browser:unit_tests", 245 "//components/google/core/browser:unit_tests",
245 "//components/invalidation:unittests", 246 "//components/invalidation:unittests",
246 "//components/login:unit_tests", 247 "//components/login:unit_tests",
247 "//components/metrics:unit_tests", 248 "//components/metrics:unit_tests",
248 "//components/omnibox:unit_tests", 249 "//components/omnibox:unit_tests",
249 "//components/ownership:unit_tests", 250 "//components/ownership:unit_tests",
250 "//components/packed_ct_ev_whitelist:unit_tests", 251 "//components/packed_ct_ev_whitelist:unit_tests",
251 "//components/proximity_auth:unit_tests", 252 "//components/proximity_auth:unit_tests",
252 "//components/update_client:unit_tests", 253 "//components/update_client:unit_tests",
253 "//components/variations:unit_tests", 254 "//components/variations:unit_tests",
254 "//components/web_resource:unit_tests", 255 "//components/web_resource:unit_tests",
255 "//components/webdata/common:unit_tests", 256 "//components/webdata/common:unit_tests",
256 257
257 # These are the deps required by the code in this target. 258 # These are the deps required by the code in this target.
258 "//base", 259 "//base",
259 "//base/test:test_support", 260 "//base/test:test_support",
260 "//content/test:test_support", 261 "//content/test:test_support",
261 "//ui/base", 262 "//ui/base",
262 ] 263 ]
263 264
264 # TODO(GYP) need this target. 265 # TODO(GYP) need this target.
265 #'breakpad/app/crash_keys_win_unittest.cc', 266 #'breakpad/app/crash_keys_win_unittest.cc',
266 267
267 # Precache tests need these defines. 268 # Precache tests need these defines.
268 #configs += [ "//components/precache/core:precache_config" ] 269 #configs += [ "//components/precache/core:precache_config" ]
269 270
270 if (toolkit_views) { 271 if (toolkit_views) {
271 # TODO(GYP) enable this as above. 272 # TODO(GYP) enable this as above.
272 #deps += [ "//components/constrained_window:unit_tests" ] 273 #deps += [ "//components/constrained_window:unit_tests" ]
273 } 274 }
274 if (is_win) { 275 if (is_win) {
275 deps += [ "//components/browser_watcher:unit_tests" ] 276 deps += [ "//components/browser_watcher:unit_tests" ]
277 }
276 } 278 }
277 } 279 }
OLDNEW
« no previous file with comments | « cc/blink/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698