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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 # Strip the test binaries needed for Linux reliability tests. | 1179 # Strip the test binaries needed for Linux reliability tests. |
1180 'linux_strip_reliability_tests%': 0, | 1180 'linux_strip_reliability_tests%': 0, |
1181 # If we want stack unwind support for backtrace(). | 1181 # If we want stack unwind support for backtrace(). |
1182 'debug_unwind_tables%': 1, | 1182 'debug_unwind_tables%': 1, |
1183 'release_unwind_tables%': 1, | 1183 'release_unwind_tables%': 1, |
1184 | 1184 |
1185 # Override where to find binutils | 1185 # Override where to find binutils |
1186 'binutils_version%': 0, | 1186 'binutils_version%': 0, |
1187 'binutils_dir%': '', | 1187 'binutils_dir%': '', |
1188 | 1188 |
| 1189 # Set this to false will disable debug fission for debug builds. |
| 1190 # Needed if your tooling (distcc, ccache) is too old for debug fission |
| 1191 # support or you want to use an older gdb. |
| 1192 # See https://code.google.com/p/chromium/issues/detail?id=352046 and |
| 1193 # http://gcc.gnu.org/wiki/DebugFission for more information on debug |
| 1194 # fission. |
| 1195 'debug_fission%': 1, |
| 1196 |
1189 # Enable TCMalloc. | 1197 # Enable TCMalloc. |
1190 # TODO(dmikurube): Change Linux default of use_allocator to "tcmalloc". | 1198 # TODO(dmikurube): Change Linux default of use_allocator to "tcmalloc". |
1191 # TODO(dmikurube): Change Android default of use_allocator to "none". | 1199 # TODO(dmikurube): Change Android default of use_allocator to "none". |
1192 # TODO(dmikurube): Kill {linux|android}_use_tcmalloc. http://crbug.com/34555
4 | 1200 # TODO(dmikurube): Kill {linux|android}_use_tcmalloc. http://crbug.com/34555
4 |
1193 # {linux|android}_use_tcmalloc are to be replaced with use_allocator. | 1201 # {linux|android}_use_tcmalloc are to be replaced with use_allocator. |
1194 # They are now used only if use_allocator=="see_use_tcmalloc" (default). | 1202 # They are now used only if use_allocator=="see_use_tcmalloc" (default). |
1195 # TODO(dmikurube): Assert when {linux|android}_use_tcmalloc is explicitly sp
ecified. | 1203 # TODO(dmikurube): Assert when {linux|android}_use_tcmalloc is explicitly sp
ecified. |
1196 'linux_use_tcmalloc%': 1, | 1204 'linux_use_tcmalloc%': 1, |
1197 'android_use_tcmalloc%': 0, | 1205 'android_use_tcmalloc%': 0, |
1198 'use_allocator%': 'see_use_tcmalloc', | 1206 'use_allocator%': 'see_use_tcmalloc', |
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3198 '-Wl,--no-as-needed', | 3206 '-Wl,--no-as-needed', |
3199 ], | 3207 ], |
3200 }], | 3208 }], |
3201 ['debug_unwind_tables==1', { | 3209 ['debug_unwind_tables==1', { |
3202 'cflags': ['-funwind-tables'], | 3210 'cflags': ['-funwind-tables'], |
3203 }, { | 3211 }, { |
3204 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], | 3212 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], |
3205 }], | 3213 }], |
3206 # http://gcc.gnu.org/wiki/DebugFission | 3214 # http://gcc.gnu.org/wiki/DebugFission |
3207 # Requires gold and gcc >= 4.8 or clang. | 3215 # Requires gold and gcc >= 4.8 or clang. |
3208 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi
nutils_version>=223', { | 3216 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi
nutils_version>=223 and debug_fission==1', { |
3209 'cflags': ['-gsplit-dwarf'], | 3217 'cflags': ['-gsplit-dwarf'], |
3210 'ldflags': ['-Wl,--gdb-index'], | 3218 'ldflags': ['-Wl,--gdb-index'], |
3211 }], | 3219 }], |
3212 ], | 3220 ], |
3213 }, | 3221 }, |
3214 'Release_Base': { | 3222 'Release_Base': { |
3215 'variables': { | 3223 'variables': { |
3216 'release_optimize%': '2', | 3224 'release_optimize%': '2', |
3217 # Binaries become big and gold is unable to perform GC | 3225 # Binaries become big and gold is unable to perform GC |
3218 # and remove unused sections for some of test targets | 3226 # and remove unused sections for some of test targets |
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5229 # settings in target dicts. SYMROOT is a special case, because many other | 5237 # settings in target dicts. SYMROOT is a special case, because many other |
5230 # Xcode variables depend on it, including variables such as | 5238 # Xcode variables depend on it, including variables such as |
5231 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5239 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5232 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5240 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5233 # files to appear (when present) in the UI as actual files and not red | 5241 # files to appear (when present) in the UI as actual files and not red |
5234 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5242 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5235 # and therefore SYMROOT, needs to be set at the project level. | 5243 # and therefore SYMROOT, needs to be set at the project level. |
5236 'SYMROOT': '<(DEPTH)/xcodebuild', | 5244 'SYMROOT': '<(DEPTH)/xcodebuild', |
5237 }, | 5245 }, |
5238 } | 5246 } |
OLD | NEW |