summaryrefslogtreecommitdiffstats
path: root/build/external_code.gypi
blob: 32991efb0fd557864e80c7e09a723d1fcbb27944 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2010 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.

{
  'conditions': [
    [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
      'cflags!': [
        '-Wall',
        '-Wextra',
        '-Werror',
      ],
    }],
    [ 'OS=="win"', {
      'defines': [
        '_CRT_SECURE_NO_DEPRECATE',
        '_CRT_NONSTDC_NO_WARNINGS',
        '_CRT_NONSTDC_NO_DEPRECATE',
        '_SCL_SECURE_NO_DEPRECATE',
      ],
      'msvs_disabled_warnings': [4800],
      'msvs_settings': {
        'VCCLCompilerTool': {
          'WarnAsError': 'false',
          'Detect64BitPortabilityProblems': 'false',
        },
      },
    }],
    [ 'OS=="mac"', {
      'xcode_settings': {
        'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
        'WARNING_CFLAGS!': ['-Wall'],
      },
    }],
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: