OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 { |
| 5 'target_defaults': { |
| 6 'xcode_settings': { |
| 7 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', |
| 8 }, |
| 9 }, |
| 10 |
| 11 # Targets come in pairs: 'foo' and 'foo-fail', with the former building with |
| 12 # no warnings and the latter not. |
| 13 'targets': [ |
| 14 # GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO (default: YES): |
| 15 { |
| 16 'target_name': 'warn_about_invalid_offsetof_macro', |
| 17 'type': 'executable', |
| 18 'sources': [ 'warn_about_invalid_offsetof_macro.cc', ], |
| 19 'xcode_settings': { |
| 20 'GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO': 'NO', |
| 21 }, |
| 22 }, |
| 23 { |
| 24 'target_name': 'warn_about_invalid_offsetof_macro-fail', |
| 25 'type': 'executable', |
| 26 'sources': [ 'warn_about_invalid_offsetof_macro.cc', ], |
| 27 }, |
| 28 # GCC_WARN_ABOUT_MISSING_NEWLINE (default: NO): |
| 29 { |
| 30 'target_name': 'warn_about_missing_newline', |
| 31 'type': 'executable', |
| 32 'sources': [ 'warn_about_missing_newline.c', ], |
| 33 }, |
| 34 { |
| 35 'target_name': 'warn_about_missing_newline-fail', |
| 36 'type': 'executable', |
| 37 'sources': [ 'warn_about_missing_newline.c', ], |
| 38 'xcode_settings': { |
| 39 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', |
| 40 }, |
| 41 }, |
| 42 ], |
| 43 } |
OLD | NEW |