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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 746 |
747 # Do not enable the Settings App on ChromeOS. | 747 # Do not enable the Settings App on ChromeOS. |
748 ['enable_app_list==1 and chromeos==0', { | 748 ['enable_app_list==1 and chromeos==0', { |
749 'enable_settings_app%': 1, | 749 'enable_settings_app%': 1, |
750 }, { | 750 }, { |
751 'enable_settings_app%': 0, | 751 'enable_settings_app%': 0, |
752 }], | 752 }], |
753 | 753 |
754 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 754 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
755 # Set some defaults for arm/linux chrome builds | 755 # Set some defaults for arm/linux chrome builds |
| 756 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 757 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
756 'linux_use_tcmalloc%': 0, | 758 'linux_use_tcmalloc%': 0, |
| 759 'use_allocator%': 'see_use_tcmalloc', |
757 # sysroot needs to be an absolute path otherwise it generates | 760 # sysroot needs to be an absolute path otherwise it generates |
758 # incorrect results when passed to pkg-config | 761 # incorrect results when passed to pkg-config |
759 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 762 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
760 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 763 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
761 | 764 |
762 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom
eos==0', { | 765 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom
eos==0', { |
763 'conditions': [ | 766 'conditions': [ |
764 ['target_arch=="x64"', { | 767 ['target_arch=="x64"', { |
765 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', | 768 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', |
766 }], | 769 }], |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 'linux_dump_symbols%': 0, | 1129 'linux_dump_symbols%': 0, |
1127 # And if we want to strip the binary after dumping symbols. | 1130 # And if we want to strip the binary after dumping symbols. |
1128 'linux_strip_binary%': 0, | 1131 'linux_strip_binary%': 0, |
1129 # Strip the test binaries needed for Linux reliability tests. | 1132 # Strip the test binaries needed for Linux reliability tests. |
1130 'linux_strip_reliability_tests%': 0, | 1133 'linux_strip_reliability_tests%': 0, |
1131 # If we want stack unwind support for backtrace(). | 1134 # If we want stack unwind support for backtrace(). |
1132 'debug_unwind_tables%': 1, | 1135 'debug_unwind_tables%': 1, |
1133 'release_unwind_tables%': 1, | 1136 'release_unwind_tables%': 1, |
1134 | 1137 |
1135 # Enable TCMalloc. | 1138 # Enable TCMalloc. |
| 1139 # TODO(dmikurube): Change the default of use_allocator to "tcmalloc". |
| 1140 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 1141 # {linux|android}_use_tcmalloc are to be replaced with use_allocator. |
| 1142 # They are now used only if use_allocator=="see_use_tcmalloc" (default). |
| 1143 # TODO(dmikurube): Assert when linux_use_tcmalloc is explicitly specified. |
1136 'linux_use_tcmalloc%': 1, | 1144 'linux_use_tcmalloc%': 1, |
1137 'android_use_tcmalloc%': 0, | 1145 'android_use_tcmalloc%': 0, |
| 1146 'use_allocator%': 'see_use_tcmalloc', |
1138 | 1147 |
1139 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1148 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
1140 'linux_link_gnome_keyring%': 0, | 1149 'linux_link_gnome_keyring%': 0, |
1141 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1150 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
1142 'linux_link_gsettings%': 0, | 1151 'linux_link_gsettings%': 0, |
1143 | 1152 |
1144 # Default arch variant for MIPS. | 1153 # Default arch variant for MIPS. |
1145 'mips_arch_variant%': 'mips32r1', | 1154 'mips_arch_variant%': 'mips32r1', |
1146 | 1155 |
1147 # Enable use of OpenMAX DL FFT routines. | 1156 # Enable use of OpenMAX DL FFT routines. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 ['OS=="win"', { | 1318 ['OS=="win"', { |
1310 'windows_driver_kit_path%': '$(WDK_DIR)', | 1319 'windows_driver_kit_path%': '$(WDK_DIR)', |
1311 'icu_use_data_file_flag%': 1, | 1320 'icu_use_data_file_flag%': 1, |
1312 }], | 1321 }], |
1313 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1322 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1314 'conditions': [ | 1323 'conditions': [ |
1315 ['target_arch=="mipsel"', { | 1324 ['target_arch=="mipsel"', { |
1316 'werror%': '', | 1325 'werror%': '', |
1317 'disable_nacl%': 1, | 1326 'disable_nacl%': 1, |
1318 'nacl_untrusted_build%': 0, | 1327 'nacl_untrusted_build%': 0, |
| 1328 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 1329 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1319 'linux_use_tcmalloc%': 0, | 1330 'linux_use_tcmalloc%': 0, |
| 1331 'use_allocator%': 'see_use_tcmalloc', |
1320 }], | 1332 }], |
1321 ['OS=="linux" and target_arch=="mipsel"', { | 1333 ['OS=="linux" and target_arch=="mipsel"', { |
1322 'sysroot%': '<(sysroot)', | 1334 'sysroot%': '<(sysroot)', |
1323 'CXX%': '<(CXX)', | 1335 'CXX%': '<(CXX)', |
1324 }], | 1336 }], |
1325 # All Chrome builds have breakpad symbols, but only process the | 1337 # All Chrome builds have breakpad symbols, but only process the |
1326 # symbols from official builds. | 1338 # symbols from official builds. |
1327 ['(branding=="Chrome" and buildtype=="Official")', { | 1339 ['(branding=="Chrome" and buildtype=="Official")', { |
1328 'linux_dump_symbols%': 1, | 1340 'linux_dump_symbols%': 1, |
1329 | 1341 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 | 1486 |
1475 # Always uses openssl. | 1487 # Always uses openssl. |
1476 'use_openssl%': 1, | 1488 'use_openssl%': 1, |
1477 | 1489 |
1478 'proprietary_codecs%': '<(proprietary_codecs)', | 1490 'proprietary_codecs%': '<(proprietary_codecs)', |
1479 'safe_browsing%': 2, | 1491 'safe_browsing%': 2, |
1480 'input_speech%': 0, | 1492 'input_speech%': 0, |
1481 'enable_automation%': 0, | 1493 'enable_automation%': 0, |
1482 'java_bridge%': 1, | 1494 'java_bridge%': 1, |
1483 'build_ffmpegsumo%': 0, | 1495 'build_ffmpegsumo%': 0, |
| 1496 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 1497 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1484 'linux_use_tcmalloc%': 0, | 1498 'linux_use_tcmalloc%': 0, |
| 1499 'use_allocator%': 'see_use_tcmalloc', |
1485 | 1500 |
1486 # Disable Native Client. | 1501 # Disable Native Client. |
1487 'disable_nacl%': 1, | 1502 'disable_nacl%': 1, |
1488 | 1503 |
1489 # Android does not support background apps. | 1504 # Android does not support background apps. |
1490 'enable_background%': 0, | 1505 'enable_background%': 0, |
1491 | 1506 |
1492 # Sessions are store separately in the Java side. | 1507 # Sessions are store separately in the Java side. |
1493 'enable_session_service%': 0, | 1508 'enable_session_service%': 0, |
1494 | 1509 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 '-fno-builtin -fno-optimize-sibling-calls', | 1884 '-fno-builtin -fno-optimize-sibling-calls', |
1870 | 1885 |
1871 # MSVS flags for TSan on Pin and Windows. | 1886 # MSVS flags for TSan on Pin and Windows. |
1872 'win_debug_RuntimeChecks': '0', | 1887 'win_debug_RuntimeChecks': '0', |
1873 'win_debug_disable_iterator_debugging': '1', | 1888 'win_debug_disable_iterator_debugging': '1', |
1874 'win_debug_Optimization': '1', | 1889 'win_debug_Optimization': '1', |
1875 'win_debug_InlineFunctionExpansion': '0', | 1890 'win_debug_InlineFunctionExpansion': '0', |
1876 'win_release_InlineFunctionExpansion': '0', | 1891 'win_release_InlineFunctionExpansion': '0', |
1877 'win_release_OmitFramePointers': '0', | 1892 'win_release_OmitFramePointers': '0', |
1878 | 1893 |
1879 'linux_use_tcmalloc': 1, | 1894 # TODO(dmikurube): Change the default of use_allocator to "tcmalloc". |
| 1895 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 1896 'linux_use_tcmalloc%': 1, |
| 1897 'use_allocator': 'see_use_tcmalloc', |
1880 'release_valgrind_build': 1, | 1898 'release_valgrind_build': 1, |
1881 'werror': '', | 1899 'werror': '', |
1882 'component': 'static_library', | 1900 'component': 'static_library', |
1883 'use_system_zlib': 0, | 1901 'use_system_zlib': 0, |
1884 }], | 1902 }], |
1885 | 1903 |
1886 # Build tweaks for DrMemory. | 1904 # Build tweaks for DrMemory. |
1887 # TODO(rnk): Combine with tsan config to share the builder. | 1905 # TODO(rnk): Combine with tsan config to share the builder. |
1888 # http://crbug.com/108155 | 1906 # http://crbug.com/108155 |
1889 ['build_for_tool=="drmemory"', { | 1907 ['build_for_tool=="drmemory"', { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 'defines': [ | 2134 'defines': [ |
2117 # Don't use deprecated V8 APIs anywhere. | 2135 # Don't use deprecated V8 APIs anywhere. |
2118 'V8_DEPRECATION_WARNINGS', | 2136 'V8_DEPRECATION_WARNINGS', |
2119 ], | 2137 ], |
2120 'conditions': [ | 2138 'conditions': [ |
2121 ['(OS=="mac" or OS=="ios") and asan==1', { | 2139 ['(OS=="mac" or OS=="ios") and asan==1', { |
2122 'dependencies': [ | 2140 'dependencies': [ |
2123 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', | 2141 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
2124 ], | 2142 ], |
2125 }], | 2143 }], |
2126 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { | 2144 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 2145 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcma
lloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)) and cla
ng_type_profiler==1', { |
2127 'cflags_cc!': ['-fno-rtti'], | 2146 'cflags_cc!': ['-fno-rtti'], |
2128 'cflags_cc+': [ | 2147 'cflags_cc+': [ |
2129 '-frtti', | 2148 '-frtti', |
2130 '-gline-tables-only', | 2149 '-gline-tables-only', |
2131 '-fintercept-allocation-functions', | 2150 '-fintercept-allocation-functions', |
2132 ], | 2151 ], |
2133 'defines': ['TYPE_PROFILING'], | 2152 'defines': ['TYPE_PROFILING'], |
2134 'dependencies': [ | 2153 'dependencies': [ |
2135 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', | 2154 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
2136 ], | 2155 ], |
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3657 ['_toolset=="target"', { | 3676 ['_toolset=="target"', { |
3658 'ldflags': [ | 3677 'ldflags': [ |
3659 # Workaround for linker OOM. | 3678 # Workaround for linker OOM. |
3660 '-Wl,--no-keep-memory', | 3679 '-Wl,--no-keep-memory', |
3661 ], | 3680 ], |
3662 }], | 3681 }], |
3663 ], | 3682 ], |
3664 }], | 3683 }], |
3665 ], | 3684 ], |
3666 }], | 3685 }], |
3667 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3686 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 3687 ['(use_allocator!="tcmalloc" and (use_allocator!="see_use_tcmalloc" or
linux_use_tcmalloc==0)) and android_use_tcmalloc==0', { |
3668 'defines': ['NO_TCMALLOC'], | 3688 'defines': ['NO_TCMALLOC'], |
3669 }], | 3689 }], |
3670 ['linux_use_gold_flags==1', { | 3690 ['linux_use_gold_flags==1', { |
3671 'target_conditions': [ | 3691 'target_conditions': [ |
3672 ['_toolset=="target"', { | 3692 ['_toolset=="target"', { |
3673 'ldflags': [ | 3693 'ldflags': [ |
3674 # Experimentation found that using four linking threads | 3694 # Experimentation found that using four linking threads |
3675 # saved ~20% of link time. | 3695 # saved ~20% of link time. |
3676 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 3696 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
3677 # Only apply this to the target linker, since the host | 3697 # Only apply this to the target linker, since the host |
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5033 # settings in target dicts. SYMROOT is a special case, because many other | 5053 # settings in target dicts. SYMROOT is a special case, because many other |
5034 # Xcode variables depend on it, including variables such as | 5054 # Xcode variables depend on it, including variables such as |
5035 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5055 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5036 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5056 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5037 # files to appear (when present) in the UI as actual files and not red | 5057 # files to appear (when present) in the UI as actual files and not red |
5038 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5058 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5039 # and therefore SYMROOT, needs to be set at the project level. | 5059 # and therefore SYMROOT, needs to be set at the project level. |
5040 'SYMROOT': '<(DEPTH)/xcodebuild', | 5060 'SYMROOT': '<(DEPTH)/xcodebuild', |
5041 }, | 5061 }, |
5042 } | 5062 } |
OLD | NEW |