| 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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 'profiling%': '0', | 1105 'profiling%': '0', |
| 1106 # Profile without optimizing out stack frames when profiling==1. | 1106 # Profile without optimizing out stack frames when profiling==1. |
| 1107 'profiling_full_stack_frames%': '0', | 1107 'profiling_full_stack_frames%': '0', |
| 1108 | 1108 |
| 1109 # And if we want to dump symbols for Breakpad-enabled builds. | 1109 # And if we want to dump symbols for Breakpad-enabled builds. |
| 1110 'linux_dump_symbols%': 0, | 1110 'linux_dump_symbols%': 0, |
| 1111 # And if we want to strip the binary after dumping symbols. | 1111 # And if we want to strip the binary after dumping symbols. |
| 1112 'linux_strip_binary%': 0, | 1112 'linux_strip_binary%': 0, |
| 1113 # Strip the test binaries needed for Linux reliability tests. | 1113 # Strip the test binaries needed for Linux reliability tests. |
| 1114 'linux_strip_reliability_tests%': 0, | 1114 'linux_strip_reliability_tests%': 0, |
| 1115 # If we want stack unwind support for backtrace(). |
| 1116 'unwind_tables%': 1, |
| 1115 | 1117 |
| 1116 # Enable TCMalloc. | 1118 # Enable TCMalloc. |
| 1117 'linux_use_tcmalloc%': 1, | 1119 'linux_use_tcmalloc%': 1, |
| 1118 'android_use_tcmalloc%': 0, | 1120 'android_use_tcmalloc%': 0, |
| 1119 | 1121 |
| 1120 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1122 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
| 1121 'linux_link_gnome_keyring%': 0, | 1123 'linux_link_gnome_keyring%': 0, |
| 1122 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1124 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
| 1123 'linux_link_gsettings%': 0, | 1125 'linux_link_gsettings%': 0, |
| 1124 | 1126 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 'linux_use_tcmalloc%': 0, | 1284 'linux_use_tcmalloc%': 0, |
| 1283 }], | 1285 }], |
| 1284 ['OS=="linux" and target_arch=="mipsel"', { | 1286 ['OS=="linux" and target_arch=="mipsel"', { |
| 1285 'sysroot%': '<(sysroot)', | 1287 'sysroot%': '<(sysroot)', |
| 1286 'CXX%': '<(CXX)', | 1288 'CXX%': '<(CXX)', |
| 1287 }], | 1289 }], |
| 1288 # All Chrome builds have breakpad symbols, but only process the | 1290 # All Chrome builds have breakpad symbols, but only process the |
| 1289 # symbols from official builds. | 1291 # symbols from official builds. |
| 1290 ['(branding=="Chrome" and buildtype=="Official")', { | 1292 ['(branding=="Chrome" and buildtype=="Official")', { |
| 1291 'linux_dump_symbols%': 1, | 1293 'linux_dump_symbols%': 1, |
| 1294 |
| 1295 # Omit unwind support in official builds to save space. We can use |
| 1296 # breakpad for these builds. |
| 1297 'unwind_tables%': 0, |
| 1292 }], | 1298 }], |
| 1293 ], | 1299 ], |
| 1294 }], # os_posix==1 and OS!="mac" and OS!="ios" | 1300 }], # os_posix==1 and OS!="mac" and OS!="ios" |
| 1295 ['OS=="ios"', { | 1301 ['OS=="ios"', { |
| 1296 'disable_nacl%': 1, | 1302 'disable_nacl%': 1, |
| 1297 'enable_background%': 0, | 1303 'enable_background%': 0, |
| 1298 'enable_task_manager%': 0, | 1304 'enable_task_manager%': 0, |
| 1299 'icu_use_data_file_flag%': 1, | 1305 'icu_use_data_file_flag%': 1, |
| 1300 'use_system_libxml%': 1, | 1306 'use_system_libxml%': 1, |
| 1301 'use_system_sqlite%': 1, | 1307 'use_system_sqlite%': 1, |
| (...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 ], | 3076 ], |
| 3071 'conditions' : [ | 3077 'conditions' : [ |
| 3072 ['profiling_full_stack_frames==1', { | 3078 ['profiling_full_stack_frames==1', { |
| 3073 'cflags': [ | 3079 'cflags': [ |
| 3074 '-fno-inline', | 3080 '-fno-inline', |
| 3075 '-fno-optimize-sibling-calls', | 3081 '-fno-optimize-sibling-calls', |
| 3076 ], | 3082 ], |
| 3077 }], | 3083 }], |
| 3078 ], | 3084 ], |
| 3079 }], | 3085 }], |
| 3080 # Can be omitted to reduce output size. Does not seem to affect | |
| 3081 # crash reporting. | |
| 3082 ['target_arch=="ia32"', { | |
| 3083 'cflags': [ | |
| 3084 '-fno-unwind-tables', | |
| 3085 '-fno-asynchronous-unwind-tables', | |
| 3086 ], | |
| 3087 }], | |
| 3088 ], | 3086 ], |
| 3089 }, | 3087 }, |
| 3090 }, | 3088 }, |
| 3091 'conditions': [ | 3089 'conditions': [ |
| 3092 ['target_arch=="ia32"', { | 3090 ['target_arch=="ia32"', { |
| 3093 'target_conditions': [ | 3091 'target_conditions': [ |
| 3094 ['_toolset=="target"', { | 3092 ['_toolset=="target"', { |
| 3095 'asflags': [ | 3093 'asflags': [ |
| 3096 # Needed so that libs with .s files (e.g. libicudata.a) | 3094 # Needed so that libs with .s files (e.g. libicudata.a) |
| 3097 # are compatible with the general 32-bit-ness. | 3095 # are compatible with the general 32-bit-ness. |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3555 ['_toolset=="target"', { | 3553 ['_toolset=="target"', { |
| 3556 'ldflags': [ | 3554 'ldflags': [ |
| 3557 # Workaround for linker OOM. | 3555 # Workaround for linker OOM. |
| 3558 '-Wl,--no-keep-memory', | 3556 '-Wl,--no-keep-memory', |
| 3559 ], | 3557 ], |
| 3560 }], | 3558 }], |
| 3561 ], | 3559 ], |
| 3562 }], | 3560 }], |
| 3563 ], | 3561 ], |
| 3564 }], | 3562 }], |
| 3563 ['unwind_tables==1', { |
| 3564 'cflags': ['-funwind-tables'], |
| 3565 }, { |
| 3566 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-tables'], |
| 3567 }], |
| 3565 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3568 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { |
| 3566 'defines': ['NO_TCMALLOC'], | 3569 'defines': ['NO_TCMALLOC'], |
| 3567 }], | 3570 }], |
| 3568 ['linux_use_gold_flags==1', { | 3571 ['linux_use_gold_flags==1', { |
| 3569 'target_conditions': [ | 3572 'target_conditions': [ |
| 3570 ['_toolset=="target"', { | 3573 ['_toolset=="target"', { |
| 3571 'ldflags': [ | 3574 'ldflags': [ |
| 3572 # Experimentation found that using four linking threads | 3575 # Experimentation found that using four linking threads |
| 3573 # saved ~20% of link time. | 3576 # saved ~20% of link time. |
| 3574 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 3577 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4793 # settings in target dicts. SYMROOT is a special case, because many other | 4796 # settings in target dicts. SYMROOT is a special case, because many other |
| 4794 # Xcode variables depend on it, including variables such as | 4797 # Xcode variables depend on it, including variables such as |
| 4795 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4798 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4796 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4799 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4797 # files to appear (when present) in the UI as actual files and not red | 4800 # files to appear (when present) in the UI as actual files and not red |
| 4798 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4801 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4799 # and therefore SYMROOT, needs to be set at the project level. | 4802 # and therefore SYMROOT, needs to be set at the project level. |
| 4800 'SYMROOT': '<(DEPTH)/xcodebuild', | 4803 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4801 }, | 4804 }, |
| 4802 } | 4805 } |
| OLD | NEW |