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

Side by Side Diff: build/win_precompile.gypi

Issue 7977003: Relanding precompiled header support for VS 2008, now enabled for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify how PCH is turned off for mini_installer. Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 # Include this file to make targets in your .gyp use the default 5 # Include this file to make targets in your .gyp use the default
6 # precompiled header on Windows. 6 # precompiled header on Windows, in debug builds only as the official
7 # builders blow up (out of memory) if precompiled headers are used for
8 # release builds.
7 9
8 { 10 {
9 'conditions': [ 11 'conditions': [
10 # Restricted to VS 2010 until GYP also supports suppressing 12 ['OS=="win"', {
11 # precompiled headers on .c files in VS 2008. 13 'target_defaults': {
12 ['OS=="win" and (MSVS_VERSION=="2010" or MSVS_VERSION=="2010e")', { 14 'configurations': {
13 'target_defaults': { 15 'Debug': {
14 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', 16 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h',
15 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', 17 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc',
16 'sources': ['<(DEPTH)/build/precompile.cc'], 18 },
17 }, 19 },
18 }], 20
21 # This can't go into the 'Debug' configuration, so even
22 # 'Release' gets the source file, but it contains nothing
23 # but comments so shouldn't have an effect there (the
24 # msvs_precompiled_header directive above, that only the
25 # Debug configuration gets, is what forces the include of
26 # the precompiled header file in all source files).
jeanluc1 2011/09/20 16:54:25 That's one heck of a long sentence that's hard to
Jói 2011/09/20 21:44:06 Switched to just the following: # Sources can't
27 'sources': ['<(DEPTH)/build/precompile.cc'],
28 }
29 }],
19 ], 30 ],
20 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698