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

Side by Side Diff: chrome/common/BUILD.gn

Issue 2063503002: Make large test_support targets static libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | chrome/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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//chrome/common/features.gni") 6 import("//chrome/common/features.gni")
7 import("//chrome/version.gni") 7 import("//chrome/version.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "ANDROID_JAVA_UI=$android_java_ui", 44 "ANDROID_JAVA_UI=$android_java_ui",
45 "ENABLE_BACKGROUND=$enable_background", 45 "ENABLE_BACKGROUND=$enable_background",
46 "ENABLE_GOOGLE_NOW=$enable_google_now", 46 "ENABLE_GOOGLE_NOW=$enable_google_now",
47 "ENABLE_ONE_CLICK_SIGNIN=$enable_one_click_signin", 47 "ENABLE_ONE_CLICK_SIGNIN=$enable_one_click_signin",
48 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services", 48 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services",
49 "USE_VULCANIZE=$use_vulcanize", 49 "USE_VULCANIZE=$use_vulcanize",
50 ] 50 ]
51 } 51 }
52 52
53 # GYP version: chrome/chrome_common.gypi:common 53 # GYP version: chrome/chrome_common.gypi:common
54 #
55 # Use a static library here because many test binaries depend on this but don't
56 # require many files from it. This makes linking more efficient.
54 static_library("common") { 57 static_library("common") {
55 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") 58 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome")
56 defines = [] 59 defines = []
57 60
58 configs += [ 61 configs += [
59 "//build/config:precompiled_headers", 62 "//build/config:precompiled_headers",
60 "//build/config/compiler:wexit_time_destructors", 63 "//build/config/compiler:wexit_time_destructors",
61 ] 64 ]
62 65
63 public_deps = [ 66 public_deps = [
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 "metrics_constants_util_win.h", 375 "metrics_constants_util_win.h",
373 ] 376 ]
374 377
375 deps = [ 378 deps = [
376 "//base", 379 "//base",
377 "//chrome/installer/util:with_no_strings", 380 "//chrome/installer/util:with_no_strings",
378 ] 381 ]
379 } 382 }
380 } 383 }
381 384
382 source_set("test_support") { 385 # Use a static library here because many test binaries depend on this but don't
386 # require many files from it. This makes linking more efficient.
387 static_library("test_support") {
383 testonly = true 388 testonly = true
384 visibility = [ "//chrome/test:test_support" ] 389 visibility = [ "//chrome/test:test_support" ]
385 390
386 sources = [] 391 sources = []
387 392
388 deps = [ 393 deps = [
389 ":common", 394 ":common",
390 "//base", 395 "//base",
391 "//testing/gtest", 396 "//testing/gtest",
392 ] 397 ]
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 mojom("mojo_bindings") { 433 mojom("mojo_bindings") {
429 sources = [ 434 sources = [
430 "image_decoder.mojom", 435 "image_decoder.mojom",
431 "resource_usage_reporter.mojom", 436 "resource_usage_reporter.mojom",
432 ] 437 ]
433 438
434 public_deps = [ 439 public_deps = [
435 "//skia/public/interfaces", 440 "//skia/public/interfaces",
436 ] 441 ]
437 } 442 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698