OLD | NEW |
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, in debug builds only as the official | 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 | 7 # builders blow up (out of memory) if precompiled headers are used for |
8 # release builds. | 8 # release builds. |
9 | 9 |
10 { | 10 { |
11 'conditions': [ | 11 'conditions': [ |
12 ['OS=="win"', { | 12 ['OS=="win" and win_use_pch==1', { |
13 'target_defaults': { | 13 'target_defaults': { |
14 'configurations': { | 14 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', |
15 'Debug': { | 15 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', |
16 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', | |
17 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', | |
18 }, | |
19 }, | |
20 | |
21 # Sources can't be specified inside the 'Debug' | |
22 # configuration. Since precompile.cc only contains | |
23 # comments, it won't have any effect for 'Release' builds. | |
24 'sources': ['<(DEPTH)/build/precompile.cc'], | 16 'sources': ['<(DEPTH)/build/precompile.cc'], |
25 } | 17 } |
26 }], | 18 }], |
27 ], | 19 ], |
28 } | 20 } |
OLD | NEW |