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 4118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4129 # because the new dynamic tags are not created by default. | 4129 # because the new dynamic tags are not created by default. |
4130 ['binutils_version>=223', { | 4130 ['binutils_version>=223', { |
4131 # Newer binutils don't set DT_RPATH unless you disable "new" dtags | 4131 # Newer binutils don't set DT_RPATH unless you disable "new" dtags |
4132 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. | 4132 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. |
4133 # FIXME(mithro): Figure out the --as-needed/--no-as-needed flags | 4133 # FIXME(mithro): Figure out the --as-needed/--no-as-needed flags |
4134 # inside this file to allow usage of --no-as-needed and removal of | 4134 # inside this file to allow usage of --no-as-needed and removal of |
4135 # this flag. | 4135 # this flag. |
4136 'ldflags': [ | 4136 'ldflags': [ |
4137 '-Wl,--disable-new-dtags', | 4137 '-Wl,--disable-new-dtags', |
4138 ], | 4138 ], |
4139 }] | 4139 }], |
| 4140 ['gcc_version>=48', { |
| 4141 'target_conditions': [ |
| 4142 ['_toolset=="target"', { |
| 4143 'cflags_cc': [ |
| 4144 '-std=gnu++11', |
| 4145 # See comment for -Wno-c++11-narrowing. |
| 4146 '-Wno-narrowing', |
| 4147 # TODO(thakis): Remove, http://crbug.com/263960 |
| 4148 '-Wno-literal-suffix', |
| 4149 ], |
| 4150 }], |
| 4151 ], |
| 4152 }], |
| 4153 ['host_gcc_version>=48', { |
| 4154 'target_conditions': [ |
| 4155 ['_toolset=="host"', { |
| 4156 'cflags_cc': [ |
| 4157 '-std=gnu++11', |
| 4158 # See comment for -Wno-c++11-narrowing. |
| 4159 '-Wno-narrowing', |
| 4160 # TODO(thakis): Remove, http://crbug.com/263960 |
| 4161 '-Wno-literal-suffix', |
| 4162 ], |
| 4163 }], |
| 4164 ], |
| 4165 }], |
4140 ], | 4166 ], |
4141 }, | 4167 }, |
4142 }], | 4168 }], |
4143 # FreeBSD-specific options; note that most FreeBSD options are set above, | 4169 # FreeBSD-specific options; note that most FreeBSD options are set above, |
4144 # with Linux. | 4170 # with Linux. |
4145 ['OS=="freebsd"', { | 4171 ['OS=="freebsd"', { |
4146 'target_defaults': { | 4172 'target_defaults': { |
4147 'ldflags': [ | 4173 'ldflags': [ |
4148 '-Wl,--no-keep-memory', | 4174 '-Wl,--no-keep-memory', |
4149 ], | 4175 ], |
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5487 # settings in target dicts. SYMROOT is a special case, because many other | 5513 # settings in target dicts. SYMROOT is a special case, because many other |
5488 # Xcode variables depend on it, including variables such as | 5514 # Xcode variables depend on it, including variables such as |
5489 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5515 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5490 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5516 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5491 # files to appear (when present) in the UI as actual files and not red | 5517 # files to appear (when present) in the UI as actual files and not red |
5492 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5518 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5493 # and therefore SYMROOT, needs to be set at the project level. | 5519 # and therefore SYMROOT, needs to be set at the project level. |
5494 'SYMROOT': '<(DEPTH)/xcodebuild', | 5520 'SYMROOT': '<(DEPTH)/xcodebuild', |
5495 }, | 5521 }, |
5496 } | 5522 } |
OLD | NEW |