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 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2246 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], | 2246 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], |
2247 }, | 2247 }, |
2248 'Release_x64': { | 2248 'Release_x64': { |
2249 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | 2249 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], |
2250 }, | 2250 }, |
2251 }], | 2251 }], |
2252 ], | 2252 ], |
2253 }, | 2253 }, |
2254 }, | 2254 }, |
2255 'conditions': [ | 2255 'conditions': [ |
| 2256 ['os_posix==1', { |
| 2257 'target_defaults': { |
| 2258 'cflags': [ |
| 2259 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc |
| 2260 # supports it. |
| 2261 '-fstack-protector', |
| 2262 '--param=ssp-buffer-size=4', |
| 2263 ], |
| 2264 'ldflags': [ |
| 2265 '-Wl,-z,now', |
| 2266 '-Wl,-z,relro', |
| 2267 ], |
| 2268 'conditions': [ |
| 2269 ['chromium_code==1', { |
| 2270 # Non-chromium code is not guaranteed to compile cleanly |
| 2271 # with _FORTIFY_SOURCE. |
| 2272 'defines': [ |
| 2273 '_FORTIFY_SOURCE=2', |
| 2274 ], |
| 2275 }], |
| 2276 ], |
| 2277 }, |
| 2278 }], |
2256 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 2279 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
2257 'target_defaults': { | 2280 'target_defaults': { |
2258 # Enable -Werror by default, but put it in a variable so it can | 2281 # Enable -Werror by default, but put it in a variable so it can |
2259 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | 2282 # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
2260 'variables': { | 2283 'variables': { |
2261 'werror%': '-Werror', | 2284 'werror%': '-Werror', |
2262 'libraries_for_target%': '', | 2285 'libraries_for_target%': '', |
2263 }, | 2286 }, |
2264 'defines': [ | 2287 'defines': [ |
2265 '_FILE_OFFSET_BITS=64', | 2288 '_FILE_OFFSET_BITS=64', |
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3797 # settings in target dicts. SYMROOT is a special case, because many other | 3820 # settings in target dicts. SYMROOT is a special case, because many other |
3798 # Xcode variables depend on it, including variables such as | 3821 # Xcode variables depend on it, including variables such as |
3799 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3822 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3800 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3823 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3801 # files to appear (when present) in the UI as actual files and not red | 3824 # files to appear (when present) in the UI as actual files and not red |
3802 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3825 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3803 # and therefore SYMROOT, needs to be set at the project level. | 3826 # and therefore SYMROOT, needs to be set at the project level. |
3804 'SYMROOT': '<(DEPTH)/xcodebuild', | 3827 'SYMROOT': '<(DEPTH)/xcodebuild', |
3805 }, | 3828 }, |
3806 } | 3829 } |
OLD | NEW |