Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1167)

Side by Side Diff: build/common.gypi

Issue 12734005: [Android WebView] Move C++ warnings to cflags_cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3215 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 # can redefine it later to be 2 for chromium code and unset 3226 # can redefine it later to be 2 for chromium code and unset
3227 # for third party code. This works because cflags are added 3227 # for third party code. This works because cflags are added
3228 # before defines. 3228 # before defines.
3229 '-U_FORTIFY_SOURCE', 3229 '-U_FORTIFY_SOURCE',
3230 # Disable any additional warnings enabled by the Android build system but which 3230 # Disable any additional warnings enabled by the Android build system but which
3231 # chromium does not build cleanly with (when treating warning as errors). 3231 # chromium does not build cleanly with (when treating warning as errors).
3232 # Things that are part of -Wextra: 3232 # Things that are part of -Wextra:
3233 '-Wno-extra', # Enabled by -Wextra, but no specific flag 3233 '-Wno-extra', # Enabled by -Wextra, but no specific flag
3234 '-Wno-ignored-qualifiers', 3234 '-Wno-ignored-qualifiers',
3235 '-Wno-type-limits', 3235 '-Wno-type-limits',
3236 # Other things unrelated to -Wextra:
3237 '-Wno-non-virtual-dtor',
3238 '-Wno-sign-promo',
3239 ], 3236 ],
3240 'cflags_cc': [ 3237 'cflags_cc': [
3241 # Disabling c++0x-compat should be handled in WebKit, but 3238 # Disabling c++0x-compat should be handled in WebKit, but
3242 # this currently doesn't work because gcc_version is not set 3239 # this currently doesn't work because gcc_version is not set
3243 # correctly when building with the Android build system. 3240 # correctly when building with the Android build system.
3244 # TODO(torne): Fix this in WebKit. 3241 # TODO(torne): Fix this in WebKit.
3245 '-Wno-error=c++0x-compat', 3242 '-Wno-error=c++0x-compat',
3243 # Other things unrelated to -Wextra:
3244 '-Wno-non-virtual-dtor',
3245 '-Wno-sign-promo',
3246 ], 3246 ],
3247 }], 3247 }],
3248 ['android_build_type==1 and chromium_code==0', { 3248 ['android_build_type==1 and chromium_code==0', {
3249 'cflags': [ 3249 'cflags': [
3250 # There is a class of warning which: 3250 # There is a class of warning which:
3251 # 1) Android always enables and also treats as errors 3251 # 1) Android always enables and also treats as errors
3252 # 2) Chromium ignores in third party code 3252 # 2) Chromium ignores in third party code
3253 # For now, I am leaving these warnings enabled but preventing 3253 # So we re-enable those warnings when building Android.
3254 # them from being treated as errors here.
3255 '-Wno-address', 3254 '-Wno-address',
3256 '-Wno-format-security', 3255 '-Wno-format-security',
3257 '-Wno-non-virtual-dtor',
3258 '-Wno-return-type', 3256 '-Wno-return-type',
3259 '-Wno-sequence-point', 3257 '-Wno-sequence-point',
3260 ], 3258 ],
3259 'cflags_cc': [
3260 '-Wno-non-virtual-dtor',
3261 ]
3261 }], 3262 }],
3262 ['target_arch == "arm"', { 3263 ['target_arch == "arm"', {
3263 'ldflags': [ 3264 'ldflags': [
3264 # Enable identical code folding to reduce size. 3265 # Enable identical code folding to reduce size.
3265 '-Wl,--icf=safe', 3266 '-Wl,--icf=safe',
3266 ], 3267 ],
3267 }], 3268 }],
3268 # NOTE: The stlport header include paths below are specified in 3269 # NOTE: The stlport header include paths below are specified in
3269 # cflags rather than include_dirs because they need to come 3270 # cflags rather than include_dirs because they need to come
3270 # after include_dirs. Think of them like system headers, but 3271 # after include_dirs. Think of them like system headers, but
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
4116 # settings in target dicts. SYMROOT is a special case, because many other 4117 # settings in target dicts. SYMROOT is a special case, because many other
4117 # Xcode variables depend on it, including variables such as 4118 # Xcode variables depend on it, including variables such as
4118 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4119 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4119 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4120 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4120 # files to appear (when present) in the UI as actual files and not red 4121 # files to appear (when present) in the UI as actual files and not red
4121 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4122 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4122 # and therefore SYMROOT, needs to be set at the project level. 4123 # and therefore SYMROOT, needs to be set at the project level.
4123 'SYMROOT': '<(DEPTH)/xcodebuild', 4124 'SYMROOT': '<(DEPTH)/xcodebuild',
4124 }, 4125 },
4125 } 4126 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698