diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 14:14:54 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 14:14:54 +0000 |
commit | 99ff9934eb0e343160b79f63d314f70012ac877f (patch) | |
tree | 17c2cab695a9f9ec96dcd587ec6b88a93f96dd65 /build/win_precompile.gypi | |
parent | 0c31a504177bf6434d191feed964c6ce7b3a700f (diff) | |
download | chromium_src-99ff9934eb0e343160b79f63d314f70012ac877f.zip chromium_src-99ff9934eb0e343160b79f63d314f70012ac877f.tar.gz chromium_src-99ff9934eb0e343160b79f63d314f70012ac877f.tar.bz2 |
Use precompiled headers for most large projects where the .gyp file
is not a third party file.
On my machine, this speeds up a full recompile of the 'chrome' target
in Debug mode by about 18%.
BUG=none
TEST=it builds, existing tests pass
Review URL: http://codereview.chromium.org/7706011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/win_precompile.gypi')
-rw-r--r-- | build/win_precompile.gypi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build/win_precompile.gypi b/build/win_precompile.gypi new file mode 100644 index 0000000..90bcdff --- /dev/null +++ b/build/win_precompile.gypi @@ -0,0 +1,20 @@ +# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Include this file to make targets in your .gyp use the default +# precompiled header on Windows. + +{ + 'conditions': [ + # Restricted to VS 2010 until GYP also supports suppressing + # precompiled headers on .c files in VS 2008. + ['OS=="win" and (MSVS_VERSION=="2010" or MSVS_VERSION=="2010e")', { + 'target_defaults': { + 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', + 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', + 'sources': ['<(DEPTH)/build/precompile.cc'], + }, + }], + ], +} |