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

Side by Side Diff: build/common.gypi

Issue 359783005: Include stlport through -isystem instead of -I. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blehgn Created 6 years, 5 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
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | 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 3797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3808 'cflags!': [ 3808 'cflags!': [
3809 # Clang doesn't seem to know know this flag. 3809 # Clang doesn't seem to know know this flag.
3810 '-mfpmath=sse', 3810 '-mfpmath=sse',
3811 ], 3811 ],
3812 'cflags_cc': [ 3812 'cflags_cc': [
3813 # See the comment in the Mac section for what it takes to move 3813 # See the comment in the Mac section for what it takes to move
3814 # this to -std=c++11. 3814 # this to -std=c++11.
3815 '-std=gnu++11', 3815 '-std=gnu++11',
3816 ], 3816 ],
3817 }], 3817 }],
3818 ['clang==1 and OS=="android"', {
3819 # Android uses stlport, whose include/new defines
3820 # `void operator delete[](void* ptr) throw();`, which
3821 # clang's -Wimplicit-exception-spec-mismatch warns about for some
3822 # reason -- http://llvm.org/PR16638. TODO(thakis): Include stlport
3823 # via -isystem instead.
3824 'cflags_cc': [
3825 '-Wno-implicit-exception-spec-mismatch',
3826 ],
3827 }],
3828 ['clang==1 and clang_use_chrome_plugins==1', { 3818 ['clang==1 and clang_use_chrome_plugins==1', {
3829 'cflags': [ 3819 'cflags': [
3830 '<@(clang_chrome_plugins_flags)', 3820 '<@(clang_chrome_plugins_flags)',
3831 ], 3821 ],
3832 }], 3822 }],
3833 ['clang==1 and clang_load!=""', { 3823 ['clang==1 and clang_load!=""', {
3834 'cflags': [ 3824 'cflags': [
3835 '-Xclang', '-load', '-Xclang', '<(clang_load)', 3825 '-Xclang', '-load', '-Xclang', '<(clang_load)',
3836 ], 3826 ],
3837 }], 3827 }],
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
4422 # toolchain (circa Gingerbread) will exhibit strange errors. 4412 # toolchain (circa Gingerbread) will exhibit strange errors.
4423 # The include ordering here is important; change with caution. 4413 # The include ordering here is important; change with caution.
4424 ['use_system_stlport==1', { 4414 ['use_system_stlport==1', {
4425 'cflags': [ 4415 'cflags': [
4426 # For libstdc++/include, which is used by stlport. 4416 # For libstdc++/include, which is used by stlport.
4427 '-I<(android_src)/bionic', 4417 '-I<(android_src)/bionic',
4428 '-I<(android_src)/external/stlport/stlport', 4418 '-I<(android_src)/external/stlport/stlport',
4429 ], 4419 ],
4430 }, { # else: use_system_stlport!=1 4420 }, { # else: use_system_stlport!=1
4431 'cflags': [ 4421 'cflags': [
4432 '-I<(android_stlport_include)', 4422 '-isystem<(android_stlport_include)',
4433 ], 4423 ],
4434 'ldflags': [ 4424 'ldflags': [
4435 '-L<(android_stlport_libs_dir)', 4425 '-L<(android_stlport_libs_dir)',
4436 ], 4426 ],
4437 }], 4427 }],
4438 ['target_arch=="ia32"', { 4428 ['target_arch=="ia32"', {
4439 # The x86 toolchain currently has problems with stack-protector. 4429 # The x86 toolchain currently has problems with stack-protector.
4440 'cflags!': [ 4430 'cflags!': [
4441 '-fstack-protector', 4431 '-fstack-protector',
4442 ], 4432 ],
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
5514 # settings in target dicts. SYMROOT is a special case, because many other 5504 # settings in target dicts. SYMROOT is a special case, because many other
5515 # Xcode variables depend on it, including variables such as 5505 # Xcode variables depend on it, including variables such as
5516 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5506 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5517 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5507 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5518 # files to appear (when present) in the UI as actual files and not red 5508 # files to appear (when present) in the UI as actual files and not red
5519 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5509 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5520 # and therefore SYMROOT, needs to be set at the project level. 5510 # and therefore SYMROOT, needs to be set at the project level.
5521 'SYMROOT': '<(DEPTH)/xcodebuild', 5511 'SYMROOT': '<(DEPTH)/xcodebuild',
5522 }, 5512 },
5523 } 5513 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698