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. |
7 | 7 |
8 { | 8 { |
9 'conditions': [ | 9 'conditions': [ |
10 # Restricted to VS 2010 until GYP also supports suppressing | 10 ['OS=="win"', { |
11 # precompiled headers on .c files in VS 2008. | |
12 ['OS=="win" and (MSVS_VERSION=="2010" or MSVS_VERSION=="2010e")', { | |
13 'target_defaults': { | 11 'target_defaults': { |
14 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', | 12 'msvs_precompiled_header': '<(DEPTH)/build/precompile.h', |
15 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', | 13 'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc', |
16 'sources': ['<(DEPTH)/build/precompile.cc'], | 14 'sources': ['<(DEPTH)/build/precompile.cc'], |
17 }, | 15 }, |
18 }], | 16 }], |
19 ], | 17 ], |
20 } | 18 } |
OLD | NEW |