blob: 83a790decf428b6e600643fe2d7ab11532a1ae6b [file] [log] [blame]
ajm@google.comd5d596e2011-06-08 23:09:32 +00001# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9# This is included for external code which may require different warning
10# settings than the internal WebRTC code.
11
12# TODO(ajm): remove these when possible.
13{
14 'conditions': [
15 ['OS=="linux"', {
16 'target_defaults': {
17 'cflags!': [
18 '-Wall',
19 '-Wextra',
20 '-Werror',
21 ],
22 },
23 }],
24 ['OS=="win"', {
25 'target_defaults': {
26 'defines': [
27 '_CRT_SECURE_NO_DEPRECATE',
28 '_CRT_NONSTDC_NO_WARNINGS',
29 '_CRT_NONSTDC_NO_DEPRECATE',
30 '_SCL_SECURE_NO_DEPRECATE',
31 ],
32 'msvs_disabled_warnings': [4800],
33 'msvs_settings': {
34 'VCCLCompilerTool': {
35 'WarnAsError': 'false',
36 'Detect64BitPortabilityProblems': 'false',
37 },
38 },
39 },
40 }],
41 ['OS=="mac"', {
42 'target_defaults': {
43 'xcode_settings': {
44 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
45 'WARNING_CFLAGS!': ['-Wall'],
46 },
47 },
48 }],
49 ],
50}