OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3139 ], | 3139 ], |
3140 }, | 3140 }, |
3141 'conditions': [ | 3141 'conditions': [ |
3142 [ 'os_posix==1 and OS!="mac" and OS!="ios"', { | 3142 [ 'os_posix==1 and OS!="mac" and OS!="ios"', { |
3143 # Remove -Wextra for third-party code. | 3143 # Remove -Wextra for third-party code. |
3144 'cflags!': [ '-Wextra' ], | 3144 'cflags!': [ '-Wextra' ], |
3145 'cflags_cc': [ | 3145 'cflags_cc': [ |
3146 # Don't warn about hash_map in third-party code. | 3146 # Don't warn about hash_map in third-party code. |
3147 '-Wno-deprecated', | 3147 '-Wno-deprecated', |
3148 ], | 3148 ], |
3149 'cflags': [ | |
3150 # Don't warn about printf format problems. | |
3151 # This is off by default in gcc but on in Ubuntu's gcc(!). | |
3152 '-Wno-format', | |
3153 ], | |
3154 }], | 3149 }], |
3155 [ 'os_posix==1 and clang!=1 and OS!="mac" and OS!="ios"', { | 3150 [ 'os_posix==1 and clang!=1 and OS!="mac" and OS!="ios"', { |
3156 # When we don't control the compiler, don't use -Wall for | 3151 # When we don't control the compiler, don't use -Wall for |
3157 # third-party code either. | 3152 # third-party code either. |
3158 'cflags!': [ '-Wall' ], | 3153 'cflags!': [ '-Wall' ], |
3159 }], | 3154 }], |
3160 # TODO: Fix all warnings on chromeos too. | 3155 # TODO: Fix all warnings on chromeos too. |
3161 [ 'os_posix==1 and OS!="mac" and OS!="ios" and (clang!=1 or chromeos==
1)', { | 3156 [ 'os_posix==1 and OS!="mac" and OS!="ios" and (clang!=1 or chromeos==
1)', { |
3162 'cflags!': [ | 3157 'cflags!': [ |
3163 '-Werror', | 3158 '-Werror', |
(...skipping 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6423 # settings in target dicts. SYMROOT is a special case, because many other | 6418 # settings in target dicts. SYMROOT is a special case, because many other |
6424 # Xcode variables depend on it, including variables such as | 6419 # Xcode variables depend on it, including variables such as |
6425 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6420 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6426 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6421 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6427 # files to appear (when present) in the UI as actual files and not red | 6422 # files to appear (when present) in the UI as actual files and not red |
6428 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6423 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6429 # and therefore SYMROOT, needs to be set at the project level. | 6424 # and therefore SYMROOT, needs to be set at the project level. |
6430 'SYMROOT': '<(DEPTH)/xcodebuild', | 6425 'SYMROOT': '<(DEPTH)/xcodebuild', |
6431 }, | 6426 }, |
6432 } | 6427 } |
OLD | NEW |