| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 # for details. All rights reserved. Use of this source code is governed by a | |
| 3 # BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 # This file is included to modify the configurations to build third-party | |
| 6 # code from Mozilla's NSS and NSPR libraries, modified by the Chromium project. | |
| 7 # This code is C code, not C++, and is not warning-free, so we need to remove | |
| 8 # C++-specific flags, and add flags to supress the warnings in the code. | |
| 9 # This file is included from gyp files in the runtime/bin/net directory. | |
| 10 { | |
| 11 'variables': { | |
| 12 # Used by third_party/nss, which is from Chromium. | |
| 13 'os_posix': 1, | |
| 14 'os_bsd': 0, | |
| 15 'chromeos': 0, | |
| 16 'clang': 0, | |
| 17 }, | |
| 18 'target_defaults': { | |
| 19 'cflags': [ | |
| 20 '-Wno-unused-variable', | |
| 21 '-Wno-unused-but-set-variable', | |
| 22 '-Wno-missing-field-initializers', | |
| 23 '-Wno-uninitialized', | |
| 24 '-Wno-sign-compare', | |
| 25 '-Wno-empty-body', | |
| 26 '-Wno-type-limits', | |
| 27 '-Wno-pointer-to-int-cast', | |
| 28 '-UHAVE_CVAR_BUILT_ON_SEM', | |
| 29 ], | |
| 30 # Removes these flags from the list cflags. | |
| 31 'cflags!': [ | |
| 32 # NSS code from upstream mozilla builds with warnings, | |
| 33 # so we must allow warnings without failing. | |
| 34 '-Werror', | |
| 35 '-Wall', | |
| 36 '-ansi', | |
| 37 # Not supported for C, only for C++. | |
| 38 '-Wnon-virtual-dtor', | |
| 39 '-Wno-conversion-null', | |
| 40 '-fno-rtti', | |
| 41 '-fvisibility-inlines-hidden', | |
| 42 '-Woverloaded-virtual', | |
| 43 ], | |
| 44 'configurations': { | |
| 45 'Dart_Base': { | |
| 46 'xcode_settings': { | |
| 47 'WARNING_CFLAGS!': [ | |
| 48 '-Wall', | |
| 49 '-Wextra', | |
| 50 ], | |
| 51 }, | |
| 52 }, | |
| 53 # Dart_Debug and Dart_Release are merged after Dart_Base, so we can | |
| 54 # override the 'ansi' and '-Werror' flags set at the global level in | |
| 55 # tools/gyp/configurations_xcode.gypi. | |
| 56 'Dart_Debug': { | |
| 57 'xcode_settings': { | |
| 58 # Remove 'ansi' setting. | |
| 59 'GCC_C_LANGUAGE_STANDARD': 'c99', | |
| 60 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off | |
| 61 }, | |
| 62 }, | |
| 63 'Dart_Release': { | |
| 64 'xcode_settings': { | |
| 65 # Remove 'ansi' setting. | |
| 66 'GCC_C_LANGUAGE_STANDARD': 'c99', | |
| 67 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off | |
| 68 }, | |
| 69 }, | |
| 70 }, | |
| 71 }, | |
| 72 } | |
| OLD | NEW |