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

Side by Side Diff: content/test/BUILD.gn

Issue 1250273002: Add precompiled headers to GN build for large targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mergey-wergey Created 5 years, 4 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 | « content/shell/BUILD.gn ('k') | extensions/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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//build/module_args/v8.gni") 9 import("//build/module_args/v8.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
11 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 11 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
12 12
13 content_tests_gypi_values = 13 content_tests_gypi_values =
14 exec_script("//build/gypi_to_gn.py", 14 exec_script("//build/gypi_to_gn.py",
15 [ 15 [
16 rebase_path("../content_tests.gypi"), 16 rebase_path("../content_tests.gypi"),
17 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", 17 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
18 ], 18 ],
19 "scope", 19 "scope",
20 [ "../content_tests.gypi" ]) 20 [ "../content_tests.gypi" ])
21 21
22 # GYP version //content/content_tests.gypi:test_support_content 22 # GYP version //content/content_tests.gypi:test_support_content
23 source_set("test_support") { 23 source_set("test_support") {
24 testonly = true 24 testonly = true
25 configs += [ "//build/config:precompiled_headers" ]
25 public_deps = [ 26 public_deps = [
26 "//content/public/app:both", 27 "//content/public/app:both",
27 "//content/public/browser", 28 "//content/public/browser",
28 "//content/public/common", 29 "//content/public/common",
29 ] 30 ]
30 deps = [ 31 deps = [
31 "//cc/blink", 32 "//cc/blink",
32 "//net:test_support", 33 "//net:test_support",
33 "//skia", 34 "//skia",
34 "//storage/common", 35 "//storage/common",
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 # TODO(GYP) enable content_browsertests on Mac when it links. 262 # TODO(GYP) enable content_browsertests on Mac when it links.
262 if (!is_mac) { 263 if (!is_mac) {
263 test("content_browsertests") { 264 test("content_browsertests") {
264 sources = 265 sources =
265 rebase_path(content_tests_gypi_values.content_browsertests_sources, 266 rebase_path(content_tests_gypi_values.content_browsertests_sources,
266 ".", 267 ".",
267 "//content") 268 "//content")
268 269
269 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 270 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
270 271
271 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 272 configs += [
273 "//build/config:precompiled_headers",
274 "//build/config/compiler:no_size_t_to_int_warning",
275 ]
272 276
273 deps = [ 277 deps = [
274 ":browsertest_support", 278 ":browsertest_support",
275 ":web_ui_test_mojo_bindings", 279 ":web_ui_test_mojo_bindings",
276 "//base/allocator", 280 "//base/allocator",
277 "//base/test:test_support", 281 "//base/test:test_support",
278 "//content/common:mojo_bindings", 282 "//content/common:mojo_bindings",
279 "//content/gpu", 283 "//content/gpu",
280 "//content/public/common", 284 "//content/public/common",
281 "//content/public/plugin", 285 "//content/public/plugin",
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 sources -= 424 sources -=
421 [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ] 425 [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ]
422 } 426 }
423 } 427 }
424 } 428 }
425 429
426 test("content_unittests") { 430 test("content_unittests") {
427 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, 431 sources = rebase_path(content_tests_gypi_values.content_unittests_sources,
428 ".", 432 ".",
429 "//content") 433 "//content")
434
435 configs += [ "//build/config:precompiled_headers" ]
436
430 deps = [ 437 deps = [
431 ":test_support", 438 ":test_support",
432 "//base/allocator", 439 "//base/allocator",
433 "//base/test:test_support", 440 "//base/test:test_support",
434 "//content/browser/background_sync:background_sync_proto", 441 "//content/browser/background_sync:background_sync_proto",
435 "//content/browser/notifications:notification_proto", 442 "//content/browser/notifications:notification_proto",
436 "//content/browser/service_worker:service_worker_proto", 443 "//content/browser/service_worker:service_worker_proto",
437 "//content/browser/speech/proto", 444 "//content/browser/speech/proto",
438 "//content/common:mojo_bindings", 445 "//content/common:mojo_bindings",
439 "//content/public/browser", 446 "//content/public/browser",
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 "//testing/gtest", 707 "//testing/gtest",
701 "//third_party/WebKit/public:blink", 708 "//third_party/WebKit/public:blink",
702 "//ui/base", 709 "//ui/base",
703 "//ui/gfx", 710 "//ui/gfx",
704 "//ui/gfx/geometry", 711 "//ui/gfx/geometry",
705 "//ui/gl", 712 "//ui/gl",
706 "//ui/gl:test_support", 713 "//ui/gl:test_support",
707 ] 714 ]
708 } 715 }
709 } 716 }
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698