summaryrefslogtreecommitdiffstats
path: root/build/win_precompile.gypi
blob: 592e59f2219c132b1567852d276e1d3a7d841363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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, in debug builds only as the official
# builders blow up (out of memory) if precompiled headers are used for
# release builds.

{
  'conditions': [
    ['OS=="win"', {
        'target_defaults': {
          'configurations': {
            'Debug': {
              'msvs_precompiled_header': '<(DEPTH)/build/precompile.h',
              'msvs_precompiled_source': '<(DEPTH)/build/precompile.cc',
            },
          },

          # Sources can't be specified inside the 'Debug'
          # configuration. Since precompile.cc only contains
          # comments, it won't have any effect for 'Release' builds.
          'sources': ['<(DEPTH)/build/precompile.cc'],
        }
      }],
  ],
}