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 2954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2965 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | 2965 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], |
2966 }, | 2966 }, |
2967 }], | 2967 }], |
2968 ], | 2968 ], |
2969 }, | 2969 }, |
2970 }, | 2970 }, |
2971 'conditions': [ | 2971 'conditions': [ |
2972 ['os_posix==1', { | 2972 ['os_posix==1', { |
2973 'target_defaults': { | 2973 'target_defaults': { |
2974 'ldflags': [ | 2974 'ldflags': [ |
2975 '-Wl,--fatal-warnings', | |
Nico
2014/03/16 16:56:14
Should this only be done if werror% isn't empty?
| |
2975 '-Wl,-z,now', | 2976 '-Wl,-z,now', |
2976 '-Wl,-z,relro', | 2977 '-Wl,-z,relro', |
2977 ], | 2978 ], |
2978 }, | 2979 }, |
2979 }], | 2980 }], |
2980 ['os_posix==1 and chromeos==0', { | 2981 ['os_posix==1 and chromeos==0', { |
2981 # Chrome OS enables -fstack-protector-strong via its build wrapper, | 2982 # Chrome OS enables -fstack-protector-strong via its build wrapper, |
2982 # and we want to avoid overriding this, so stack-protector is only | 2983 # and we want to avoid overriding this, so stack-protector is only |
2983 # enabled when not building on Chrome OS. | 2984 # enabled when not building on Chrome OS. |
2984 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc | 2985 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3042 'defines': [ | 3043 'defines': [ |
3043 '_DEBUG', | 3044 '_DEBUG', |
3044 ], | 3045 ], |
3045 'cflags': [ | 3046 'cflags': [ |
3046 '-O>(debug_optimize)', | 3047 '-O>(debug_optimize)', |
3047 '-g', | 3048 '-g', |
3048 ], | 3049 ], |
3049 'conditions' : [ | 3050 'conditions' : [ |
3050 ['OS=="android"', { | 3051 ['OS=="android"', { |
3051 'ldflags': [ | 3052 'ldflags': [ |
3052 '-Wl,--fatal-warnings', | |
3053 # Only link with needed input sections. This is to avoid | 3053 # Only link with needed input sections. This is to avoid |
3054 # getting undefined reference to __cxa_bad_typeid in the CDU | 3054 # getting undefined reference to __cxa_bad_typeid in the CDU |
3055 # library. | 3055 # library. |
3056 '-Wl,--gc-sections', | 3056 '-Wl,--gc-sections', |
3057 # Warn in case of text relocations. | 3057 # Warn in case of text relocations. |
3058 '-Wl,--warn-shared-textrel', | 3058 '-Wl,--warn-shared-textrel', |
3059 ], | 3059 ], |
3060 }], | 3060 }], |
3061 ['OS=="android" and android_full_debug==0', { | 3061 ['OS=="android" and android_full_debug==0', { |
3062 # Some configurations are copied from Release_Base to reduce | 3062 # Some configurations are copied from Release_Base to reduce |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3124 ], | 3124 ], |
3125 }], | 3125 }], |
3126 ['OS=="android"', { | 3126 ['OS=="android"', { |
3127 'variables': { | 3127 'variables': { |
3128 'release_optimize%': 's', | 3128 'release_optimize%': 's', |
3129 }, | 3129 }, |
3130 'cflags': [ | 3130 'cflags': [ |
3131 '-fomit-frame-pointer', | 3131 '-fomit-frame-pointer', |
3132 ], | 3132 ], |
3133 'ldflags': [ | 3133 'ldflags': [ |
3134 '-Wl,--fatal-warnings', | |
3135 # Warn in case of text relocations. | 3134 # Warn in case of text relocations. |
3136 '-Wl,--warn-shared-textrel', | 3135 '-Wl,--warn-shared-textrel', |
3137 ], | 3136 ], |
3138 }], | 3137 }], |
3139 ['clang==1', { | 3138 ['clang==1', { |
3140 'cflags!': [ | 3139 'cflags!': [ |
3141 '-fno-ident', | 3140 '-fno-ident', |
3142 ], | 3141 ], |
3143 }], | 3142 }], |
3144 ['profiling==1', { | 3143 ['profiling==1', { |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5042 # settings in target dicts. SYMROOT is a special case, because many other | 5041 # settings in target dicts. SYMROOT is a special case, because many other |
5043 # Xcode variables depend on it, including variables such as | 5042 # Xcode variables depend on it, including variables such as |
5044 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5043 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5045 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5044 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5046 # files to appear (when present) in the UI as actual files and not red | 5045 # files to appear (when present) in the UI as actual files and not red |
5047 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5046 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5048 # and therefore SYMROOT, needs to be set at the project level. | 5047 # and therefore SYMROOT, needs to be set at the project level. |
5049 'SYMROOT': '<(DEPTH)/xcodebuild', | 5048 'SYMROOT': '<(DEPTH)/xcodebuild', |
5050 }, | 5049 }, |
5051 } | 5050 } |
OLD | NEW |