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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(). | 1115 # If we want stack unwind support for backtrace(). |
1116 'unwind_tables%': 1, | 1116 'debug_unwind_tables%': 1, |
| 1117 'release_unwind_tables%': 1, |
1117 | 1118 |
1118 # Enable TCMalloc. | 1119 # Enable TCMalloc. |
1119 'linux_use_tcmalloc%': 1, | 1120 'linux_use_tcmalloc%': 1, |
1120 'android_use_tcmalloc%': 0, | 1121 'android_use_tcmalloc%': 0, |
1121 | 1122 |
1122 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1123 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
1123 'linux_link_gnome_keyring%': 0, | 1124 'linux_link_gnome_keyring%': 0, |
1124 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1125 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
1125 'linux_link_gsettings%': 0, | 1126 'linux_link_gsettings%': 0, |
1126 | 1127 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 }], | 1286 }], |
1286 ['OS=="linux" and target_arch=="mipsel"', { | 1287 ['OS=="linux" and target_arch=="mipsel"', { |
1287 'sysroot%': '<(sysroot)', | 1288 'sysroot%': '<(sysroot)', |
1288 'CXX%': '<(CXX)', | 1289 'CXX%': '<(CXX)', |
1289 }], | 1290 }], |
1290 # All Chrome builds have breakpad symbols, but only process the | 1291 # All Chrome builds have breakpad symbols, but only process the |
1291 # symbols from official builds. | 1292 # symbols from official builds. |
1292 ['(branding=="Chrome" and buildtype=="Official")', { | 1293 ['(branding=="Chrome" and buildtype=="Official")', { |
1293 'linux_dump_symbols%': 1, | 1294 'linux_dump_symbols%': 1, |
1294 | 1295 |
1295 # Omit unwind support in official builds to save space. We can use | 1296 # Omit unwind support in official release builds to save space. We |
1296 # breakpad for these builds. | 1297 # can use breakpad for these builds. |
1297 'unwind_tables%': 0, | 1298 'release_unwind_tables%': 0, |
1298 }], | 1299 }], |
1299 ], | 1300 ], |
1300 }], # os_posix==1 and OS!="mac" and OS!="ios" | 1301 }], # os_posix==1 and OS!="mac" and OS!="ios" |
1301 ['OS=="ios"', { | 1302 ['OS=="ios"', { |
1302 'disable_nacl%': 1, | 1303 'disable_nacl%': 1, |
1303 'enable_background%': 0, | 1304 'enable_background%': 0, |
1304 'enable_task_manager%': 0, | 1305 'enable_task_manager%': 0, |
1305 'icu_use_data_file_flag%': 1, | 1306 'icu_use_data_file_flag%': 1, |
1306 'use_system_libxml%': 1, | 1307 'use_system_libxml%': 1, |
1307 'use_system_sqlite%': 1, | 1308 'use_system_sqlite%': 1, |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3005 'ldflags': [ | 3006 'ldflags': [ |
3006 '-Wl,-O1', | 3007 '-Wl,-O1', |
3007 '-Wl,--as-needed', | 3008 '-Wl,--as-needed', |
3008 ], | 3009 ], |
3009 }], | 3010 }], |
3010 ['OS=="linux" and target_arch=="ia32"', { | 3011 ['OS=="linux" and target_arch=="ia32"', { |
3011 'ldflags': [ | 3012 'ldflags': [ |
3012 '-Wl,--no-as-needed', | 3013 '-Wl,--no-as-needed', |
3013 ], | 3014 ], |
3014 }], | 3015 }], |
| 3016 ['debug_unwind_tables==1', { |
| 3017 'cflags': ['-funwind-tables'], |
| 3018 }, { |
| 3019 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], |
| 3020 }], |
3015 ], | 3021 ], |
3016 }, | 3022 }, |
3017 'Release_Base': { | 3023 'Release_Base': { |
3018 'variables': { | 3024 'variables': { |
3019 'release_optimize%': '2', | 3025 'release_optimize%': '2', |
3020 # Binaries become big and gold is unable to perform GC | 3026 # Binaries become big and gold is unable to perform GC |
3021 # and remove unused sections for some of test targets | 3027 # and remove unused sections for some of test targets |
3022 # on 32 bit platform. | 3028 # on 32 bit platform. |
3023 # (This is currently observed only in chromeos valgrind bots) | 3029 # (This is currently observed only in chromeos valgrind bots) |
3024 # The following flag is to disable --gc-sections linker | 3030 # The following flag is to disable --gc-sections linker |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3076 ], | 3082 ], |
3077 'conditions' : [ | 3083 'conditions' : [ |
3078 ['profiling_full_stack_frames==1', { | 3084 ['profiling_full_stack_frames==1', { |
3079 'cflags': [ | 3085 'cflags': [ |
3080 '-fno-inline', | 3086 '-fno-inline', |
3081 '-fno-optimize-sibling-calls', | 3087 '-fno-optimize-sibling-calls', |
3082 ], | 3088 ], |
3083 }], | 3089 }], |
3084 ], | 3090 ], |
3085 }], | 3091 }], |
| 3092 ['release_unwind_tables==1', { |
| 3093 'cflags': ['-funwind-tables'], |
| 3094 }, { |
| 3095 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table
s'], |
| 3096 }], |
3086 ], | 3097 ], |
3087 }, | 3098 }, |
3088 }, | 3099 }, |
3089 'conditions': [ | 3100 'conditions': [ |
3090 ['target_arch=="ia32"', { | 3101 ['target_arch=="ia32"', { |
3091 'target_conditions': [ | 3102 'target_conditions': [ |
3092 ['_toolset=="target"', { | 3103 ['_toolset=="target"', { |
3093 'asflags': [ | 3104 'asflags': [ |
3094 # Needed so that libs with .s files (e.g. libicudata.a) | 3105 # Needed so that libs with .s files (e.g. libicudata.a) |
3095 # are compatible with the general 32-bit-ness. | 3106 # are compatible with the general 32-bit-ness. |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3553 ['_toolset=="target"', { | 3564 ['_toolset=="target"', { |
3554 'ldflags': [ | 3565 'ldflags': [ |
3555 # Workaround for linker OOM. | 3566 # Workaround for linker OOM. |
3556 '-Wl,--no-keep-memory', | 3567 '-Wl,--no-keep-memory', |
3557 ], | 3568 ], |
3558 }], | 3569 }], |
3559 ], | 3570 ], |
3560 }], | 3571 }], |
3561 ], | 3572 ], |
3562 }], | 3573 }], |
3563 ['unwind_tables==1', { | |
3564 'cflags': ['-funwind-tables'], | |
3565 }, { | |
3566 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-tables'], | |
3567 }], | |
3568 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3574 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { |
3569 'defines': ['NO_TCMALLOC'], | 3575 'defines': ['NO_TCMALLOC'], |
3570 }], | 3576 }], |
3571 ['linux_use_gold_flags==1', { | 3577 ['linux_use_gold_flags==1', { |
3572 'target_conditions': [ | 3578 'target_conditions': [ |
3573 ['_toolset=="target"', { | 3579 ['_toolset=="target"', { |
3574 'ldflags': [ | 3580 'ldflags': [ |
3575 # Experimentation found that using four linking threads | 3581 # Experimentation found that using four linking threads |
3576 # saved ~20% of link time. | 3582 # saved ~20% of link time. |
3577 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 3583 # 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... |
4796 # settings in target dicts. SYMROOT is a special case, because many other | 4802 # settings in target dicts. SYMROOT is a special case, because many other |
4797 # Xcode variables depend on it, including variables such as | 4803 # Xcode variables depend on it, including variables such as |
4798 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4804 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4799 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4805 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4800 # files to appear (when present) in the UI as actual files and not red | 4806 # files to appear (when present) in the UI as actual files and not red |
4801 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4807 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4802 # and therefore SYMROOT, needs to be set at the project level. | 4808 # and therefore SYMROOT, needs to be set at the project level. |
4803 'SYMROOT': '<(DEPTH)/xcodebuild', | 4809 'SYMROOT': '<(DEPTH)/xcodebuild', |
4804 }, | 4810 }, |
4805 } | 4811 } |
OLD | NEW |