OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/allocator.gni") | 5 import("//build/config/allocator.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//build/module_args/v8.gni") | 10 import("//build/module_args/v8.gni") |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
389 "CoreFoundation.framework", | 389 "CoreFoundation.framework", |
390 "CoreGraphics.framework", | 390 "CoreGraphics.framework", |
391 "CoreText.framework", | 391 "CoreText.framework", |
392 "Foundation.framework", | 392 "Foundation.framework", |
393 "UIKit.framework", | 393 "UIKit.framework", |
394 ] | 394 ] |
395 } else if (is_linux) { | 395 } else if (is_linux) { |
396 libs = [ "dl" ] | 396 libs = [ "dl" ] |
397 } | 397 } |
398 } | 398 } |
399 | |
400 # Add this config to your target to enable precompiled headers. | |
401 # | |
402 # On Windows, precompiled headers are done on a per-target basis. If you have | |
403 # just a couple of files, the time it takes to precompile (~2 seconds) can | |
404 # actually be longer than the time saved. On a Z620, a 100 file target compiles | |
405 # about 2 seconds faster with precompiled headers, with greater savings for | |
406 # larger targets. | |
407 # | |
408 # Reccommend precompiled headers for targets with more than 50 .cc files. | |
scottmg
2015/06/29 21:49:16
"Recommend"
| |
409 config("precompiled_headers") { | |
410 # TODO(brettw) enable this when GN support in the binary has been rolled. | |
411 #if (is_win) { | |
412 if (false) { | |
413 # This is a string rather than a file GN knows about. It has to match | |
414 # exactly what's in the /FI flag below, and what might appear in the source | |
415 # code in quotes for an #include directive. | |
416 precompiled_header = "build/precompile.h" | |
417 | |
418 # This is a file that GN will compile with the above header. It will be | |
419 # implicitly added to the sources (potentially multiple times, with one | |
420 # variant for each language used in the target). | |
421 precompiled_source = "//build/precompile.cc" | |
422 | |
423 # Force include the header. | |
424 cflags = [ "/FI$precompiled_header" ] | |
425 } | |
426 } | |
OLD | NEW |