Chromium Code Reviews| 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. | 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 } |
| OLD | NEW |