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 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 'profiling%': '0', | 1127 'profiling%': '0', |
1128 # Profile without optimizing out stack frames when profiling==1. | 1128 # Profile without optimizing out stack frames when profiling==1. |
1129 'profiling_full_stack_frames%': '0', | 1129 'profiling_full_stack_frames%': '0', |
1130 | 1130 |
1131 # And if we want to dump symbols for Breakpad-enabled builds. | 1131 # And if we want to dump symbols for Breakpad-enabled builds. |
1132 'linux_dump_symbols%': 0, | 1132 'linux_dump_symbols%': 0, |
1133 # And if we want to strip the binary after dumping symbols. | 1133 # And if we want to strip the binary after dumping symbols. |
1134 'linux_strip_binary%': 0, | 1134 'linux_strip_binary%': 0, |
1135 # Strip the test binaries needed for Linux reliability tests. | 1135 # Strip the test binaries needed for Linux reliability tests. |
1136 'linux_strip_reliability_tests%': 0, | 1136 'linux_strip_reliability_tests%': 0, |
1137 # If we want stack unwind support for backtrace(). | |
1138 'debug_unwind_tables%': 1, | |
1139 'release_unwind_tables%': 1, | |
1140 | 1137 |
1141 # Enable TCMalloc. | 1138 # Enable TCMalloc. |
1142 'linux_use_tcmalloc%': 1, | 1139 'linux_use_tcmalloc%': 1, |
1143 'android_use_tcmalloc%': 0, | 1140 'android_use_tcmalloc%': 0, |
1144 | 1141 |
1145 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1142 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
1146 'linux_link_gnome_keyring%': 0, | 1143 'linux_link_gnome_keyring%': 0, |
1147 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1144 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
1148 'linux_link_gsettings%': 0, | 1145 'linux_link_gsettings%': 0, |
1149 | 1146 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 'linux_use_tcmalloc%': 0, | 1311 'linux_use_tcmalloc%': 0, |
1315 }], | 1312 }], |
1316 ['OS=="linux" and target_arch=="mipsel"', { | 1313 ['OS=="linux" and target_arch=="mipsel"', { |
1317 'sysroot%': '<(sysroot)', | 1314 'sysroot%': '<(sysroot)', |
1318 'CXX%': '<(CXX)', | 1315 'CXX%': '<(CXX)', |
1319 }], | 1316 }], |
1320 # All Chrome builds have breakpad symbols, but only process the | 1317 # All Chrome builds have breakpad symbols, but only process the |
1321 # symbols from official builds. | 1318 # symbols from official builds. |
1322 ['(branding=="Chrome" and buildtype=="Official")', { | 1319 ['(branding=="Chrome" and buildtype=="Official")', { |
1323 'linux_dump_symbols%': 1, | 1320 'linux_dump_symbols%': 1, |
1324 | |
1325 # Omit unwind support in official release builds to save space. We | |
1326 # can use breakpad for these builds. | |
1327 'release_unwind_tables%': 0, | |
1328 }], | 1321 }], |
1329 ], | 1322 ], |
1330 }], # os_posix==1 and OS!="mac" and OS!="ios" | 1323 }], # os_posix==1 and OS!="mac" and OS!="ios" |
1331 ['OS=="ios"', { | 1324 ['OS=="ios"', { |
1332 'disable_nacl%': 1, | 1325 'disable_nacl%': 1, |
1333 'enable_background%': 0, | 1326 'enable_background%': 0, |
1334 'enable_task_manager%': 0, | 1327 'enable_task_manager%': 0, |
1335 'icu_use_data_file_flag%': 1, | 1328 'icu_use_data_file_flag%': 1, |
1336 'use_system_libxml%': 1, | 1329 'use_system_libxml%': 1, |
1337 'use_system_sqlite%': 1, | 1330 'use_system_sqlite%': 1, |
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3039 'ldflags': [ | 3032 'ldflags': [ |
3040 '-Wl,-O1', | 3033 '-Wl,-O1', |
3041 '-Wl,--as-needed', | 3034 '-Wl,--as-needed', |
3042 ], | 3035 ], |
3043 }], | 3036 }], |
3044 ['OS=="linux" and target_arch=="ia32"', { | 3037 ['OS=="linux" and target_arch=="ia32"', { |
3045 'ldflags': [ | 3038 'ldflags': [ |
3046 '-Wl,--no-as-needed', | 3039 '-Wl,--no-as-needed', |
3047 ], | 3040 ], |
3048 }], | 3041 }], |
3049 ['debug_unwind_tables==1', { | |
3050 'cflags': ['-funwind-tables'], | |
3051 }, { | |
3052 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], | |
3053 }], | |
3054 ], | 3042 ], |
3055 }, | 3043 }, |
3056 'Release_Base': { | 3044 'Release_Base': { |
3057 'variables': { | 3045 'variables': { |
3058 'release_optimize%': '2', | 3046 'release_optimize%': '2', |
3059 # Binaries become big and gold is unable to perform GC | 3047 # Binaries become big and gold is unable to perform GC |
3060 # and remove unused sections for some of test targets | 3048 # and remove unused sections for some of test targets |
3061 # on 32 bit platform. | 3049 # on 32 bit platform. |
3062 # (This is currently observed only in chromeos valgrind bots) | 3050 # (This is currently observed only in chromeos valgrind bots) |
3063 # The following flag is to disable --gc-sections linker | 3051 # The following flag is to disable --gc-sections linker |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 ], | 3103 ], |
3116 'conditions' : [ | 3104 'conditions' : [ |
3117 ['profiling_full_stack_frames==1', { | 3105 ['profiling_full_stack_frames==1', { |
3118 'cflags': [ | 3106 'cflags': [ |
3119 '-fno-inline', | 3107 '-fno-inline', |
3120 '-fno-optimize-sibling-calls', | 3108 '-fno-optimize-sibling-calls', |
3121 ], | 3109 ], |
3122 }], | 3110 }], |
3123 ], | 3111 ], |
3124 }], | 3112 }], |
3125 ['release_unwind_tables==1', { | 3113 # Can be omitted to reduce output size. Does not seem to affect |
3126 'cflags': ['-funwind-tables'], | 3114 # crash reporting. |
3127 }, { | 3115 ['target_arch=="ia32"', { |
3128 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], | 3116 'cflags': [ |
| 3117 '-fno-unwind-tables', |
| 3118 '-fno-asynchronous-unwind-tables', |
| 3119 ], |
3129 }], | 3120 }], |
3130 ], | 3121 ], |
3131 }, | 3122 }, |
3132 }, | 3123 }, |
3133 'conditions': [ | 3124 'conditions': [ |
3134 ['target_arch=="ia32"', { | 3125 ['target_arch=="ia32"', { |
3135 'target_conditions': [ | 3126 'target_conditions': [ |
3136 ['_toolset=="target"', { | 3127 ['_toolset=="target"', { |
3137 'asflags': [ | 3128 'asflags': [ |
3138 # Needed so that libs with .s files (e.g. libicudata.a) | 3129 # Needed so that libs with .s files (e.g. libicudata.a) |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4855 # settings in target dicts. SYMROOT is a special case, because many other | 4846 # settings in target dicts. SYMROOT is a special case, because many other |
4856 # Xcode variables depend on it, including variables such as | 4847 # Xcode variables depend on it, including variables such as |
4857 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4848 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4858 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4849 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4859 # files to appear (when present) in the UI as actual files and not red | 4850 # files to appear (when present) in the UI as actual files and not red |
4860 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4851 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4861 # and therefore SYMROOT, needs to be set at the project level. | 4852 # and therefore SYMROOT, needs to be set at the project level. |
4862 'SYMROOT': '<(DEPTH)/xcodebuild', | 4853 'SYMROOT': '<(DEPTH)/xcodebuild', |
4863 }, | 4854 }, |
4864 } | 4855 } |
OLD | NEW |